net: stmmac: starfive_dmac: Add phy interface settings
authorSamin Guo <samin.guo@starfivetech.com>
Thu, 2 Mar 2023 11:52:37 +0000 (19:52 +0800)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 24 Jul 2023 23:24:40 +0000 (08:24 +0900)
commit9bd09ff94288e94bd2027e0499b55c460604aa40
treeb6890de379daf2574d4b79c245e902556fccef71
parent449fcec8269bcd0f60de91ad1166f2337630e6c0
net: stmmac: starfive_dmac: 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>

Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
Tested-by: Tommaso Merciai <tomm.merciai@gmail.com>
drivers/net/ethernet/stmicro/stmmac/dwmac-starfive.c