ARM: dts: Add ethernet PHYs to the a bunch of Geminis
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 19 Nov 2017 09:46:16 +0000 (10:46 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 16 Dec 2017 19:32:16 +0000 (20:32 +0100)
These Gemini boards have Ethernet PHY on GPIO bit-banged
MDIO, clearly defined in the corresponding OpenWRT
ethernet patches since ages. Add them in accordance with
the OpenWRT patch so we can use them when we add ethernet
support.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/boot/dts/gemini-nas4220b.dts
arch/arm/boot/dts/gemini-rut1xx.dts
arch/arm/boot/dts/gemini-wbd111.dts
arch/arm/boot/dts/gemini-wbd222.dts

index d6a22e6..943d2d0 100644 (file)
                };
        };
 
+       mdio0: ethernet-phy {
+               compatible = "virtual,mdio-gpio";
+               gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */
+                       <&gpio0 21 GPIO_ACTIVE_HIGH>; /* MDIO */
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               phy0: ethernet-phy@1 {
+                       reg = <1>;
+                       device_type = "ethernet-phy";
+               };
+       };
+
        soc {
                flash@30000000 {
                        status = "okay";
index 500057b..fd55528 100644 (file)
                };
        };
 
+       mdio0: ethernet-phy {
+               compatible = "virtual,mdio-gpio";
+               gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */
+                       <&gpio0 21 GPIO_ACTIVE_HIGH>; /* MDIO */
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               phy0: ethernet-phy@1 {
+                       reg = <1>;
+                       device_type = "ethernet-phy";
+               };
+       };
+
        soc {
                flash@30000000 {
                        status = "okay";
index b413fd1..f36e1b6 100644 (file)
                };
        };
 
+       mdio0: ethernet-phy {
+               compatible = "virtual,mdio-gpio";
+               gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */
+                       <&gpio0 21 GPIO_ACTIVE_HIGH>; /* MDIO */
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               phy0: ethernet-phy@1 {
+                       reg = <1>;
+                       device_type = "ethernet-phy";
+               };
+       };
+
        soc {
                flash@30000000 {
                        status = "okay";
index 3ba7105..669bd8b 100644 (file)
                };
        };
 
+       mdio0: ethernet-phy {
+               compatible = "virtual,mdio-gpio";
+               gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */
+                       <&gpio0 21 GPIO_ACTIVE_HIGH>; /* MDIO */
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               phy0: ethernet-phy@1 {
+                       reg = <1>;
+                       device_type = "ethernet-phy";
+               };
+
+               phy1: ethernet-phy@3 {
+                       reg = <3>;
+                       device_type = "ethernet-phy";
+               };
+       };
+
        soc {
                flash@30000000 {
                        status = "okay";