arm64: dts: meson-g12a-x96-max: Add Gigabit Ethernet Support
Subsystems (2)
PATCH v2 1/1 arm64: dts: meson-g12a-x96-max: Add Gigabit Ethernet Support
Enable the network interface of the X96 Mac using an external Realtek RTL8211F gigabit PHY, needing the same broken-eee properties as the previous Amlogic SoC generations.
Signed-off-by Neil Armstrong <[email protected]>
---
Changes since v1:
- Fixed eth_rmii_pins into eth_pins
.../boot/dts/amlogic/meson-g12a-x96-max.dts | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+)
arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts +22 -0
@@ -15,6 +15,7 @@ aliases { serial0 = &uart_AO; + ethernet0 = ðmac; }; chosen { stdout-path = "serial0:115200n8";
@@ -150,6 +151,27 @@ pinctrl-names = "default"; }; +&ext_mdio { + external_phy: ethernet-phy@0 { + /* Realtek RTL8211F (0x001cc916) */ + reg = <0>; + max-speed = <1000>; + eee-broken-1000t; + }; +}; + +ðmac { + pinctrl-0 = <ð_pins>, <ð_rgmii_pins>; + pinctrl-names = "default"; + status = "okay"; + phy-mode = "rgmii"; + phy-handle = <&external_phy>; + amlogic,tx-delay-ns = <2>; + snps,reset-gpio = <&gpio GPIOZ_14 0>; + snps,reset-delays-us = <0 10000 1000000>; + snps,reset-active-low; +}; + &uart_A { status = "okay"; pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
Signature · 1 line
2.21.0
Quoted 6 lines · Neil Armstrong
Enable the network interface of the X96 Mac using an external Realtek RTL8211F gigabit PHY, needing the same broken-eee properties as the previous Amlogic SoC generations.
Signed-off-by Neil Armstrong <[email protected]>
Reviewed-by Martin Blumenstingl <[email protected]>
Kevin Hilman
maintainerQuoted 8 lines · Martin Blumenstingl
Quoted 6 lines · Neil Armstrong
Enable the network interface of the X96 Mac using an external Realtek RTL8211F gigabit PHY, needing the same broken-eee properties as the previous Amlogic SoC generations.
Signed-off-by Neil Armstrong <[email protected]>Reviewed-by Martin Blumenstingl <[email protected]>
Queued for v5.3,
Kevin