* [PATCH v2 1/2] arm64: dts: qcom: x1e001de-devkit: Describe USB retimers resets pin configs
2025-04-22 11:25 [PATCH v2 0/2] arm64: dts: x1e001de-devkit: USB retimers related fixes Abel Vesa
@ 2025-04-22 11:25 ` Abel Vesa
2025-04-22 11:25 ` [PATCH v2 2/2] arm64: dts: qcom: x1e001de-devkit: Fix pin config for USB0 retimer vregs Abel Vesa
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Abel Vesa @ 2025-04-22 11:25 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Sibi Sankar
Cc: Johan Hovold, linux-arm-msm, devicetree, linux-kernel, Abel Vesa,
Konrad Dybcio
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>
---
arch/arm64/boot/dts/qcom/x1e001de-devkit.dts | 32 ++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/x1e001de-devkit.dts b/arch/arm64/boot/dts/qcom/x1e001de-devkit.dts
index 74911861a3bf2606add8cf4aaa3816542e837513..13516ae253fea6a7872da6c48bcf91eb95167a42 100644
--- a/arch/arm64/boot/dts/qcom/x1e001de-devkit.dts
+++ b/arch/arm64/boot/dts/qcom/x1e001de-devkit.dts
@@ -789,6 +789,9 @@ typec-mux@8 {
reset-gpios = <&tlmm 185 GPIO_ACTIVE_LOW>;
+ pinctrl-0 = <&rtmr2_default>;
+ pinctrl-names = "default";
+
orientation-switch;
retimer-switch;
@@ -843,6 +846,9 @@ typec-mux@8 {
reset-gpios = <&pm8550_gpios 10 GPIO_ACTIVE_LOW>;
+ pinctrl-0 = <&rtmr0_default>;
+ pinctrl-names = "default";
+
retimer-switch;
orientation-switch;
@@ -897,6 +903,9 @@ typec-mux@8 {
reset-gpios = <&tlmm 176 GPIO_ACTIVE_LOW>;
+ pinctrl-0 = <&rtmr1_default>;
+ pinctrl-names = "default";
+
retimer-switch;
orientation-switch;
@@ -1018,6 +1027,15 @@ &pcie6a_phy {
};
&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";
@@ -1205,6 +1223,20 @@ wake-n-pins {
};
};
+ 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";
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread* [PATCH v2 2/2] arm64: dts: qcom: x1e001de-devkit: Fix pin config for USB0 retimer vregs
2025-04-22 11:25 [PATCH v2 0/2] arm64: dts: x1e001de-devkit: USB retimers related fixes Abel Vesa
2025-04-22 11:25 ` [PATCH v2 1/2] arm64: dts: qcom: x1e001de-devkit: Describe USB retimers resets pin configs Abel Vesa
@ 2025-04-22 11:25 ` Abel Vesa
2025-04-22 12:26 ` [PATCH v2 0/2] arm64: dts: x1e001de-devkit: USB retimers related fixes Johan Hovold
2025-05-07 5:18 ` Bjorn Andersson
3 siblings, 0 replies; 5+ messages in thread
From: Abel Vesa @ 2025-04-22 11:25 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Sibi Sankar
Cc: Johan Hovold, linux-arm-msm, devicetree, linux-kernel, Abel Vesa,
Konrad Dybcio
Describe the missing power source, bias and direction for each of the USB0
retimer gpio-controlled voltage regulators related 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>
---
arch/arm64/boot/dts/qcom/x1e001de-devkit.dts | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/x1e001de-devkit.dts b/arch/arm64/boot/dts/qcom/x1e001de-devkit.dts
index 13516ae253fea6a7872da6c48bcf91eb95167a42..7104a21f852b8658b893490a01cfa1d1fc75f90a 100644
--- a/arch/arm64/boot/dts/qcom/x1e001de-devkit.dts
+++ b/arch/arm64/boot/dts/qcom/x1e001de-devkit.dts
@@ -1039,6 +1039,10 @@ rtmr0_default: rtmr0-reset-n-active-state {
usb0_3p3_reg_en: usb0-3p3-reg-en-state {
pins = "gpio11";
function = "normal";
+ power-source = <1>; /* 1.8 V */
+ bias-disable;
+ input-disable;
+ output-enable;
};
};
@@ -1046,6 +1050,10 @@ &pmc8380_5_gpios {
usb0_pwr_1p15_en: usb0-pwr-1p15-en-state {
pins = "gpio8";
function = "normal";
+ power-source = <1>; /* 1.8 V */
+ bias-disable;
+ input-disable;
+ output-enable;
};
};
@@ -1053,6 +1061,10 @@ &pm8550ve_9_gpios {
usb0_1p8_reg_en: usb0-1p8-reg-en-state {
pins = "gpio8";
function = "normal";
+ power-source = <1>; /* 1.8 V */
+ bias-disable;
+ input-disable;
+ output-enable;
};
};
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH v2 0/2] arm64: dts: x1e001de-devkit: USB retimers related fixes
2025-04-22 11:25 [PATCH v2 0/2] arm64: dts: x1e001de-devkit: USB retimers related fixes Abel Vesa
2025-04-22 11:25 ` [PATCH v2 1/2] arm64: dts: qcom: x1e001de-devkit: Describe USB retimers resets pin configs Abel Vesa
2025-04-22 11:25 ` [PATCH v2 2/2] arm64: dts: qcom: x1e001de-devkit: Fix pin config for USB0 retimer vregs Abel Vesa
@ 2025-04-22 12:26 ` Johan Hovold
2025-05-07 5:18 ` Bjorn Andersson
3 siblings, 0 replies; 5+ messages in thread
From: Johan Hovold @ 2025-04-22 12:26 UTC (permalink / raw)
To: Abel Vesa
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Sibi Sankar, linux-arm-msm, devicetree,
linux-kernel, Konrad Dybcio
On Tue, Apr 22, 2025 at 02:25:21PM +0300, Abel Vesa wrote:
> These fixes align all the USB retimer related nodes on the Devkit with the
> CRD and T14s.
>
> This patchset is based on Johan's:
> https://lore.kernel.org/all/20250318074907.13903-1-johan+linaro@kernel.org/
> Changes in v2:
> - Added space between voltage value and SI unit in comments, like Johan
> suggested.
> - Picked up Konrad's R-b tags
> - Link to v1: https://lore.kernel.org/r/20250318-x1e001de-devkit-dts-fix-retimer-gpios-v1-0-1c092f630b0c@linaro.org
Assuming you verified that PMIC power-source settings matches what the
firmware has configured:
Reviewed-by: Johan Hovold <johan+linaro@kernel.org>
Johan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 0/2] arm64: dts: x1e001de-devkit: USB retimers related fixes
2025-04-22 11:25 [PATCH v2 0/2] arm64: dts: x1e001de-devkit: USB retimers related fixes Abel Vesa
` (2 preceding siblings ...)
2025-04-22 12:26 ` [PATCH v2 0/2] arm64: dts: x1e001de-devkit: USB retimers related fixes Johan Hovold
@ 2025-05-07 5:18 ` Bjorn Andersson
3 siblings, 0 replies; 5+ messages in thread
From: Bjorn Andersson @ 2025-05-07 5:18 UTC (permalink / raw)
To: Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Sibi Sankar, Abel Vesa
Cc: Johan Hovold, linux-arm-msm, devicetree, linux-kernel,
Konrad Dybcio
On Tue, 22 Apr 2025 14:25:21 +0300, Abel Vesa wrote:
> These fixes align all the USB retimer related nodes on the Devkit with the
> CRD and T14s.
>
> This patchset is based on Johan's:
> https://lore.kernel.org/all/20250318074907.13903-1-johan+linaro@kernel.org/
>
>
> [...]
Applied, thanks!
[1/2] arm64: dts: qcom: x1e001de-devkit: Describe USB retimers resets pin configs
commit: f76fdcd2550991c854a698a9f881b1579455fc0a
[2/2] arm64: dts: qcom: x1e001de-devkit: Fix pin config for USB0 retimer vregs
commit: 635d0c8edf26994dc1dcbc09add9423aa61869b0
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 5+ messages in thread