From 8bb118e8c52db117b6481fa5a7d8d59aa5323bcf Mon Sep 17 00:00:00 2001 From: Jack Pham Date: Thu, 31 Mar 2016 18:50:53 -0700 Subject: [PATCH] ARM: dts: msm: Add PD PHY peripheral to pmicobalt Add device node for the USB PD PHY peripheral found in PMICOBALT. Reference this from the USB3 node as its extcon device as it provides notifications of cable insertion/removal. Change-Id: I42916b13e5d28dd3f3b0ed40c53767cbd7ae32b1 Signed-off-by: Jack Pham --- arch/arm/boot/dts/qcom/msm-pmicobalt.dtsi | 23 +++++++++++++++++++++++ arch/arm/boot/dts/qcom/msmcobalt.dtsi | 1 + 2 files changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/qcom/msm-pmicobalt.dtsi b/arch/arm/boot/dts/qcom/msm-pmicobalt.dtsi index e2b0a292a0e0..d0601719054d 100644 --- a/arch/arm/boot/dts/qcom/msm-pmicobalt.dtsi +++ b/arch/arm/boot/dts/qcom/msm-pmicobalt.dtsi @@ -241,6 +241,29 @@ "switcher-power-ok"; }; }; + + pmicobalt_pdphy: qcom,usb-pdphy@1700 { + compatible = "qcom,qpnp-pdphy"; + reg = <0x1700 0x100>; + vdd-pdphy-supply = <&pmcobalt_l24>; + vbus-supply = <&smb2_vbus>; + vcon-supply = <&smb2_vconn>; + interrupts = <0x2 0x17 0x0 IRQ_TYPE_EDGE_RISING>, + <0x2 0x17 0x1 IRQ_TYPE_EDGE_RISING>, + <0x2 0x17 0x2 IRQ_TYPE_EDGE_RISING>, + <0x2 0x17 0x3 IRQ_TYPE_EDGE_RISING>, + <0x2 0x17 0x4 IRQ_TYPE_EDGE_RISING>, + <0x2 0x17 0x5 IRQ_TYPE_EDGE_RISING>, + <0x2 0x17 0x6 IRQ_TYPE_EDGE_RISING>; + + interrupt-names = "sig-tx", + "sig-rx", + "msg-tx", + "msg-rx", + "msg-tx-failed", + "msg-tx-discarded", + "msg-rx-discarded"; + }; }; qcom,pmicobalt@3 { diff --git a/arch/arm/boot/dts/qcom/msmcobalt.dtsi b/arch/arm/boot/dts/qcom/msmcobalt.dtsi index a608ce54f654..c346bf0411bd 100644 --- a/arch/arm/boot/dts/qcom/msmcobalt.dtsi +++ b/arch/arm/boot/dts/qcom/msmcobalt.dtsi @@ -1333,6 +1333,7 @@ <61 512 240000 960000>; qcom,dwc-usb3-msm-tx-fifo-size = <21288>; + extcon = <&pmicobalt_pdphy>; clocks = <&clock_gcc clk_gcc_usb30_master_clk>, <&clock_gcc clk_gcc_cfg_noc_usb3_axi_clk>,