riscv: dts: starfive: visionfive 2: Add configuration of gmac and phy
authorSamin Guo <samin.guo@starfivetech.com>
Fri, 14 Jul 2023 10:45:21 +0000 (18:45 +0800)
committerConor Dooley <conor.dooley@microchip.com>
Tue, 25 Jul 2023 07:41:54 +0000 (08:41 +0100)
commit0104340a67b199ad979f2ddc89279e3eb29fdd70
tree396de43a24dec9e5b3e283828804141510887321
parent1ff166c97972598a9e8a692e46f38c7e98966c34
riscv: dts: starfive: visionfive 2: Add configuration of gmac and phy

v1.3B:
  v1.3B uses motorcomm YT8531(rgmii-id phy) x2, need delay and
  inverse configurations.
  The tx_clk of v1.3B uses an external clock and needs to be
  switched to an external clock source.

v1.2A:
  v1.2A gmac0 uses motorcomm YT8531(rgmii-id) PHY, and needs delay
  configurations.
  v1.2A gmac1 uses motorcomm YT8512(rmii) PHY, and needs to
  switch rx and rx to external clock sources.

Tested-by: Tommaso Merciai <tomm.merciai@gmail.com>
Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
[conor: squashed a fix from Samin to use the actual properties]
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2-v1.2a.dts
arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2-v1.3b.dts
arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi