mediatek: Add support for Xiaomi Redmi Router AX6S
[openwrt/staging/chunkeey.git] / target / linux / sunxi / patches-5.4 / 443-board-h6-orangepioneplus-fix-missing-ethernet.patch
1 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts
2 +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts
3 @@ -9,6 +9,41 @@
4 / {
5 model = "OrangePi One Plus";
6 compatible = "xunlong,orangepi-one-plus", "allwinner,sun50i-h6";
7 +
8 + aliases {
9 + serial0 = &uart0;
10 + ethernet0 = &emac;
11 + };
12 +
13 + reg_gmac_3v3: gmac-3v3 {
14 + compatible = "regulator-fixed";
15 + regulator-name = "vcc-gmac-3v3";
16 + regulator-min-microvolt = <3300000>;
17 + regulator-max-microvolt = <3300000>;
18 + startup-delay-us = <100000>;
19 + enable-active-high;
20 + gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>; /* PD6 */
21 + vin-supply = <&reg_aldo2>;
22 + };
23 +};
24 +
25 +
26 +&emac {
27 + pinctrl-names = "default";
28 + pinctrl-0 = <&ext_rgmii_pins>;
29 + phy-mode = "rgmii";
30 + phy-handle = <&ext_rgmii_phy>;
31 + phy-supply = <&reg_gmac_3v3>;
32 + allwinner,rx-delay-ps = <200>;
33 + allwinner,tx-delay-ps = <200>;
34 + status = "okay";
35 +};
36 +
37 +&mdio {
38 + ext_rgmii_phy: ethernet-phy@1 {
39 + compatible = "ethernet-phy-ieee802.3-c22";
40 + reg = <1>;
41 + };
42 };
43
44 &pwm {