[PATCH net-next RFC 0/3] riscv: dts: sophgo: Add ethernet support for cv18xx

Alexander Sverdlin alexander.sverdlin at gmail.com
Sat Jun 14 14:19:34 PDT 2025


Hi Inochi!

On Wed, 2025-06-11 at 16:07 +0800, Inochi Amaoto wrote:
> Add device binding and dts for CV18XX series SoC, this dts change series
> require both the mdio patch [1] and the reset patch [2].
> 
> [1] https://lore.kernel.org/all/[email protected]
> [2] https://lore.kernel.org/all/[email protected]
> 
> Inochi Amaoto (3):
>   dt-bindings: net: Add support for Sophgo CV1800 dwmac
>   riscv: dts: sophgo: Add ethernet device for cv18xx
>   riscv: dts: sophgo: Add mdio multiplexer device for cv18xx

Have you noticed any problems on the board you are testing on?
I've added the patchset + pre-requisited + the following into my board DT
for Milk-V Duo Module 01 EVB:

&mdio {
       status = "okay";
};

&gmac0 {
       phy-mode = "internal";
       phy-handle = <&internal_ephy>;
       status = "okay";
};

And the PHY is being detected and the Ethernet controller is being instantiated,
but the PHY behaves really strange: LEDs blinking wildly, link status is bogus
100FULL UP even without cable insterted and the real traffic starts to travel
only roughly a minute after the cable has been plugged in.

I could look into it, if Sophgo has documented the internal PHY, just wanted to
sync with you for the case you've seen this already...

> 
>  .../bindings/net/sophgo,cv1800b-dwmac.yaml    | 113 ++++++++++++++++++
>  arch/riscv/boot/dts/sophgo/cv180x.dtsi        |  70 +++++++++++
>  2 files changed, 183 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/net/sophgo,cv1800b-dwmac.yaml

-- 
Alexander Sverdlin.



More information about the linux-riscv mailing list
OSZAR »