* [PATCH 1/2] arm64: dts: qcom: x1e80100-vivobook-s15: Enable USB-A ports
2025-01-19 14:50 [PATCH 0/2] arm64: dts: qcom: x1e80100-vivobook-s15: Add usb a and sd-card reader Maud Spierings via B4 Relay
@ 2025-01-19 14:50 ` Maud Spierings via B4 Relay
2025-01-19 21:50 ` Mark Kettenis
2025-01-19 14:50 ` [PATCH 2/2] arm64: dts: qcom: x1e80100-vivobook-s15: Enable micro-sd card reader Maud Spierings via B4 Relay
` (3 subsequent siblings)
4 siblings, 1 reply; 8+ messages in thread
From: Maud Spierings via B4 Relay @ 2025-01-19 14:50 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Maud Spierings
From: Maud Spierings <maud_spierings@hotmail.com>
The asus vivobook has 2 USB type A ports on the right side, enable them
Signed-off-by: Maud Spierings <maud_spierings@hotmail.com>
---
.../boot/dts/qcom/x1e80100-asus-vivobook-s15.dts | 103 ++++++++++++++++++++-
1 file changed, 102 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts b/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts
index 53781f9b13af3e8491dcf63c57868eaf7025d0a8..b66d03ee3ff30561e8665be6ad34919f89a79572 100644
--- a/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts
+++ b/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts
@@ -192,6 +192,20 @@ vreg_l2b_3p0: ldo2 {
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
};
+ vreg_l4b_1p8: ldo4 {
+ regulator-name = "vreg_l4b_1p8";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l13b_3p0: ldo13 {
+ regulator-name = "vreg_l13b_3p0";
+ regulator-min-microvolt = <3072000>;
+ regulator-max-microvolt = <3072000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
vreg_l14b_3p0: ldo14 {
regulator-name = "vreg_l14b_3p0";
regulator-min-microvolt = <3072000>;
@@ -209,6 +223,13 @@ regulators-1 {
vdd-l3-supply = <&vreg_s1f_0p7>;
vdd-s4-supply = <&vph_pwr>;
+ vreg_l3c_0p8: ldo3 {
+ regulator-name = "vreg_l3c_0p8";
+ regulator-min-microvolt = <912000>;
+ regulator-max-microvolt = <912000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
vreg_s4c_1p8: smps4 {
regulator-name = "vreg_s4c_1p8";
regulator-min-microvolt = <1856000>;
@@ -401,7 +422,35 @@ keyboard@3a {
wakeup-source;
};
- /* EC? @ 0x5b, 0x76 */
+ eusb3_repeater: redriver@47 {
+ compatible = "nxp,ptn3222";
+ reg = <0x47>;
+ #phy-cells = <0>;
+
+ vdd3v3-supply = <&vreg_l13b_3p0>;
+ vdd1v8-supply = <&vreg_l4b_1p8>;
+
+ reset-gpios = <&tlmm 6 GPIO_ACTIVE_LOW>;
+
+ pinctrl-0 = <&eusb3_reset_n>;
+ pinctrl-names = "default";
+ };
+
+ eusb6_repeater: redriver@4f {
+ compatible = "nxp,ptn3222";
+ reg = <0x4f>;
+ #phy-cells = <0>;
+
+ vdd3v3-supply = <&vreg_l13b_3p0>;
+ vdd1v8-supply = <&vreg_l4b_1p8>;
+
+ reset-gpios = <&tlmm 184 GPIO_ACTIVE_LOW>;
+
+ pinctrl-0 = <&eusb6_reset_n>;
+ pinctrl-names = "default";
+ };
+
+ /* EC @ 0x76 */
};
&i2c7 {
@@ -563,6 +612,22 @@ edp_reg_en: edp-reg-en-state {
bias-disable;
};
+ eusb3_reset_n: eusb3-reset-n-state {
+ pins = "gpio6";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-pull-up;
+ output-low;
+ };
+
+ eusb6_reset_n: eusb6-reset-n-state {
+ pins = "gpio184";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-pull-up;
+ output-low;
+ };
+
hall_int_n_default: hall-int-n-state {
pins = "gpio92";
function = "gpio";
@@ -698,3 +763,39 @@ &usb_1_ss1_dwc3_hs {
&usb_1_ss1_qmpphy_out {
remote-endpoint = <&pmic_glink_ss1_ss_in>;
};
+
+&usb_mp {
+ status = "okay";
+};
+
+&usb_mp_hsphy0 {
+ vdd-supply = <&vreg_l2e_0p8>;
+ vdda12-supply = <&vreg_l3e_1p2>;
+
+ phys = <&eusb6_repeater>;
+
+ status = "okay";
+};
+
+&usb_mp_hsphy1 {
+ vdd-supply = <&vreg_l2e_0p8>;
+ vdda12-supply = <&vreg_l3e_1p2>;
+
+ phys = <&eusb3_repeater>;
+
+ status = "okay";
+};
+
+&usb_mp_qmpphy0 {
+ vdda-phy-supply = <&vreg_l3e_1p2>;
+ vdda-pll-supply = <&vreg_l3c_0p8>;
+
+ status = "okay";
+};
+
+&usb_mp_qmpphy1 {
+ vdda-phy-supply = <&vreg_l3e_1p2>;
+ vdda-pll-supply = <&vreg_l3c_0p8>;
+
+ status = "okay";
+};
--
2.47.1
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PATCH 1/2] arm64: dts: qcom: x1e80100-vivobook-s15: Enable USB-A ports
2025-01-19 14:50 ` [PATCH 1/2] arm64: dts: qcom: x1e80100-vivobook-s15: Enable USB-A ports Maud Spierings via B4 Relay
@ 2025-01-19 21:50 ` Mark Kettenis
0 siblings, 0 replies; 8+ messages in thread
From: Mark Kettenis @ 2025-01-19 21:50 UTC (permalink / raw)
To: Maud Spierings
Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, linux-arm-msm,
devicetree, linux-kernel, maud_spierings
> From: Maud Spierings <maud_spierings@hotmail.com>
> Date: Sun, 19 Jan 2025 15:50:51 +0100
>
> The asus vivobook has 2 USB type A ports on the right side, enable them
>
> Signed-off-by: Maud Spierings <maud_spierings@hotmail.com>
> ---
> .../boot/dts/qcom/x1e80100-asus-vivobook-s15.dts | 103 ++++++++++++++++++++-
> 1 file changed, 102 insertions(+), 1 deletion(-)
>
Makes those ports work with OpenBSD as well.
Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 2/2] arm64: dts: qcom: x1e80100-vivobook-s15: Enable micro-sd card reader
2025-01-19 14:50 [PATCH 0/2] arm64: dts: qcom: x1e80100-vivobook-s15: Add usb a and sd-card reader Maud Spierings via B4 Relay
2025-01-19 14:50 ` [PATCH 1/2] arm64: dts: qcom: x1e80100-vivobook-s15: Enable USB-A ports Maud Spierings via B4 Relay
@ 2025-01-19 14:50 ` Maud Spierings via B4 Relay
2025-01-19 21:55 ` Mark Kettenis
2025-01-19 21:53 ` [PATCH 0/2] arm64: dts: qcom: x1e80100-vivobook-s15: Add usb a and sd-card reader Mark Kettenis
` (2 subsequent siblings)
4 siblings, 1 reply; 8+ messages in thread
From: Maud Spierings via B4 Relay @ 2025-01-19 14:50 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Maud Spierings
From: Maud Spierings <maud_spierings@hotmail.com>
The asus vivobook s15 has a micro-sd card reader attached to usb_2.
Enable usb_2 to enable this reader.
Signed-off-by: Maud Spierings <maud_spierings@hotmail.com>
---
.../boot/dts/qcom/x1e80100-asus-vivobook-s15.dts | 39 ++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts b/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts
index b66d03ee3ff30561e8665be6ad34919f89a79572..fb9567817be6f887c9214cafbfbabda8b8cb8203 100644
--- a/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts
+++ b/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts
@@ -422,6 +422,20 @@ keyboard@3a {
wakeup-source;
};
+ eusb5_repeater: redriver@43 {
+ compatible = "nxp,ptn3222";
+ reg = <0x43>;
+ #phy-cells = <0>;
+
+ vdd3v3-supply = <&vreg_l13b_3p0>;
+ vdd1v8-supply = <&vreg_l4b_1p8>;
+
+ reset-gpios = <&tlmm 7 GPIO_ACTIVE_LOW>;
+
+ pinctrl-0 = <&eusb5_reset_n>;
+ pinctrl-names = "default";
+ };
+
eusb3_repeater: redriver@47 {
compatible = "nxp,ptn3222";
reg = <0x47>;
@@ -620,6 +634,14 @@ eusb3_reset_n: eusb3-reset-n-state {
output-low;
};
+ eusb5_reset_n: eusb5-reset-n-state {
+ pins = "gpio7";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-pull-up;
+ output-low;
+ };
+
eusb6_reset_n: eusb6-reset-n-state {
pins = "gpio184";
function = "gpio";
@@ -764,6 +786,23 @@ &usb_1_ss1_qmpphy_out {
remote-endpoint = <&pmic_glink_ss1_ss_in>;
};
+&usb_2 {
+ status = "okay";
+};
+
+&usb_2_dwc3 {
+ dr_mode = "host";
+};
+
+&usb_2_hsphy {
+ vdd-supply = <&vreg_l2e_0p8>;
+ vdda12-supply = <&vreg_l3e_1p2>;
+
+ phys = <&eusb5_repeater>;
+
+ status = "okay";
+};
+
&usb_mp {
status = "okay";
};
--
2.47.1
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PATCH 2/2] arm64: dts: qcom: x1e80100-vivobook-s15: Enable micro-sd card reader
2025-01-19 14:50 ` [PATCH 2/2] arm64: dts: qcom: x1e80100-vivobook-s15: Enable micro-sd card reader Maud Spierings via B4 Relay
@ 2025-01-19 21:55 ` Mark Kettenis
0 siblings, 0 replies; 8+ messages in thread
From: Mark Kettenis @ 2025-01-19 21:55 UTC (permalink / raw)
To: Maud Spierings
Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, linux-arm-msm,
devicetree, linux-kernel, maud_spierings
> From: Maud Spierings <maud_spierings@hotmail.com>
> Date: Sun, 19 Jan 2025 15:50:52 +0100
>
> The asus vivobook s15 has a micro-sd card reader attached to usb_2.
>
> Enable usb_2 to enable this reader.
>
> Signed-off-by: Maud Spierings <maud_spierings@hotmail.com>
> ---
> .../boot/dts/qcom/x1e80100-asus-vivobook-s15.dts | 39 ++++++++++++++++++++++
> 1 file changed, 39 insertions(+)
Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/2] arm64: dts: qcom: x1e80100-vivobook-s15: Add usb a and sd-card reader
2025-01-19 14:50 [PATCH 0/2] arm64: dts: qcom: x1e80100-vivobook-s15: Add usb a and sd-card reader Maud Spierings via B4 Relay
2025-01-19 14:50 ` [PATCH 1/2] arm64: dts: qcom: x1e80100-vivobook-s15: Enable USB-A ports Maud Spierings via B4 Relay
2025-01-19 14:50 ` [PATCH 2/2] arm64: dts: qcom: x1e80100-vivobook-s15: Enable micro-sd card reader Maud Spierings via B4 Relay
@ 2025-01-19 21:53 ` Mark Kettenis
2025-02-28 7:35 ` Maud Spierings
2025-03-17 2:55 ` Bjorn Andersson
4 siblings, 0 replies; 8+ messages in thread
From: Mark Kettenis @ 2025-01-19 21:53 UTC (permalink / raw)
To: Maud Spierings
Cc: andersson, konradybcio, robh, krzk+dt, conor+dt, linux-arm-msm,
devicetree, linux-kernel, maud_spierings
> From: Maud Spierings <maud_spierings@hotmail.com>
> Date: Sun, 19 Jan 2025 15:50:50 +0100
>
> The Asus Vivobook s15 has 2 5gbps usb A ports on the right side which
> are controlled by the usb_mp controller enable them and the retimers
> required.
>
> There is also a micro sd-card reader on the left side below the two
> usb-c ports, this one is attached to the usb_2 controller. Enable it and
> the retimer to enable the micro sd-card reader.
>
> The micro sd-card reader seems to have so interesting behaviour, on my
> machine and someone elses it kind of half works, but not really, the
> same under windows, unusable. Either we both got unlucky with a hardware
> defect or there is something else going on, however two other people did
> succesfully test it, one of which on (free?)bsd instead of linux even.
OpenBSD ;). And yes, the SD-card reader works just fine for me with
this series.
> One hypothesis is that this area is where the charging circuitry is,
> which gets *very* hot while charging and might damage this bit of
> hardware. However this is very much speculation and not based on
> anything concrete.
>
> Symptoms of dysfunctional sd-card reader:
> The sd card will get detected, a usb device will appear as "Genesys Logic
> STORAGE DEVICE" 05e3:0747
>
> log:
> [ 2456.648075] usb 1-1: new high-speed USB device number 3 using xhci-hcd
> [ 2456.792703] usb-storage 1-1:1.0: USB Mass Storage device detected
> [ 2456.795530] scsi host0: usb-storage 1-1:1.0
> [ 2457.840518] scsi 0:0:0:0: Direct-Access Generic MassStorageClass
> 2402 PQ: 0 ANSI: 6
> [ 2458.072281] sd 0:0:0:0: [sda] Media removed, stopped polling
> [ 2458.073001] sd 0:0:0:0: [sda] Attached SCSI removable disk
>
> /dev/sda will appear, but it will not do anything, fdisk rejects it etc
>
> Signed-off-by: Maud Spierings <maud_spierings@hotmail.com>
> ---
> Maud Spierings (2):
> arm64: dts: qcom: x1e80100-vivobook-s15: Enable USB-A ports
> arm64: dts: qcom: x1e80100-vivobook-s15: Enable micro-sd card reader
>
> .../boot/dts/qcom/x1e80100-asus-vivobook-s15.dts | 142 ++++++++++++++++++++-
> 1 file changed, 141 insertions(+), 1 deletion(-)
> ---
> base-commit: 0907e7fb35756464aa34c35d6abb02998418164b
> change-id: 20250119-usb_a_micro_sd-4c476ea769b1
>
> Best regards,
> --
> Maud Spierings <maud_spierings@hotmail.com>
>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/2] arm64: dts: qcom: x1e80100-vivobook-s15: Add usb a and sd-card reader
2025-01-19 14:50 [PATCH 0/2] arm64: dts: qcom: x1e80100-vivobook-s15: Add usb a and sd-card reader Maud Spierings via B4 Relay
` (2 preceding siblings ...)
2025-01-19 21:53 ` [PATCH 0/2] arm64: dts: qcom: x1e80100-vivobook-s15: Add usb a and sd-card reader Mark Kettenis
@ 2025-02-28 7:35 ` Maud Spierings
2025-03-17 2:55 ` Bjorn Andersson
4 siblings, 0 replies; 8+ messages in thread
From: Maud Spierings @ 2025-02-28 7:35 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel
On 1/19/25 3:50 PM, Maud Spierings via B4 Relay wrote:
> The Asus Vivobook s15 has 2 5gbps usb A ports on the right side which
> are controlled by the usb_mp controller enable them and the retimers
> required.
>
> There is also a micro sd-card reader on the left side below the two
> usb-c ports, this one is attached to the usb_2 controller. Enable it and
> the retimer to enable the micro sd-card reader.
>
> The micro sd-card reader seems to have so interesting behaviour, on my
> machine and someone elses it kind of half works, but not really, the
> same under windows, unusable. Either we both got unlucky with a hardware
> defect or there is something else going on, however two other people did
> succesfully test it, one of which on (free?)bsd instead of linux even.
> One hypothesis is that this area is where the charging circuitry is,
> which gets *very* hot while charging and might damage this bit of
> hardware. However this is very much speculation and not based on
> anything concrete.
>
> Symptoms of dysfunctional sd-card reader:
> The sd card will get detected, a usb device will appear as "Genesys Logic
> STORAGE DEVICE" 05e3:0747
>
> log:
> [ 2456.648075] usb 1-1: new high-speed USB device number 3 using xhci-hcd
> [ 2456.792703] usb-storage 1-1:1.0: USB Mass Storage device detected
> [ 2456.795530] scsi host0: usb-storage 1-1:1.0
> [ 2457.840518] scsi 0:0:0:0: Direct-Access Generic MassStorageClass
> 2402 PQ: 0 ANSI: 6
> [ 2458.072281] sd 0:0:0:0: [sda] Media removed, stopped polling
> [ 2458.073001] sd 0:0:0:0: [sda] Attached SCSI removable disk
>
> /dev/sda will appear, but it will not do anything, fdisk rejects it etc
>
> Signed-off-by: Maud Spierings <maud_spierings@hotmail.com>
> ---
> Maud Spierings (2):
> arm64: dts: qcom: x1e80100-vivobook-s15: Enable USB-A ports
> arm64: dts: qcom: x1e80100-vivobook-s15: Enable micro-sd card reader
>
> .../boot/dts/qcom/x1e80100-asus-vivobook-s15.dts | 142 ++++++++++++++++++++-
> 1 file changed, 141 insertions(+), 1 deletion(-)
> ---
> base-commit: 0907e7fb35756464aa34c35d6abb02998418164b
> change-id: 20250119-usb_a_micro_sd-4c476ea769b1
>
> Best regards,
Gentle ping, would be nice to get this into 6.15
Kind regards,
Maud
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH 0/2] arm64: dts: qcom: x1e80100-vivobook-s15: Add usb a and sd-card reader
2025-01-19 14:50 [PATCH 0/2] arm64: dts: qcom: x1e80100-vivobook-s15: Add usb a and sd-card reader Maud Spierings via B4 Relay
` (3 preceding siblings ...)
2025-02-28 7:35 ` Maud Spierings
@ 2025-03-17 2:55 ` Bjorn Andersson
4 siblings, 0 replies; 8+ messages in thread
From: Bjorn Andersson @ 2025-03-17 2:55 UTC (permalink / raw)
To: Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Maud Spierings
Cc: linux-arm-msm, devicetree, linux-kernel
On Sun, 19 Jan 2025 15:50:50 +0100, Maud Spierings wrote:
> The Asus Vivobook s15 has 2 5gbps usb A ports on the right side which
> are controlled by the usb_mp controller enable them and the retimers
> required.
>
> There is also a micro sd-card reader on the left side below the two
> usb-c ports, this one is attached to the usb_2 controller. Enable it and
> the retimer to enable the micro sd-card reader.
>
> [...]
Applied, thanks!
[1/2] arm64: dts: qcom: x1e80100-vivobook-s15: Enable USB-A ports
commit: c0c46eea2444dcd78400bfa6b264f59dd55aaf42
[2/2] arm64: dts: qcom: x1e80100-vivobook-s15: Enable micro-sd card reader
commit: 1fcbbdc0806219153dd0761999ca4bf47d164787
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 8+ messages in thread