Skip to content

Commit 46ea592

Browse files
lumagandersson
authored andcommitted
arm64: dts: qcom: pm4125: define USB-C related blocks
Define VBUS regulator and the Type-C handling block as present on the Quacomm PM4125 PMIC. Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Link: https://lore.kernel.org/r/20240202-pm4125-typec-v2-3-12771d85700d@linaro.org Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent 07bbe3f commit 46ea592

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

arch/arm64/boot/dts/qcom/pm4125.dtsi

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,36 @@
3636
};
3737
};
3838

39+
pm4125_vbus: usb-vbus-regulator@1100 {
40+
compatible = "qcom,pm4125-vbus-reg", "qcom,pm8150b-vbus-reg";
41+
reg = <0x1100>;
42+
status = "disabled";
43+
};
44+
45+
pm4125_typec: typec@1500 {
46+
compatible = "qcom,pm4125-typec", "qcom,pmi632-typec";
47+
reg = <0x1500>;
48+
interrupts = <0x0 0x15 0x00 IRQ_TYPE_EDGE_RISING>,
49+
<0x0 0x15 0x01 IRQ_TYPE_EDGE_BOTH>,
50+
<0x0 0x15 0x02 IRQ_TYPE_EDGE_RISING>,
51+
<0x0 0x15 0x03 IRQ_TYPE_EDGE_BOTH>,
52+
<0x0 0x15 0x04 IRQ_TYPE_EDGE_RISING>,
53+
<0x0 0x15 0x05 IRQ_TYPE_EDGE_RISING>,
54+
<0x0 0x15 0x06 IRQ_TYPE_EDGE_BOTH>,
55+
<0x0 0x15 0x07 IRQ_TYPE_EDGE_RISING>;
56+
interrupt-names = "or-rid-detect-change",
57+
"vpd-detect",
58+
"cc-state-change",
59+
"vconn-oc",
60+
"vbus-change",
61+
"attach-detach",
62+
"legacy-cable-detect",
63+
"try-snk-src-detect";
64+
vdd-vbus-supply = <&pm4125_vbus>;
65+
66+
status = "disabled";
67+
};
68+
3969
rtc@6000 {
4070
compatible = "qcom,pm8941-rtc";
4171
reg = <0x6000>, <0x6100>;

0 commit comments

Comments
 (0)