arm64: dts: qcom: pm6150: define USB-C related blocks
authorDanila Tikhonov <danila@jiaxyga.com>
Tue, 20 Feb 2024 20:21:47 +0000 (23:21 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 2 Mar 2024 19:37:22 +0000 (20:37 +0100)
Define VBUS regulator and the Type-C handling block as present on the
Qualcomm PM6150 PMIC.

Signed-off-by: Danila Tikhonov <danila@jiaxyga.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20240220202147.228911-3-danila@jiaxyga.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/boot/dts/qcom/pm6150.dtsi

index ddbaf7280b03075aca5d9b5c984108e7d6cb2fdb..11158c2bd5241661da0efb8019952d0b91db05ba 100644 (file)
                        };
                };
 
+               pm6150_vbus: usb-vbus-regulator@1100 {
+                       compatible = "qcom,pm6150-vbus-reg,
+                                     qcom,pm8150b-vbus-reg";
+                       reg = <0x1100>;
+                       status = "disabled";
+               };
+
+               pm6150_typec: typec@1500 {
+                       compatible = "qcom,pm6150-typec,
+                                     qcom,pm8150b-typec";
+                       reg = <0x1500>, <0x1700>;
+                       interrupts = <0x0 0x15 0x00 IRQ_TYPE_EDGE_RISING>,
+                                    <0x0 0x15 0x01 IRQ_TYPE_EDGE_BOTH>,
+                                    <0x0 0x15 0x02 IRQ_TYPE_EDGE_RISING>,
+                                    <0x0 0x15 0x03 IRQ_TYPE_EDGE_BOTH>,
+                                    <0x0 0x15 0x04 IRQ_TYPE_EDGE_RISING>,
+                                    <0x0 0x15 0x05 IRQ_TYPE_EDGE_RISING>,
+                                    <0x0 0x15 0x06 IRQ_TYPE_EDGE_BOTH>,
+                                    <0x0 0x15 0x07 IRQ_TYPE_EDGE_RISING>,
+                                    <0x0 0x17 0x00 IRQ_TYPE_EDGE_RISING>,
+                                    <0x0 0x17 0x01 IRQ_TYPE_EDGE_RISING>,
+                                    <0x0 0x17 0x02 IRQ_TYPE_EDGE_RISING>,
+                                    <0x0 0x17 0x03 IRQ_TYPE_EDGE_RISING>,
+                                    <0x0 0x17 0x04 IRQ_TYPE_EDGE_RISING>,
+                                    <0x0 0x17 0x05 IRQ_TYPE_EDGE_RISING>,
+                                    <0x0 0x17 0x06 IRQ_TYPE_EDGE_RISING>,
+                                    <0x0 0x17 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",
+                                         "sig-tx",
+                                         "sig-rx",
+                                         "msg-tx",
+                                         "msg-rx",
+                                         "msg-tx-failed",
+                                         "msg-tx-discarded",
+                                         "msg-rx-discarded",
+                                         "fr-swap";
+                       status = "disabled";
+               };
+
                pm6150_temp: temp-alarm@2400 {
                        compatible = "qcom,spmi-temp-alarm";
                        reg = <0x2400>;