riscv: dts: microchip: Add ethernet0 to the aliases node
authorBin Meng <bin.meng@windriver.com>
Wed, 4 Aug 2021 12:30:15 +0000 (20:30 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Wed, 25 Aug 2021 03:57:32 +0000 (20:57 -0700)
U-Boot expects this alias to be in place in order to fix up the mac
address of the ethernet node.

Note on the Icicle Kit board, currently only emac1 is enabled so it
becomes the 'ethernet0'.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts

index ec79944..baea7d2 100644 (file)
        model = "Microchip PolarFire-SoC Icicle Kit";
        compatible = "microchip,mpfs-icicle-kit";
 
+       aliases {
+               ethernet0 = &emac1;
+       };
+
        chosen {
                stdout-path = &serial0;
        };