From fa75e7f41326fa95d661e009299d9d7572cca95f Mon Sep 17 00:00:00 2001 From: Martin Ayotte Date: Fri, 29 Mar 2019 18:36:34 -0400 Subject: [PATCH] add OPiOne+ emac in u-boot --- .../u-boot-sun50iw6/add-emac-opioneplus.patch | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 patch/u-boot/u-boot-sun50iw6/add-emac-opioneplus.patch diff --git a/patch/u-boot/u-boot-sun50iw6/add-emac-opioneplus.patch b/patch/u-boot/u-boot-sun50iw6/add-emac-opioneplus.patch new file mode 100644 index 0000000000..4a497153f4 --- /dev/null +++ b/patch/u-boot/u-boot-sun50iw6/add-emac-opioneplus.patch @@ -0,0 +1,32 @@ +diff --git a/arch/arm/dts/sun50i-h6-orangepi-one-plus.dts b/arch/arm/dts/sun50i-h6-orangepi-one-plus.dts +index 12e1756..05b4875 100644 +--- a/arch/arm/dts/sun50i-h6-orangepi-one-plus.dts ++++ b/arch/arm/dts/sun50i-h6-orangepi-one-plus.dts +@@ -9,4 +9,27 @@ + / { + model = "OrangePi One Plus"; + compatible = "xunlong,orangepi-one-plus", "allwinner,sun50i-h6"; ++ ++ aliases { ++ serial0 = &uart0; ++ ethernet0 = &emac; ++ }; ++}; ++ ++&emac { ++ pinctrl-names = "default"; ++ pinctrl-0 = <&ext_rgmii_pins>; ++ phy-mode = "rgmii"; ++ phy-handle = <&ext_rgmii_phy>; ++ phy-supply = <®_aldo2>; ++ allwinner,rx-delay-ps = <200>; ++ allwinner,tx-delay-ps = <200>; ++ status = "okay"; ++}; ++ ++&mdio { ++ ext_rgmii_phy: ethernet-phy@1 { ++ compatible = "ethernet-phy-ieee802.3-c22"; ++ reg = <1>; ++ }; + };