* [PATCH v2 0/2] riscv: dts: spacemit: Fix phy id check for the phy
@ 2026-07-25 23:33 Inochi Amaoto
2026-07-25 23:33 ` [PATCH v2 1/2] riscv: dts: spacemit: Fix phy id check for the phy on pico-itx board Inochi Amaoto
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Inochi Amaoto @ 2026-07-25 23:33 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Yixun Lan,
Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti,
Inochi Amaoto
Cc: devicetree, linux-riscv, spacemit, linux-kernel, Yixun Lan,
Longbin Li
As reported, the phy framework can not detected the phy id correctly
when re-initialize this. So add the phy id compatible string to the
etherenet phy, so the phy can be reinit successfully.
Note: separate this patchset as two patch for backport if necessary.
Changed from v1:
- https://lore.kernel.org/spacemit/20260725005804.373698-1-inochiama@gmail.com
1. Remove all the c22 fallback compatible.
Inochi Amaoto (2):
riscv: dts: spacemit: Fix phy id check for the phy on pico-itx board
riscv: dts: spacemit: Fix phy id check for the phy on com260 board
arch/riscv/boot/dts/spacemit/k3-com260.dtsi | 2 +-
arch/riscv/boot/dts/spacemit/k3-pico-itx.dts | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
--
2.55.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2 1/2] riscv: dts: spacemit: Fix phy id check for the phy on pico-itx board
2026-07-25 23:33 [PATCH v2 0/2] riscv: dts: spacemit: Fix phy id check for the phy Inochi Amaoto
@ 2026-07-25 23:33 ` Inochi Amaoto
2026-07-25 23:33 ` [PATCH v2 2/2] riscv: dts: spacemit: Fix phy id check for the phy on com260 board Inochi Amaoto
2026-07-26 8:00 ` [PATCH v2 0/2] riscv: dts: spacemit: Fix phy id check for the phy Yixun Lan
2 siblings, 0 replies; 4+ messages in thread
From: Inochi Amaoto @ 2026-07-25 23:33 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Yixun Lan,
Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti,
Inochi Amaoto
Cc: devicetree, linux-riscv, spacemit, linux-kernel, Yixun Lan,
Longbin Li, E Shattow
Current phy framework can not re-initialize the phy correctly, as it will
assert the phy reset GPIO so the phy id can not be read. Setting the
phy id of board pico-itx manually so the phy id detection can be skipped.
Fixes: 74657a376960 ("riscv: dts: spacemit: Add ethernet device for K3")
Reported-by: E Shattow <e@freeshell.de>
Reported-by: Inochi Amaoto <inochiama@gmail.com>
Closes: https://lore.kernel.org/netdev/20260712045233.800748-1-inochiama@gmail.com
Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
Tested-by: E Shattow <e@freeshell.de>
---
arch/riscv/boot/dts/spacemit/k3-pico-itx.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/riscv/boot/dts/spacemit/k3-pico-itx.dts b/arch/riscv/boot/dts/spacemit/k3-pico-itx.dts
index b2a7d2d0d3a8..d78416f3118e 100644
--- a/arch/riscv/boot/dts/spacemit/k3-pico-itx.dts
+++ b/arch/riscv/boot/dts/spacemit/k3-pico-itx.dts
@@ -196,7 +196,7 @@ ð0 {
mdio {
phy0: phy@1 {
- compatible = "ethernet-phy-ieee802.3-c22";
+ compatible = "ethernet-phy-id001c.c916";
reg = <1>;
reset-gpios = <&gpio 0 15 GPIO_ACTIVE_LOW>;
reset-assert-us = <10000>;
--
2.55.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v2 2/2] riscv: dts: spacemit: Fix phy id check for the phy on com260 board
2026-07-25 23:33 [PATCH v2 0/2] riscv: dts: spacemit: Fix phy id check for the phy Inochi Amaoto
2026-07-25 23:33 ` [PATCH v2 1/2] riscv: dts: spacemit: Fix phy id check for the phy on pico-itx board Inochi Amaoto
@ 2026-07-25 23:33 ` Inochi Amaoto
2026-07-26 8:00 ` [PATCH v2 0/2] riscv: dts: spacemit: Fix phy id check for the phy Yixun Lan
2 siblings, 0 replies; 4+ messages in thread
From: Inochi Amaoto @ 2026-07-25 23:33 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Yixun Lan,
Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti,
Inochi Amaoto
Cc: devicetree, linux-riscv, spacemit, linux-kernel, Yixun Lan,
Longbin Li
Current phy framework can not re-initialize the phy correctly, as it will
assert the phy reset GPIO so the phy id can not be read. Setting the
phy id of board com260 manually so the phy id dectection can be skipped.
Fixes: cfe5c91cb73c ("riscv: dts: spacemit: k3: Initial support for CoM260-IFX board")
Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
---
arch/riscv/boot/dts/spacemit/k3-com260.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/riscv/boot/dts/spacemit/k3-com260.dtsi b/arch/riscv/boot/dts/spacemit/k3-com260.dtsi
index b704b537385c..2a07cd8f2a56 100644
--- a/arch/riscv/boot/dts/spacemit/k3-com260.dtsi
+++ b/arch/riscv/boot/dts/spacemit/k3-com260.dtsi
@@ -174,7 +174,7 @@ ð1 {
mdio {
phy1: phy@1 {
- compatible = "ethernet-phy-ieee802.3-c22";
+ compatible = "ethernet-phy-id001c.c916";
reg = <1>;
reset-gpios = <&gpio 1 5 GPIO_ACTIVE_LOW>;
reset-assert-us = <10000>;
--
2.55.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2 0/2] riscv: dts: spacemit: Fix phy id check for the phy
2026-07-25 23:33 [PATCH v2 0/2] riscv: dts: spacemit: Fix phy id check for the phy Inochi Amaoto
2026-07-25 23:33 ` [PATCH v2 1/2] riscv: dts: spacemit: Fix phy id check for the phy on pico-itx board Inochi Amaoto
2026-07-25 23:33 ` [PATCH v2 2/2] riscv: dts: spacemit: Fix phy id check for the phy on com260 board Inochi Amaoto
@ 2026-07-26 8:00 ` Yixun Lan
2 siblings, 0 replies; 4+ messages in thread
From: Yixun Lan @ 2026-07-26 8:00 UTC (permalink / raw)
To: Inochi Amaoto
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Paul Walmsley,
Palmer Dabbelt, Albert Ou, Alexandre Ghiti, devicetree,
linux-riscv, spacemit, linux-kernel, Yixun Lan, Longbin Li
Hi Inochi,
On 07:33 Sun 26 Jul , Inochi Amaoto wrote:
> As reported, the phy framework can not detected the phy id correctly
> when re-initialize this. So add the phy id compatible string to the
> etherenet phy, so the phy can be reinit successfully.
>
> Note: separate this patchset as two patch for backport if necessary.
>
> Changed from v1:
> - https://lore.kernel.org/spacemit/20260725005804.373698-1-inochiama@gmail.com
> 1. Remove all the c22 fallback compatible.
Reviewed-by: Yixun Lan <dlan@kernel.org>
>
> Inochi Amaoto (2):
> riscv: dts: spacemit: Fix phy id check for the phy on pico-itx board
> riscv: dts: spacemit: Fix phy id check for the phy on com260 board
>
> arch/riscv/boot/dts/spacemit/k3-com260.dtsi | 2 +-
> arch/riscv/boot/dts/spacemit/k3-pico-itx.dts | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> --
> 2.55.0
>
--
Yixun Lan (dlan)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-07-26 8:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-25 23:33 [PATCH v2 0/2] riscv: dts: spacemit: Fix phy id check for the phy Inochi Amaoto
2026-07-25 23:33 ` [PATCH v2 1/2] riscv: dts: spacemit: Fix phy id check for the phy on pico-itx board Inochi Amaoto
2026-07-25 23:33 ` [PATCH v2 2/2] riscv: dts: spacemit: Fix phy id check for the phy on com260 board Inochi Amaoto
2026-07-26 8:00 ` [PATCH v2 0/2] riscv: dts: spacemit: Fix phy id check for the phy Yixun Lan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox