ARM: shmobile: henninger: add Ether DT support
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Thu, 24 Apr 2014 22:44:12 +0000 (02:44 +0400)
committerSimon Horman <horms+renesas@verge.net.au>
Fri, 25 Apr 2014 01:26:25 +0000 (10:26 +0900)
Define the Henninger board dependent part of the Ether device node.
Enable DHCP and NFS root for the kernel booting.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/boot/dts/r8a7791-henninger.dts

index 0053f52bc9699357d8f5f106546ddf480bca742f..f82f306c074d09b1ca74d8b55d75e58e2273467f 100644 (file)
@@ -21,7 +21,7 @@
        };
 
        chosen {
-               bootargs = "console=ttySC0,38400 ignore_loglevel";
+               bootargs = "console=ttySC0,38400 ignore_loglevel rw root=/dev/nfs ip=dhcp";
        };
 
        memory@40000000 {
                renesas,groups = "scif0_data_d";
                renesas,function = "scif0";
        };
+
+       ether_pins: ether {
+               renesas,groups = "eth_link", "eth_mdio", "eth_rmii";
+               renesas,function = "eth";
+       };
+
+       phy1_pins: phy1 {
+               renesas,groups = "intc_irq0";
+               renesas,function = "intc";
+       };
 };
 
 &scif0 {
 
        status = "okay";
 };
+
+&ether {
+       pinctrl-0 = <&ether_pins &phy1_pins>;
+       pinctrl-names = "default";
+
+       phy-handle = <&phy1>;
+       renesas,ether-link-active-low;
+       status = "ok";
+
+       phy1: ethernet-phy@1 {
+               reg = <1>;
+               interrupt-parent = <&irqc0>;
+               interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
+               micrel,led-mode = <1>;
+       };
+};