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-wbd111.dts | 13 +++++++++++++
17 arch/arm/boot/dts/gemini-wbd222.dts | 18 ++++++++++++++++++
18 4 files changed, 57 insertions(+)
20 --- a/arch/arm/boot/dts/gemini-nas4220b.dts
21 +++ b/arch/arm/boot/dts/gemini-nas4220b.dts
26 + mdio0: ethernet-phy {
27 + compatible = "virtual,mdio-gpio";
28 + gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */
29 + <&gpio0 21 GPIO_ACTIVE_HIGH>; /* MDIO */
30 + #address-cells = <1>;
33 + phy0: ethernet-phy@1 {
35 + device_type = "ethernet-phy";
42 --- a/arch/arm/boot/dts/gemini-wbd111.dts
43 +++ b/arch/arm/boot/dts/gemini-wbd111.dts
48 + mdio0: ethernet-phy {
49 + compatible = "virtual,mdio-gpio";
50 + gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */
51 + <&gpio0 21 GPIO_ACTIVE_HIGH>; /* MDIO */
52 + #address-cells = <1>;
55 + phy0: ethernet-phy@1 {
57 + device_type = "ethernet-phy";
64 --- a/arch/arm/boot/dts/gemini-wbd222.dts
65 +++ b/arch/arm/boot/dts/gemini-wbd222.dts
70 + mdio0: ethernet-phy {
71 + compatible = "virtual,mdio-gpio";
72 + gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */
73 + <&gpio0 21 GPIO_ACTIVE_HIGH>; /* MDIO */
74 + #address-cells = <1>;
77 + phy0: ethernet-phy@1 {
79 + device_type = "ethernet-phy";
82 + phy1: ethernet-phy@3 {
84 + device_type = "ethernet-phy";