arm64: dts: qcom: pmi632: define USB-C related blocks
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tue, 30 Jan 2024 19:32:57 +0000 (21:32 +0200)
committerBjorn Andersson <andersson@kernel.org>
Fri, 9 Feb 2024 23:05:41 +0000 (17:05 -0600)
Define VBUS regulator and the Type-C handling block as present on the
Quacomm PMI632 PMIC.

Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Tested-by: Luca Weiss <luca.weiss@fairphone.com> # sdm632-fairphone-fp3
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20240130-pmi632-typec-v3-4-b05fe44f0a51@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/pmi632.dtsi

index 4eb79e0ce40a5e9715d15d5dfadecac7dbe0fbab..d6832f0b7b8075b257e3564de6ada571bce54762 100644 (file)
                #address-cells = <1>;
                #size-cells = <0>;
 
+               pmi632_vbus: usb-vbus-regulator@1100 {
+                       compatible = "qcom,pmi632-vbus-reg", "qcom,pm8150b-vbus-reg";
+                       reg = <0x1100>;
+                       status = "disabled";
+               };
+
+               pmi632_typec: typec@1500 {
+                       compatible = "qcom,pmi632-typec";
+                       reg = <0x1500>;
+                       interrupts = <0x2 0x15 0x00 IRQ_TYPE_EDGE_RISING>,
+                                    <0x2 0x15 0x01 IRQ_TYPE_EDGE_BOTH>,
+                                    <0x2 0x15 0x02 IRQ_TYPE_EDGE_RISING>,
+                                    <0x2 0x15 0x03 IRQ_TYPE_EDGE_BOTH>,
+                                    <0x2 0x15 0x04 IRQ_TYPE_EDGE_RISING>,
+                                    <0x2 0x15 0x05 IRQ_TYPE_EDGE_RISING>,
+                                    <0x2 0x15 0x06 IRQ_TYPE_EDGE_BOTH>,
+                                    <0x2 0x15 0x07 IRQ_TYPE_EDGE_RISING>;
+                       interrupt-names = "or-rid-detect-change",
+                                         "vpd-detect",
+                                         "cc-state-change",
+                                         "vconn-oc",
+                                         "vbus-change",
+                                         "attach-detach",
+                                         "legacy-cable-detect",
+                                         "try-snk-src-detect";
+                       vdd-vbus-supply = <&pmi632_vbus>;
+
+                       status = "disabled";
+               };
+
                pmi632_temp: temp-alarm@2400 {
                        compatible = "qcom,spmi-temp-alarm";
                        reg = <0x2400>;