Skip to content

Commit

Permalink
arm64: dts: marvell: add Ethernet aliases
Browse files Browse the repository at this point in the history
This patch adds Ethernet aliases in the Marvell Armada 7040 DB, 8040 DB
and 8040 mcbin device trees so that the bootloader setup the MAC
addresses correctly.

Signed-off-by: Yan Markman <ymarkman@marvell.com>
[Antoine: commit message, small fixes]
Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
  • Loading branch information
Yan Markman authored and Gregory CLEMENT committed Jan 5, 2018
1 parent 91f1be9 commit 474c588
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/arm64/boot/dts/marvell/armada-7040-db.dts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@
reg = <0x0 0x0 0x0 0x80000000>;
};

aliases {
ethernet0 = &cp0_eth0;
ethernet1 = &cp0_eth1;
ethernet2 = &cp0_eth2;
};

cp0_reg_usb3_0_vbus: cp0-usb3-0-vbus {
compatible = "regulator-fixed";
regulator-name = "usb3h0-vbus";
Expand Down
7 changes: 7 additions & 0 deletions arch/arm64/boot/dts/marvell/armada-8040-db.dts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@
reg = <0x0 0x0 0x0 0x80000000>;
};

aliases {
ethernet0 = &cp0_eth0;
ethernet1 = &cp0_eth2;
ethernet2 = &cp1_eth0;
ethernet3 = &cp1_eth1;
};

cp0_reg_usb3_0_vbus: cp0-usb3-0-vbus {
compatible = "regulator-fixed";
regulator-name = "cp0-usb3h0-vbus";
Expand Down
6 changes: 6 additions & 0 deletions arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@
reg = <0x0 0x0 0x0 0x80000000>;
};

aliases {
ethernet0 = &cp0_eth0;
ethernet1 = &cp1_eth0;
ethernet2 = &cp1_eth1;
};

/* Regulator labels correspond with schematics */
v_3_3: regulator-3-3v {
compatible = "regulator-fixed";
Expand Down

0 comments on commit 474c588

Please sign in to comment.