* [PATCH] arm64: dts: rockchip: fix u2phy1_host status for NanoPi R4S
@ 2025-02-24 17:09 Justin Klaassen
2025-02-25 14:25 ` Dragan Simic
0 siblings, 1 reply; 4+ messages in thread
From: Justin Klaassen @ 2025-02-24 17:09 UTC (permalink / raw)
To: Tianling Shen, Kever Yang, Johan Jonker, Dragan Simic,
Heiko Stuebner, Conor Dooley, Krzysztof Kozlowski, Rob Herring
Cc: devicetree, linux-arm-kernel, linux-rockchip, linux-kernel,
Justin Klaassen
The u2phy1_host should always have the same status as usb_host1_ehci,
otherwise the ehci driver may be initialized for a disabled usb port.
Signed-off-by: Justin Klaassen <justin@tidylabs.net>
---
arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dtsi
index b1c9bd0e63ef..8d94d9f91a5c 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dtsi
@@ -115,7 +115,7 @@ &u2phy0_host {
};
&u2phy1_host {
- status = "disabled";
+ phy-supply = <&vdd_5v>;
};
&uart0 {
--
2.47.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] arm64: dts: rockchip: fix u2phy1_host status for NanoPi R4S
2025-02-24 17:09 [PATCH] arm64: dts: rockchip: fix u2phy1_host status for NanoPi R4S Justin Klaassen
@ 2025-02-25 14:25 ` Dragan Simic
2025-02-25 17:03 ` [PATCH v2] " Justin Klaassen
0 siblings, 1 reply; 4+ messages in thread
From: Dragan Simic @ 2025-02-25 14:25 UTC (permalink / raw)
To: Justin Klaassen
Cc: Tianling Shen, Kever Yang, Johan Jonker, Heiko Stuebner,
Conor Dooley, Krzysztof Kozlowski, Rob Herring, devicetree,
linux-arm-kernel, linux-rockchip, linux-kernel
Hello Justin,
Thanks for the patch! Please, see a few comments below.
On 2025-02-24 18:09, Justin Klaassen wrote:
> The u2phy1_host should always have the same status as usb_host1_ehci,
> otherwise the ehci driver may be initialized for a disabled usb port.
>
> Signed-off-by: Justin Klaassen <justin@tidylabs.net>
> ---
> arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dtsi | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dtsi
> b/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dtsi
> index b1c9bd0e63ef..8d94d9f91a5c 100644
> --- a/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dtsi
> +++ b/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dtsi
> @@ -115,7 +115,7 @@ &u2phy0_host {
> };
>
> &u2phy1_host {
> - status = "disabled";
> + phy-supply = <&vdd_5v>;
> };
>
> &uart0 {
Indeed, the rk3399-nanopi4.dtsi file, which rk3399-nanopi-r4s.dtsi
extends, enables u2phy1_host, usb_host1_ehci and usb_host1_ohci,
so disabling u2phy1_host in rk3399-nanopi-r4s.dtsi makes no sense.
After checking the NanoPi R4S schematic, I can confirm that the
phy-supply references the right regulator. There are some strange
things in the schematic, but they're unrelated to this patch.
However, there should be a v2 of this patch with the proper Fixes
and CC: stable tags, so this bugfix also gets propagated into the
long-term kernels. Please, feel free to also include
Reviewed-by: Dragan Simic <dsimic@manjaro.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2] arm64: dts: rockchip: fix u2phy1_host status for NanoPi R4S
2025-02-25 14:25 ` Dragan Simic
@ 2025-02-25 17:03 ` Justin Klaassen
2025-02-27 13:37 ` Heiko Stuebner
0 siblings, 1 reply; 4+ messages in thread
From: Justin Klaassen @ 2025-02-25 17:03 UTC (permalink / raw)
To: Tianling Shen, Kever Yang, Johan Jonker, Dragan Simic,
Heiko Stuebner, Conor Dooley, Krzysztof Kozlowski, Rob Herring
Cc: devicetree, linux-arm-kernel, linux-rockchip, linux-kernel,
Justin Klaassen, stable
The u2phy1_host should always have the same status as usb_host1_ehci
and usb_host1_ohci, otherwise the EHCI and OHCI drivers may be
initialized for a disabled usb port.
Per the NanoPi R4S schematic, the phy-supply for u2phy1_host is set to
the vdd_5v regulator.
Fixes: db792e9adbf8 ("rockchip: rk3399: Add support for FriendlyARM NanoPi R4S")
Cc: stable@vger.kernel.org
Signed-off-by: Justin Klaassen <justin@tidylabs.net>
Reviewed-by: Dragan Simic <dsimic@manjaro.org>
---
v1 -> v2: Updated commit message, added Fixes: and Cc: stable tags
arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dtsi
index b1c9bd0e63ef..8d94d9f91a5c 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dtsi
@@ -115,7 +115,7 @@ &u2phy0_host {
};
&u2phy1_host {
- status = "disabled";
+ phy-supply = <&vdd_5v>;
};
&uart0 {
--
2.47.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] arm64: dts: rockchip: fix u2phy1_host status for NanoPi R4S
2025-02-25 17:03 ` [PATCH v2] " Justin Klaassen
@ 2025-02-27 13:37 ` Heiko Stuebner
0 siblings, 0 replies; 4+ messages in thread
From: Heiko Stuebner @ 2025-02-27 13:37 UTC (permalink / raw)
To: Tianling Shen, Kever Yang, Johan Jonker, Dragan Simic,
Conor Dooley, Krzysztof Kozlowski, Rob Herring, Justin Klaassen
Cc: Heiko Stuebner, devicetree, linux-arm-kernel, linux-rockchip,
linux-kernel, stable
On Tue, 25 Feb 2025 17:03:58 +0000, Justin Klaassen wrote:
> The u2phy1_host should always have the same status as usb_host1_ehci
> and usb_host1_ohci, otherwise the EHCI and OHCI drivers may be
> initialized for a disabled usb port.
>
> Per the NanoPi R4S schematic, the phy-supply for u2phy1_host is set to
> the vdd_5v regulator.
>
> [...]
Applied, thanks!
[1/1] arm64: dts: rockchip: fix u2phy1_host status for NanoPi R4S
commit: 38f4aa34a5f737ea8588dac320d884cc2e762c03
Best regards,
--
Heiko Stuebner <heiko@sntech.de>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-02-27 13:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-24 17:09 [PATCH] arm64: dts: rockchip: fix u2phy1_host status for NanoPi R4S Justin Klaassen
2025-02-25 14:25 ` Dragan Simic
2025-02-25 17:03 ` [PATCH v2] " Justin Klaassen
2025-02-27 13:37 ` Heiko Stuebner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®