arm64: dts: qcom: x1e001de-devkit: Describe USB retimers resets pin configs
authorAbel Vesa <abel.vesa@linaro.org>
Tue, 22 Apr 2025 11:25:22 +0000 (14:25 +0300)
committerBjorn Andersson <andersson@kernel.org>
Tue, 6 May 2025 20:49:02 +0000 (13:49 -0700)
Currently, on the X Elite Devkit, the pin configuration of the reset
gpios for all three PS8830 USB retimers are left configured by the
bootloader.

Fix that by describing their pin configuration.

Fixes: 019e1ee32fec ("arm64: dts: qcom: x1e001de-devkit: Enable external DP support")
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
Reviewed-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20250422-x1e001de-devkit-dts-fix-retimer-gpios-v2-1-0129c4f2b6d7@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/x1e001de-devkit.dts

index 4693e4c9986a6f7d14282fabd584cc16f43f0f80..e17e5fd66f7e8e7f640d85c0b9bfd5609ce33fa9 100644 (file)
 
                reset-gpios = <&tlmm 185 GPIO_ACTIVE_LOW>;
 
+               pinctrl-0 = <&rtmr2_default>;
+               pinctrl-names = "default";
+
                orientation-switch;
                retimer-switch;
 
 
                reset-gpios = <&pm8550_gpios 10 GPIO_ACTIVE_LOW>;
 
+               pinctrl-0 = <&rtmr0_default>;
+               pinctrl-names = "default";
+
                retimer-switch;
                orientation-switch;
 
 
                reset-gpios = <&tlmm 176 GPIO_ACTIVE_LOW>;
 
+               pinctrl-0 = <&rtmr1_default>;
+               pinctrl-names = "default";
+
                retimer-switch;
                orientation-switch;
 
 };
 
 &pm8550_gpios {
+       rtmr0_default: rtmr0-reset-n-active-state {
+               pins = "gpio10";
+               function = "normal";
+               power-source = <1>; /* 1.8 V */
+               bias-disable;
+               input-disable;
+               output-enable;
+       };
+
        usb0_3p3_reg_en: usb0-3p3-reg-en-state {
                pins = "gpio11";
                function = "normal";
                };
        };
 
+       rtmr1_default: rtmr1-reset-n-active-state {
+               pins = "gpio176";
+               function = "gpio";
+               drive-strength = <2>;
+               bias-disable;
+       };
+
+       rtmr2_default: rtmr2-reset-n-active-state {
+               pins = "gpio185";
+               function = "gpio";
+               drive-strength = <2>;
+               bias-disable;
+       };
+
        rtmr1_1p15_reg_en: rtmr1-1p15-reg-en-state {
                pins = "gpio188";
                function = "gpio";