1
0
Fork 0

ARM: sunxi: dt: add EMAC aliases

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>
hifive-unleashed-5.1
Emilio López 2013-11-16 15:17:29 -03:00 committed by Maxime Ripard
parent b5d905c79a
commit e751cce9b7
3 changed files with 12 additions and 0 deletions

View File

@ -15,6 +15,10 @@
/ {
interrupt-parent = <&intc>;
aliases {
ethernet0 = &emac;
};
cpus {
#address-cells = <1>;
#size-cells = <0>;

View File

@ -16,6 +16,10 @@
/ {
interrupt-parent = <&intc>;
aliases {
ethernet0 = &emac;
};
cpus {
cpu@0 {
compatible = "arm,cortex-a8";

View File

@ -16,6 +16,10 @@
/ {
interrupt-parent = <&gic>;
aliases {
ethernet0 = &emac;
};
cpus {
#address-cells = <1>;
#size-cells = <0>;