aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>2021-05-14 17:07:31 +0100
committerBryan O'Donoghue <bryan.odonoghue@linaro.org>2021-10-22 09:47:33 +0100
commit920a1d31c564988bc33688665658217a4e927bfa (patch)
treee506be14087d9b58b6e3eb33dcd0cfe630b276fb
parent5536e250927362f7c1c3e0564e410e5635e1b6c1 (diff)
arm64: dts: qcom: pm8150b: Add typec port driver node
Add a DT entry for the typec port provided by the pm8150b PMIC. This node will be further bound to the TCPM driver via remote-endpoints later. Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
-rw-r--r--arch/arm64/boot/dts/qcom/pm8150b.dtsi33
1 files changed, 33 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/qcom/pm8150b.dtsi b/arch/arm64/boot/dts/qcom/pm8150b.dtsi
index 058cc5107c75..074eb802d9d8 100644
--- a/arch/arm64/boot/dts/qcom/pm8150b.dtsi
+++ b/arch/arm64/boot/dts/qcom/pm8150b.dtsi
@@ -7,6 +7,7 @@
#include <dt-bindings/iio/qcom,spmi-vadc.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/spmi/spmi.h>
+#include <dt-bindings/usb/typec/tcpm/qcom,pmic-usb-typec.h>
/ {
thermal-zones {
@@ -59,6 +60,38 @@
reg = <0x1100>;
};
+ pm8150b_typec: typec@1500 {
+ compatible = "qcom,pm8150b-typec";
+ reg = <0x1500>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ interrupts = <0x2 0x15 PMIC_TYPEC_OR_RID_IRQ
+ IRQ_TYPE_EDGE_RISING>,
+ <0x2 0x15 PMIC_TYPEC_VPD_IRQ
+ IRQ_TYPE_EDGE_BOTH>,
+ <0x2 0x15 PMIC_TYPEC_CC_STATE_IRQ
+ IRQ_TYPE_EDGE_RISING>,
+ <0x2 0x15 PMIC_TYPEC_VCONN_OC_IRQ
+ IRQ_TYPE_EDGE_BOTH>,
+ <0x2 0x15 PMIC_TYPEC_VBUS_IRQ
+ IRQ_TYPE_EDGE_RISING>,
+ <0x2 0x15 PMIC_TYPEC_ATTACH_DETACH_IRQ
+ IRQ_TYPE_EDGE_RISING>,
+ <0x2 0x15 PMIC_TYPEC_LEGACY_CABLE_IRQ
+ IRQ_TYPE_EDGE_BOTH>,
+ <0x2 0x15 PMIC_TYPEC_TRY_SNK_SRC_IRQ
+ IRQ_TYPE_EDGE_RISING>;
+ interrupt-names = "pmic-typec-or-rid-detect-change",
+ "pmic-typec-vpd-detect",
+ "pmic-typec-cc-state-change",
+ "pmic-typec-vconn-oc",
+ "pmic-typec-vbus-change",
+ "pmic-typec-attach-detach",
+ "pmic-typec-legacy-cable-detect",
+ "pmic-typec-try-snk-src-detect";
+ status = "disabled";
+ };
+
pm8150b_temp: temp-alarm@2400 {
compatible = "qcom,spmi-temp-alarm";
reg = <0x2400>;