* [PATCH v3 0/3] arm64: dts: qcom: x1e80100-hp-x14: add usb-1-ss1-sbu-mux
@ 2025-06-10 17:25 Jens Glathe via B4 Relay
2025-06-10 17:25 ` [PATCH v3 1/3] " Jens Glathe via B4 Relay
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Jens Glathe via B4 Relay @ 2025-06-10 17:25 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Jens Glathe
The usb_1_1 port doesn't have the PS8830 repeater, but apparently some
MUX for DP altmode control. After a suggestion from sgerhold on
'#aarch64-laptops' I added gpio-sbu-mux nodes from the x1e80100-QCP
tree, and this appears to work well. It is still guesswork, but
working guesswork.
Added and rewired for usb_1_1
Also, did some more changes as tested here:
- remove unused i2c buses
- amend order of nodes.
The series is based on [1] from Johan.
Signed-off-by: Jens Glathe <jens.glathe@oldschoolsolutions.biz>
---
Changes in v3:
- rebased to next-20250610 in preparation for X1P42100 variant support
- Link to v2: https://lore.kernel.org/r/20250410-hp-x14-v2-0-d36414704a0a@oldschoolsolutions.biz
Changes in v2:
- removed overlapping patches with [1] and [2] - thanks Johan
- Link to v1: https://lore.kernel.org/r/20250410-hp-x14-v1-0-b4e5ca253ec9@oldschoolsolutions.biz
[1] https://lore.kernel.org/lkml/20250328084154.16759-1-johan+linaro@kernel.org/
[2] https://lore.kernel.org/r/20250319160509.1812805-1-juerg.haefliger@canonical.com
---
Jens Glathe (3):
arm64: dts: qcom: x1e80100-hp-x14: add usb-1-ss1-sbu-mux
arm64: dts: qcom: x1e80100-hp-x14: remove unused i2c buses
arm64: dts: qcom: x1e80100-hp-x14: amend order of nodes
.../boot/dts/qcom/x1e80100-hp-omnibook-x14.dts | 98 ++++++++++++++--------
1 file changed, 62 insertions(+), 36 deletions(-)
---
base-commit: b27cc623e01be9de1580eaa913508b237a7a9673
change-id: 20250409-hp-x14-0f1d86bcb699
Best regards,
--
Jens Glathe <jens.glathe@oldschoolsolutions.biz>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v3 1/3] arm64: dts: qcom: x1e80100-hp-x14: add usb-1-ss1-sbu-mux
2025-06-10 17:25 [PATCH v3 0/3] arm64: dts: qcom: x1e80100-hp-x14: add usb-1-ss1-sbu-mux Jens Glathe via B4 Relay
@ 2025-06-10 17:25 ` Jens Glathe via B4 Relay
2025-06-10 17:25 ` [PATCH v3 2/3] arm64: dts: qcom: x1e80100-hp-x14: remove unused i2c buses Jens Glathe via B4 Relay
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: Jens Glathe via B4 Relay @ 2025-06-10 17:25 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Jens Glathe
From: Jens Glathe <jens.glathe@oldschoolsolutions.biz>
The usb_1_1 port doesn't have the PS8830 repeater, but apparently some
MUX for DP altmode control. After a suggestion from sgerhold on
'#aarch64-laptops' I added gpio-sbu-mux nodes from the x1e80100-QCP
tree, and this appears to work well. It is still guesswork, but
working guesswork.
Added and rewired for usb_1_1
Signed-off-by: Jens Glathe <jens.glathe@oldschoolsolutions.biz>
---
.../boot/dts/qcom/x1e80100-hp-omnibook-x14.dts | 51 ++++++++++++++++++++++
1 file changed, 51 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/x1e80100-hp-omnibook-x14.dts b/arch/arm64/boot/dts/qcom/x1e80100-hp-omnibook-x14.dts
index 10b3af5e79fb6493cd6b6c661de6a801e40092f7..315987f2b62b818059cd1b5dbba28f908c58f00a 100644
--- a/arch/arm64/boot/dts/qcom/x1e80100-hp-omnibook-x14.dts
+++ b/arch/arm64/boot/dts/qcom/x1e80100-hp-omnibook-x14.dts
@@ -153,6 +153,14 @@ pmic_glink_ss1_ss_in: endpoint {
remote-endpoint = <&usb_1_ss1_qmpphy_out>;
};
};
+
+ port@2 {
+ reg = <2>;
+
+ pmic_glink_ss1_sbu: endpoint {
+ remote-endpoint = <&usb_1_ss1_sbu_mux>;
+ };
+ };
};
};
};
@@ -477,6 +485,25 @@ vreg_pmu_rfa_1p7: ldo9 {
};
};
};
+
+ usb-1-ss1-sbu-mux {
+ compatible = "onnn,fsusb42", "gpio-sbu-mux";
+
+ enable-gpios = <&tlmm 179 GPIO_ACTIVE_LOW>;
+ select-gpios = <&tlmm 178 GPIO_ACTIVE_HIGH>;
+
+ pinctrl-0 = <&usb_1_ss1_sbu_default>;
+ pinctrl-names = "default";
+
+ mode-switch;
+ orientation-switch;
+
+ port {
+ usb_1_ss1_sbu_mux: endpoint {
+ remote-endpoint = <&pmic_glink_ss1_sbu>;
+ };
+ };
+ };
};
&apps_rsc {
@@ -1419,6 +1446,30 @@ reset-n-pins {
};
};
+ usb_1_ss1_sbu_default: usb-1-ss1-sbu-state {
+ mode-pins {
+ pins = "gpio177";
+ function = "gpio";
+ bias-disable;
+ drive-strength = <2>;
+ output-high;
+ };
+
+ oe-n-pins {
+ pins = "gpio179";
+ function = "gpio";
+ bias-disable;
+ drive-strength = <2>;
+ };
+
+ sel-pins {
+ pins = "gpio178";
+ function = "gpio";
+ bias-disable;
+ drive-strength = <2>;
+ };
+ };
+
wcd_default: wcd-reset-n-active-state {
pins = "gpio191";
function = "gpio";
--
2.48.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v3 2/3] arm64: dts: qcom: x1e80100-hp-x14: remove unused i2c buses
2025-06-10 17:25 [PATCH v3 0/3] arm64: dts: qcom: x1e80100-hp-x14: add usb-1-ss1-sbu-mux Jens Glathe via B4 Relay
2025-06-10 17:25 ` [PATCH v3 1/3] " Jens Glathe via B4 Relay
@ 2025-06-10 17:25 ` Jens Glathe via B4 Relay
2025-06-11 15:10 ` Konrad Dybcio
2025-06-10 17:25 ` [PATCH v3 3/3] arm64: dts: qcom: x1e80100-hp-x14: amend order of nodes Jens Glathe via B4 Relay
2025-06-12 4:00 ` [PATCH v3 0/3] arm64: dts: qcom: x1e80100-hp-x14: add usb-1-ss1-sbu-mux Bjorn Andersson
3 siblings, 1 reply; 7+ messages in thread
From: Jens Glathe via B4 Relay @ 2025-06-10 17:25 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Jens Glathe
From: Jens Glathe <jens.glathe@oldschoolsolutions.biz>
At least from Linux, these buses are not in use. Remove them from the dt.
Signed-off-by: Jens Glathe <jens.glathe@oldschoolsolutions.biz>
---
.../boot/dts/qcom/x1e80100-hp-omnibook-x14.dts | 25 ----------------------
1 file changed, 25 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/x1e80100-hp-omnibook-x14.dts b/arch/arm64/boot/dts/qcom/x1e80100-hp-omnibook-x14.dts
index 315987f2b62b818059cd1b5dbba28f908c58f00a..3071ed8e192616be797d30d72c21d56b72afc608 100644
--- a/arch/arm64/boot/dts/qcom/x1e80100-hp-omnibook-x14.dts
+++ b/arch/arm64/boot/dts/qcom/x1e80100-hp-omnibook-x14.dts
@@ -904,15 +904,6 @@ touchpad@15 {
};
};
-&i2c1 {
- clock-frequency = <400000>;
-
- status = "okay";
-
- /* type-c PS8830 Retimer #2 0x8 */
- /* is active on Windows */
-};
-
&i2c3 {
clock-frequency = <400000>;
@@ -970,14 +961,6 @@ retimer_ss0_con_sbu_out: endpoint {
};
};
-&i2c4 {
- clock-frequency = <400000>;
-
- status = "okay";
-
- /* is active on Windows */
-};
-
&i2c5 {
clock-frequency = <400000>;
status = "okay";
@@ -1018,14 +1001,6 @@ touchscreen@10 {
};
};
-&i2c9 {
- clock-frequency = <400000>;
-
- status = "okay";
-
- /* is active on Windows */
-};
-
&lpass_tlmm {
spkr_01_sd_n_active: spkr-01-sd-n-active-state {
pins = "gpio12";
--
2.48.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v3 3/3] arm64: dts: qcom: x1e80100-hp-x14: amend order of nodes
2025-06-10 17:25 [PATCH v3 0/3] arm64: dts: qcom: x1e80100-hp-x14: add usb-1-ss1-sbu-mux Jens Glathe via B4 Relay
2025-06-10 17:25 ` [PATCH v3 1/3] " Jens Glathe via B4 Relay
2025-06-10 17:25 ` [PATCH v3 2/3] arm64: dts: qcom: x1e80100-hp-x14: remove unused i2c buses Jens Glathe via B4 Relay
@ 2025-06-10 17:25 ` Jens Glathe via B4 Relay
2025-06-11 15:11 ` Konrad Dybcio
2025-06-12 4:00 ` [PATCH v3 0/3] arm64: dts: qcom: x1e80100-hp-x14: add usb-1-ss1-sbu-mux Bjorn Andersson
3 siblings, 1 reply; 7+ messages in thread
From: Jens Glathe via B4 Relay @ 2025-06-10 17:25 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Jens Glathe
From: Jens Glathe <jens.glathe@oldschoolsolutions.biz>
amend the order of pmk8550_* nodes afte pmc8380_*
Signed-off-by: Jens Glathe <jens.glathe@oldschoolsolutions.biz>
---
.../boot/dts/qcom/x1e80100-hp-omnibook-x14.dts | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/x1e80100-hp-omnibook-x14.dts b/arch/arm64/boot/dts/qcom/x1e80100-hp-omnibook-x14.dts
index 3071ed8e192616be797d30d72c21d56b72afc608..8d2a9b7f4730783bbaa81e488a0e99cc195a195f 100644
--- a/arch/arm64/boot/dts/qcom/x1e80100-hp-omnibook-x14.dts
+++ b/arch/arm64/boot/dts/qcom/x1e80100-hp-omnibook-x14.dts
@@ -1195,17 +1195,6 @@ edp_bl_reg_en: edp-bl-reg-en-state {
};
-&pmk8550_gpios {
- edp_bl_pwm: edp-bl-pwm-state {
- pins = "gpio5";
- function = "func3";
- };
-};
-
-&pmk8550_pwm {
- status = "okay";
-};
-
&pmc8380_5_gpios {
usb0_pwr_1p15_reg_en: usb0-pwr-1p15-reg-en-state {
pins = "gpio8";
@@ -1217,6 +1206,17 @@ usb0_pwr_1p15_reg_en: usb0-pwr-1p15-reg-en-state {
};
};
+&pmk8550_gpios {
+ edp_bl_pwm: edp-bl-pwm-state {
+ pins = "gpio5";
+ function = "func3";
+ };
+};
+
+&pmk8550_pwm {
+ status = "okay";
+};
+
&qupv3_0 {
status = "okay";
};
--
2.48.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH v3 2/3] arm64: dts: qcom: x1e80100-hp-x14: remove unused i2c buses
2025-06-10 17:25 ` [PATCH v3 2/3] arm64: dts: qcom: x1e80100-hp-x14: remove unused i2c buses Jens Glathe via B4 Relay
@ 2025-06-11 15:10 ` Konrad Dybcio
0 siblings, 0 replies; 7+ messages in thread
From: Konrad Dybcio @ 2025-06-11 15:10 UTC (permalink / raw)
To: jens.glathe, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel
On 6/10/25 7:25 PM, Jens Glathe via B4 Relay wrote:
> From: Jens Glathe <jens.glathe@oldschoolsolutions.biz>
>
> At least from Linux, these buses are not in use. Remove them from the dt.
>
> Signed-off-by: Jens Glathe <jens.glathe@oldschoolsolutions.biz>
> ---
if you're sure there's nothing interesting on them:
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Konrad
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v3 3/3] arm64: dts: qcom: x1e80100-hp-x14: amend order of nodes
2025-06-10 17:25 ` [PATCH v3 3/3] arm64: dts: qcom: x1e80100-hp-x14: amend order of nodes Jens Glathe via B4 Relay
@ 2025-06-11 15:11 ` Konrad Dybcio
0 siblings, 0 replies; 7+ messages in thread
From: Konrad Dybcio @ 2025-06-11 15:11 UTC (permalink / raw)
To: jens.glathe, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel
On 6/10/25 7:25 PM, Jens Glathe via B4 Relay wrote:
> From: Jens Glathe <jens.glathe@oldschoolsolutions.biz>
>
> amend the order of pmk8550_* nodes afte pmc8380_*
>
> Signed-off-by: Jens Glathe <jens.glathe@oldschoolsolutions.biz>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Konrad
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v3 0/3] arm64: dts: qcom: x1e80100-hp-x14: add usb-1-ss1-sbu-mux
2025-06-10 17:25 [PATCH v3 0/3] arm64: dts: qcom: x1e80100-hp-x14: add usb-1-ss1-sbu-mux Jens Glathe via B4 Relay
` (2 preceding siblings ...)
2025-06-10 17:25 ` [PATCH v3 3/3] arm64: dts: qcom: x1e80100-hp-x14: amend order of nodes Jens Glathe via B4 Relay
@ 2025-06-12 4:00 ` Bjorn Andersson
3 siblings, 0 replies; 7+ messages in thread
From: Bjorn Andersson @ 2025-06-12 4:00 UTC (permalink / raw)
To: Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Jens Glathe
Cc: linux-arm-msm, devicetree, linux-kernel
On Tue, 10 Jun 2025 19:25:38 +0200, Jens Glathe wrote:
> The usb_1_1 port doesn't have the PS8830 repeater, but apparently some
> MUX for DP altmode control. After a suggestion from sgerhold on
> '#aarch64-laptops' I added gpio-sbu-mux nodes from the x1e80100-QCP
> tree, and this appears to work well. It is still guesswork, but
> working guesswork.
>
> Added and rewired for usb_1_1
>
> [...]
Applied, thanks!
[1/3] arm64: dts: qcom: x1e80100-hp-x14: add usb-1-ss1-sbu-mux
commit: b9137c58c737c928d71c3dd2bb3abc47abdd05b6
[2/3] arm64: dts: qcom: x1e80100-hp-x14: remove unused i2c buses
commit: 8766cead89ff362fa19fa5fd93f6752bdf68c2c4
[3/3] arm64: dts: qcom: x1e80100-hp-x14: amend order of nodes
commit: 0bc88e66b3a1e9086f786f1033a03867777a1104
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2025-06-12 4:00 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-10 17:25 [PATCH v3 0/3] arm64: dts: qcom: x1e80100-hp-x14: add usb-1-ss1-sbu-mux Jens Glathe via B4 Relay
2025-06-10 17:25 ` [PATCH v3 1/3] " Jens Glathe via B4 Relay
2025-06-10 17:25 ` [PATCH v3 2/3] arm64: dts: qcom: x1e80100-hp-x14: remove unused i2c buses Jens Glathe via B4 Relay
2025-06-11 15:10 ` Konrad Dybcio
2025-06-10 17:25 ` [PATCH v3 3/3] arm64: dts: qcom: x1e80100-hp-x14: amend order of nodes Jens Glathe via B4 Relay
2025-06-11 15:11 ` Konrad Dybcio
2025-06-12 4:00 ` [PATCH v3 0/3] arm64: dts: qcom: x1e80100-hp-x14: add usb-1-ss1-sbu-mux Bjorn Andersson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox