]> www.infradead.org Git - users/willy/linux.git/commitdiff
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 d6a22e677c7a1cffeccad0b079a617fd047c65f1..943d2d07fac7b2432d8d8aae6f766b27f77c0a44 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 500057b6570efe99f92f61da727d8d0e2cf1763b..fd55528bba562d87a130e63995f2d2e5625a53b4 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 b413fd12c5ba519d6735c531e1bd4ee018b56b9c..f36e1b65497d0680ea43cf10954dc1db92355e66 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 3ba710538662c5d850d8ab5004f7cf982c953f98..669bd8b5f92fbfa3811d457e5095af7b37021219 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";