diff options
author | Bjorn Andersson <bjorn.andersson@linaro.org> | 2022-07-30 12:14:24 -0700 |
---|---|---|
committer | Johan Hovold <johan+linaro@kernel.org> | 2022-12-26 14:05:47 +0100 |
commit | 6034ccb96484ffbd33505898f57746b4da9f2cdc (patch) | |
tree | 8b931bd2f615e502f5a1ebca643782bc9c6722a1 | |
parent | 4d89d2b09800fca2648df4d6e673325a8ec53a34 (diff) |
arm64: dts: qcom: sc8280xp-crd: Enable pmic_glink
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
-rw-r--r-- | arch/arm64/boot/dts/qcom/sc8280xp-crd.dts | 165 |
1 files changed, 165 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts b/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts index 2abfeece0bf9..67e8ff4f43fa 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts +++ b/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts @@ -34,6 +34,63 @@ stdout-path = "serial0:115200n8"; }; + pmic-glink { + compatible = "qcom,sc8280xp-pmic-glink", "qcom,pmic-glink"; + + #address-cells = <1>; + #size-cells = <0>; + + connector@0 { + compatible = "usb-c-connector"; + reg = <0>; + power-role = "dual"; + data-role = "dual"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + port@1 { + reg = <1>; + pmic_glink_dp0_in: endpoint { + remote-endpoint = <&mdss0_dp0_out>; + }; + }; + + port@2 { + reg = <2>; + pmic_glink_dp0_sbu: endpoint { + remote-endpoint = <&usb0_sbu_mux>; + }; + }; + }; + }; + + connector@1 { + compatible = "usb-c-connector"; + reg = <1>; + power-role = "dual"; + data-role = "dual"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + port@1 { + reg = <1>; + pmic_glink_dp1_in: endpoint { + remote-endpoint = <&mdss0_dp1_out>; + }; + }; + + port@2 { + reg = <2>; + pmic_glink_dp1_sbu: endpoint { + remote-endpoint = <&usb1_sbu_mux>; + }; + }; + }; + }; + }; + vreg_edp_3p3: regulator-edp-3p3 { compatible = "regulator-fixed"; @@ -128,6 +185,46 @@ regulator-boot-on; }; + + usb0-sbu-mux { + compatible = "gpio-sbu-mux"; + + enable-gpios = <&tlmm 101 GPIO_ACTIVE_LOW>; + select-gpios = <&tlmm 164 GPIO_ACTIVE_HIGH>; + + pinctrl-names = "default"; + pinctrl-0 = <&usb0_sbu_default>; + + mode-switch; + orientation-switch; + svid = /bits/ 16 <0xff01>; + + port { + usb0_sbu_mux: endpoint { + remote-endpoint = <&pmic_glink_dp0_sbu>; + }; + }; + }; + + usb1-sbu-mux { + compatible = "gpio-sbu-mux"; + + enable-gpios = <&tlmm 48 GPIO_ACTIVE_LOW>; + select-gpios = <&tlmm 47 GPIO_ACTIVE_HIGH>; + + pinctrl-names = "default"; + pinctrl-0 = <&usb1_sbu_default>; + + mode-switch; + orientation-switch; + svid = /bits/ 16 <0xff01>; + + port { + usb1_sbu_mux: endpoint { + remote-endpoint = <&pmic_glink_dp1_sbu>; + }; + }; + }; }; &apps_rsc { @@ -251,6 +348,36 @@ status = "okay"; }; +&mdss0_dp0 { + status = "okay"; + + data-lanes = <0 1>; + + ports { + port@1 { + reg = <1>; + mdss0_dp0_out: endpoint { + remote-endpoint = <&pmic_glink_dp0_in>; + }; + }; + }; +}; + +&mdss0_dp1 { + status = "okay"; + + data-lanes = <0 1>; + + ports { + port@1 { + reg = <1>; + mdss0_dp1_out: endpoint { + remote-endpoint = <&pmic_glink_dp1_in>; + }; + }; + }; +}; + &mdss0_dp3 { compatible = "qcom,sc8280xp-edp"; status = "okay"; @@ -696,4 +823,42 @@ drive-strength = <16>; }; }; + + usb0_sbu_default: usb0-sbu-state { + oe-n { + pins = "gpio101"; + function = "gpio"; + }; + + sel { + pins = "gpio164"; + function = "gpio"; + }; + + mode { + pins = "gpio167"; + function = "gpio"; + + output-high; + }; + }; + + usb1_sbu_default: usb1-sbu-default { + oe-n { + pins = "gpio48"; + function = "gpio"; + }; + + sel { + pins = "gpio47"; + function = "gpio"; + }; + + mode { + pins = "gpio50"; + function = "gpio"; + + output-high; + }; + }; }; |