arm64: dts: qcom: pm8150b: Add a TCPM description
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Wed, 16 Aug 2023 11:51:47 +0000 (12:51 +0100)
committerBjorn Andersson <andersson@kernel.org>
Wed, 20 Sep 2023 01:19:15 +0000 (18:19 -0700)
Type-C port management functionality lives inside of the PMIC block on
pm8150b.

The Type-C port management logic controls orientation detection, vbus/vconn
sense and to send/receive Type-C Power Domain messages.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20230816115151.501736-4-bryan.odonoghue@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/pm8150b.dtsi

index 2b9123df5847e487d71d608b3d89dbc355050cb4..1aee3270ce7b9bfcbba6b81f26c9a0045c35210b 100644 (file)
                        reg = <0x1100>;
                };
 
+               pm8150b_typec: typec@1500 {
+                       compatible = "qcom,pm8150b-typec";
+                       status = "disabled";
+                       reg = <0x1500>,
+                             <0x1700>;
+                       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>,
+                                    <0x2 0x17 0x00 IRQ_TYPE_EDGE_RISING>,
+                                    <0x2 0x17 0x01 IRQ_TYPE_EDGE_RISING>,
+                                    <0x2 0x17 0x02 IRQ_TYPE_EDGE_RISING>,
+                                    <0x2 0x17 0x03 IRQ_TYPE_EDGE_RISING>,
+                                    <0x2 0x17 0x04 IRQ_TYPE_EDGE_RISING>,
+                                    <0x2 0x17 0x05 IRQ_TYPE_EDGE_RISING>,
+                                    <0x2 0x17 0x06 IRQ_TYPE_EDGE_RISING>,
+                                    <0x2 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";
+                       vdd-vbus-supply = <&pm8150b_vbus>;
+               };
+
                pm8150b_temp: temp-alarm@2400 {
                        compatible = "qcom,spmi-temp-alarm";
                        reg = <0x2400>;