arm64: dts: renesas: v3hsk: add GEther support
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Fri, 18 May 2018 19:46:19 +0000 (22:46 +0300)
committerSimon Horman <horms+renesas@verge.net.au>
Mon, 25 Jun 2018 13:30:16 +0000 (15:30 +0200)
Define the V3H Starter Kit board dependent part of the GEther device node.

Based on the original (and large) patch by Vladimir Barinov.

Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm64/boot/dts/renesas/r8a77980-v3hsk.dts

index c968099..bb7e0e5 100644 (file)
@@ -15,6 +15,7 @@
 
        aliases {
                serial0 = &scif0;
+               ethernet0 = &gether;
        };
 
        chosen {
        clock-frequency = <32768>;
 };
 
+&gether {
+       pinctrl-0 = <&gether_pins>;
+       pinctrl-names = "default";
+
+       phy-mode = "rgmii";
+       phy-handle = <&phy0>;
+       renesas,no-ether-link;
+       status = "okay";
+
+       phy0: ethernet-phy@0 {
+               reg = <0>;
+       };
+};
+
 &pfc {
+       gether_pins: gether {
+               groups = "gether_mdio_a", "gether_rgmii",
+                        "gether_txcrefclk", "gether_txcrefclk_mega";
+               function = "gether";
+       };
+
        scif0_pins: scif0 {
                groups = "scif0_data";
                function = "scif0";