5f7974c609ee67b4bbb16d4a8625ba4f4b1c6839
[openwrt/openwrt.git] / target / linux / sunxi / patches-5.4 / 443-board-h6-orangepioneplus-fix-missing-ethernet.patch
1 diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts
2 index 12e1756..79139f3 100644
3 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts
4 +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts
5 @@ -9,4 +9,39 @@
6 / {
7 model = "OrangePi One Plus";
8 compatible = "xunlong,orangepi-one-plus", "allwinner,sun50i-h6";
9 +
10 + aliases {
11 + serial0 = &uart0;
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 +
28 +&emac {
29 + pinctrl-names = "default";
30 + pinctrl-0 = <&ext_rgmii_pins>;
31 + phy-mode = "rgmii";
32 + phy-handle = <&ext_rgmii_phy>;
33 + phy-supply = <&reg_gmac_3v3>;
34 + allwinner,rx-delay-ps = <200>;
35 + allwinner,tx-delay-ps = <200>;
36 + status = "okay";
37 +};
38 +
39 +&mdio {
40 + ext_rgmii_phy: ethernet-phy@1 {
41 + compatible = "ethernet-phy-ieee802.3-c22";
42 + reg = <1>;
43 + };
44 };