ARM: dts: cygnus: add ethernet0 alias
authorClément Péron <peron.clem@gmail.com>
Thu, 3 May 2018 09:56:18 +0000 (11:56 +0200)
committerFlorian Fainelli <f.fainelli@gmail.com>
Mon, 9 Jul 2018 15:12:01 +0000 (08:12 -0700)
In order to avoid Linux generating a random mac address on every boot,
add an ethernet0 alias that will allow u-boot to patch the dtb with
the MAC address.

Signed-off-by: Clément Péron <peron.clem@gmail.com>
Acked-by: Scott Branden <scott.branden@broadcom.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
arch/arm/boot/dts/bcm-cygnus.dtsi

index 9fe4f5a6379e3b60d79a6ed8a0327f680434861e..1a05b8f48b5486d0e01863a7c84ed8d11c139799 100644 (file)
        model = "Broadcom Cygnus SoC";
        interrupt-parent = <&gic>;
 
+       aliases {
+               ethernet0 = &eth0;
+       };
+
        cpus {
                #address-cells = <1>;
                #size-cells = <0>;