ARM: shmobile: silk: add Ether DT support
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Tue, 28 Jul 2015 22:16:02 +0000 (01:16 +0300)
committerSimon Horman <horms+renesas@verge.net.au>
Thu, 30 Jul 2015 00:05:43 +0000 (09:05 +0900)
Define the SILK board dependent part of the Ether device node.
Enable DHCP and NFS root for the kernel booting.

Based on the original patch 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/arm/boot/dts/r8a7794-silk.dts

index f3da95b1deddfa2a02a27bf91a68378557857d8c..79bc64b9445646dcd88734bb71dc6f9279c71c88 100644 (file)
@@ -22,7 +22,7 @@
        };
 
        chosen {
-               bootargs = "ignore_loglevel";
+               bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
                stdout-path = &scif2;
        };
 
                renesas,groups = "scif2_data";
                renesas,function = "scif2";
        };
+
+       ether_pins: ether {
+               renesas,groups = "eth_link", "eth_mdio", "eth_rmii";
+               renesas,function = "eth";
+       };
+
+       phy1_pins: phy1 {
+               renesas,groups = "intc_irq8";
+               renesas,function = "intc";
+       };
 };
 
 &scif2 {
 
        status = "okay";
 };
+
+&ether {
+       pinctrl-0 = <&ether_pins &phy1_pins>;
+       pinctrl-names = "default";
+
+       phy-handle = <&phy1>;
+       renesas,ether-link-active-low;
+       status = "okay";
+
+       phy1: ethernet-phy@1 {
+               reg = <1>;
+               interrupt-parent = <&irqc0>;
+               interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
+               micrel,led-mode = <1>;
+       };
+};