Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64: dts: allwinner: h6: orangepi-one-plus: Enable ethernet

OrangePi One Plus has gigabit ethernet. Add nodes for it.

Signed-off-by: Marcus Cooper <codekipper@gmail.com>
[patch split and commit message]
Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
Reviewed-by: Christopher Obbard <chris@64studio.com>
Tested-by: Christopher Obbard <chris@64studio.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>

authored by

Marcus Cooper and committed by
Maxime Ripard
7ee32a17 32507b86

+33
+33
arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts
··· 7 7 / { 8 8 model = "OrangePi One Plus"; 9 9 compatible = "xunlong,orangepi-one-plus", "allwinner,sun50i-h6"; 10 + 11 + aliases { 12 + ethernet0 = &emac; 13 + }; 14 + 15 + reg_gmac_3v3: gmac-3v3 { 16 + compatible = "regulator-fixed"; 17 + regulator-name = "vcc-gmac-3v3"; 18 + regulator-min-microvolt = <3300000>; 19 + regulator-max-microvolt = <3300000>; 20 + startup-delay-us = <100000>; 21 + enable-active-high; 22 + gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>; /* PD6 */ 23 + vin-supply = <&reg_aldo2>; 24 + }; 25 + }; 26 + 27 + &emac { 28 + pinctrl-names = "default"; 29 + pinctrl-0 = <&ext_rgmii_pins>; 30 + phy-mode = "rgmii"; 31 + phy-handle = <&ext_rgmii_phy>; 32 + phy-supply = <&reg_gmac_3v3>; 33 + allwinner,rx-delay-ps = <200>; 34 + allwinner,tx-delay-ps = <200>; 35 + status = "okay"; 36 + }; 37 + 38 + &mdio { 39 + ext_rgmii_phy: ethernet-phy@1 { 40 + compatible = "ethernet-phy-ieee802.3-c22"; 41 + reg = <1>; 42 + }; 10 43 };