kernel: refresh patches
[openwrt/openwrt.git] / target / linux / sunxi / patches-3.14 / 306-dt-sun7i-fix-gmac-on-bananapi.patch
1 --- a/arch/arm/boot/dts/sun7i-a20-bananapi.dts
2 +++ b/arch/arm/boot/dts/sun7i-a20-bananapi.dts
3 @@ -86,6 +86,13 @@
4 allwinner,drive = <0>;
5 allwinner,pull = <1>;
6 };
7 +
8 + gmac_power_pin_bananapi: gmac_power_pin@0 {
9 + allwinner,pins = "PH23";
10 + allwinner,function = "gpio_out";
11 + allwinner,drive = <0>;
12 + allwinner,pull = <0>;
13 + };
14 };
15
16 lradc: lradc@01c22800 {
17 @@ -134,9 +141,10 @@
18
19 gmac: ethernet@01c50000 {
20 pinctrl-names = "default";
21 - pinctrl-0 = <&gmac_pins_mii_a>;
22 + pinctrl-0 = <&gmac_pins_rgmii_a>;
23 phy = <&phy1>;
24 - phy-mode = "mii";
25 + phy-mode = "rgmii";
26 + phy-supply = <&reg_gmac_3v3>;
27 status = "okay";
28
29 phy1: ethernet-phy@1 {
30 @@ -169,4 +177,16 @@
31 status = "okay";
32 };
33
34 + reg_gmac_3v3: gmac-3v3 {
35 + compatible = "regulator-fixed";
36 + pinctrl-names = "default";
37 + pinctrl-0 = <&gmac_power_pin_bananapi>;
38 + regulator-name = "gmac-3v3";
39 + regulator-min-microvolt = <3300000>;
40 + regulator-max-microvolt = <3300000>;
41 + startup-delay-us = <50000>;
42 + enable-active-high;
43 + gpio = <&pio 7 23 0>;
44 + status = "okay";
45 + };
46 };