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
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
12 Reviewed-by: Andrew Lunn <andrew@lunn.ch>
13 Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
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(+)
21 --- a/arch/arm/boot/dts/gemini-nas4220b.dts
22 +++ b/arch/arm/boot/dts/gemini-nas4220b.dts
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>;
34 + phy0: ethernet-phy@1 {
36 + device_type = "ethernet-phy";
43 --- a/arch/arm/boot/dts/gemini-rut1xx.dts
44 +++ b/arch/arm/boot/dts/gemini-rut1xx.dts
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>;
56 + phy0: ethernet-phy@1 {
58 + device_type = "ethernet-phy";
65 --- a/arch/arm/boot/dts/gemini-wbd111.dts
66 +++ b/arch/arm/boot/dts/gemini-wbd111.dts
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>;
78 + phy0: ethernet-phy@1 {
80 + device_type = "ethernet-phy";
87 --- a/arch/arm/boot/dts/gemini-wbd222.dts
88 +++ b/arch/arm/boot/dts/gemini-wbd222.dts
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>;
100 + phy0: ethernet-phy@1 {
102 + device_type = "ethernet-phy";
105 + phy1: ethernet-phy@3 {
107 + device_type = "ethernet-phy";