ramips: disable sdhc for HC5661A
[oweals/openwrt.git] / target / linux / gemini / patches-4.14 / 0012-ARM-dts-Add-ethernet-PHYs-to-the-a-bunch-of-Geminis.patch
1 From f0674df220f3da81c173025636a904b395cf8f8b Mon Sep 17 00:00:00 2001
2 From: Linus Walleij <linus.walleij@linaro.org>
3 Date: Sun, 19 Nov 2017 10:46:16 +0100
4 Subject: [PATCH 12/31] ARM: dts: Add ethernet PHYs to the a bunch of Geminis
5
6 These Gemini boards have Ethernet PHY on GPIO bit-banged
7 MDIO, clearly defined in the corresponding OpenWRT
8 ethernet patches since ages. Add them in accordance with
9 the OpenWRT patch so we can use them when we add ethernet
10 support.
11
12 Reviewed-by: Andrew Lunn <andrew@lunn.ch>
13 Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
14 ---
15  arch/arm/boot/dts/gemini-nas4220b.dts | 13 +++++++++++++
16  arch/arm/boot/dts/gemini-rut1xx.dts   | 13 +++++++++++++
17  arch/arm/boot/dts/gemini-wbd111.dts   | 13 +++++++++++++
18  arch/arm/boot/dts/gemini-wbd222.dts   | 18 ++++++++++++++++++
19  4 files changed, 57 insertions(+)
20
21 --- a/arch/arm/boot/dts/gemini-nas4220b.dts
22 +++ b/arch/arm/boot/dts/gemini-nas4220b.dts
23 @@ -64,6 +64,19 @@
24                 };
25         };
26  
27 +       mdio0: ethernet-phy {
28 +               compatible = "virtual,mdio-gpio";
29 +               gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */
30 +                       <&gpio0 21 GPIO_ACTIVE_HIGH>; /* MDIO */
31 +               #address-cells = <1>;
32 +               #size-cells = <0>;
33 +
34 +               phy0: ethernet-phy@1 {
35 +                       reg = <1>;
36 +                       device_type = "ethernet-phy";
37 +               };
38 +       };
39 +
40         soc {
41                 flash@30000000 {
42                         status = "okay";
43 --- a/arch/arm/boot/dts/gemini-rut1xx.dts
44 +++ b/arch/arm/boot/dts/gemini-rut1xx.dts
45 @@ -58,6 +58,19 @@
46                 };
47         };
48  
49 +       mdio0: ethernet-phy {
50 +               compatible = "virtual,mdio-gpio";
51 +               gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */
52 +                       <&gpio0 21 GPIO_ACTIVE_HIGH>; /* MDIO */
53 +               #address-cells = <1>;
54 +               #size-cells = <0>;
55 +
56 +               phy0: ethernet-phy@1 {
57 +                       reg = <1>;
58 +                       device_type = "ethernet-phy";
59 +               };
60 +       };
61 +
62         soc {
63                 flash@30000000 {
64                         status = "okay";
65 --- a/arch/arm/boot/dts/gemini-wbd111.dts
66 +++ b/arch/arm/boot/dts/gemini-wbd111.dts
67 @@ -69,6 +69,19 @@
68                 };
69         };
70  
71 +       mdio0: ethernet-phy {
72 +               compatible = "virtual,mdio-gpio";
73 +               gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */
74 +                       <&gpio0 21 GPIO_ACTIVE_HIGH>; /* MDIO */
75 +               #address-cells = <1>;
76 +               #size-cells = <0>;
77 +
78 +               phy0: ethernet-phy@1 {
79 +                       reg = <1>;
80 +                       device_type = "ethernet-phy";
81 +               };
82 +       };
83 +
84         soc {
85                 flash@30000000 {
86                         status = "okay";
87 --- a/arch/arm/boot/dts/gemini-wbd222.dts
88 +++ b/arch/arm/boot/dts/gemini-wbd222.dts
89 @@ -69,6 +69,24 @@
90                 };
91         };
92  
93 +       mdio0: ethernet-phy {
94 +               compatible = "virtual,mdio-gpio";
95 +               gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */
96 +                       <&gpio0 21 GPIO_ACTIVE_HIGH>; /* MDIO */
97 +               #address-cells = <1>;
98 +               #size-cells = <0>;
99 +
100 +               phy0: ethernet-phy@1 {
101 +                       reg = <1>;
102 +                       device_type = "ethernet-phy";
103 +               };
104 +
105 +               phy1: ethernet-phy@3 {
106 +                       reg = <3>;
107 +                       device_type = "ethernet-phy";
108 +               };
109 +       };
110 +
111         soc {
112                 flash@30000000 {
113                         status = "okay";