Skip to content
Commit b4a5afa5 authored by Samin Guo's avatar Samin Guo Committed by Paolo Abeni
Browse files

net: stmmac: dwmac-starfive: Add phy interface settings



dwmac supports multiple modess. When working under rmii and rgmii,
you need to set different phy interfaces.

According to the dwmac document, when working in rmii, it needs to be
set to 0x4, and rgmii needs to be set to 0x1.

The phy interface needs to be set in syscon, the format is as follows:
starfive,syscon: <&syscon, offset, shift>

Tested-by: default avatarTommaso Merciai <tomm.merciai@gmail.com>
Signed-off-by: default avatarSamin Guo <samin.guo@starfivetech.com>
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 4bd3bb7b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment