net: use the same alias stem for ethernet as linux
Linux uses the prefix "ethernet" whereas u-boot uses "eth". This is from
the linux tree:
$ grep "eth[0-9].*=.*&" arch/**/*dts{,i}|wc -l
0
$ grep "ethernet[0-9].*=.*&" arch/**/*dts{,i}|wc -l
633
In u-boot device trees both prefixes are used. Until recently the only
user of the ethernet alias was the sandbox test device tree. This
changed with commit fc054d563b ("net: Introduce DSA class for Ethernet
switches"). There, the MAC addresses are inherited based on the devices
sequence IDs which is in turn given by the device tree.
Before there are more users in u-boot and both worlds will differ even
more, rename the alias prefix to "ethernet" to match the linux ones.
Also adapt the test cases and rename any old aliases in the u-boot
device trees.
Cc: David Wu <david.wu@rock-chips.com>
Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
committed by
Ramon Fried
parent
6e424b4aca
commit
82a3c9ef20
@@ -15,12 +15,12 @@
|
||||
compatible = "fsl,ls1028a-rdb", "fsl,ls1028a";
|
||||
aliases {
|
||||
spi0 = &fspi;
|
||||
eth0 = &enetc0;
|
||||
eth1 = &enetc2;
|
||||
eth2 = &mscc_felix_port0;
|
||||
eth3 = &mscc_felix_port1;
|
||||
eth4 = &mscc_felix_port2;
|
||||
eth5 = &mscc_felix_port3;
|
||||
ethernet0 = &enetc0;
|
||||
ethernet1 = &enetc2;
|
||||
ethernet2 = &mscc_felix_port0;
|
||||
ethernet3 = &mscc_felix_port1;
|
||||
ethernet4 = &mscc_felix_port2;
|
||||
ethernet5 = &mscc_felix_port3;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -14,11 +14,11 @@
|
||||
|
||||
aliases {
|
||||
console = &uart0;
|
||||
eth0 = "/eth@10002000";
|
||||
eth2 = &swp_0;
|
||||
eth3 = ð_3;
|
||||
eth4 = &dsa_eth0;
|
||||
eth5 = ð_5;
|
||||
ethernet0 = "/eth@10002000";
|
||||
ethernet2 = &swp_0;
|
||||
ethernet3 = ð_3;
|
||||
ethernet4 = &dsa_eth0;
|
||||
ethernet5 = ð_5;
|
||||
gpio1 = &gpio_a;
|
||||
gpio2 = &gpio_b;
|
||||
gpio3 = &gpio_c;
|
||||
|
||||
Reference in New Issue
Block a user