ARM: sunxi: dt: add EMAC aliases
authorEmilio López <emilio@elopez.com.ar>
Sat, 16 Nov 2013 18:17:29 +0000 (15:17 -0300)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Fri, 22 Nov 2013 20:19:07 +0000 (21:19 +0100)
U-Boot uses the ethernet0 alias to locate the right node to fill in
the MAC address of the first ethernet interface. This patch adds the
alias on all the sunxi SoCs with EMAC. In this way, people using
ethernet in U-Boot (eg, for tftp) can keep a consistent address on both
U-Boot and Linux with no additional effort.

Signed-off-by: Emilio López <emilio@elopez.com.ar>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun4i-a10.dtsi
arch/arm/boot/dts/sun5i-a10s.dtsi
arch/arm/boot/dts/sun7i-a20.dtsi

index f11f292aa19312b835a960de77dcb1ee56cfc3cb..0bf70ee041eda3398df059cf7a6391f60cdae4e7 100644 (file)
 / {
        interrupt-parent = <&intc>;
 
+       aliases {
+               ethernet0 = &emac;
+       };
+
        cpus {
                #address-cells = <1>;
                #size-cells = <0>;
index 52476742a1043e5e9703505d03b2eae5d2a5bc1a..b4764be10a605cf7a4aaee5fc18b0a1c5d76b1d5 100644 (file)
 / {
        interrupt-parent = <&intc>;
 
+       aliases {
+               ethernet0 = &emac;
+       };
+
        cpus {
                cpu@0 {
                        compatible = "arm,cortex-a8";
index 830fcd5b1dfbd5b189d08002e1a5beb3526e6f8a..74bf906ef786f8e92fdcc70edd76156f24b8177f 100644 (file)
 / {
        interrupt-parent = <&gic>;
 
+       aliases {
+               ethernet0 = &emac;
+       };
+
        cpus {
                #address-cells = <1>;
                #size-cells = <0>;