summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/sun7i-a20.dtsi
diff options
context:
space:
mode:
authorEmilio López <emilio@elopez.com.ar>2013-11-16 15:17:29 -0300
committerMaxime Ripard <maxime.ripard@free-electrons.com>2013-11-22 21:19:07 +0100
commite751cce9b7b106b62c6d2c4f098c28c7feb10ef6 (patch)
tree464a3092b832e1270203fcb92238b756e730d492 /arch/arm/boot/dts/sun7i-a20.dtsi
parentb5d905c79a3f26bfe2ba755135b4d41e5b364572 (diff)
downloadblackbird-op-linux-e751cce9b7b106b62c6d2c4f098c28c7feb10ef6.tar.gz
blackbird-op-linux-e751cce9b7b106b62c6d2c4f098c28c7feb10ef6.zip
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>
Diffstat (limited to 'arch/arm/boot/dts/sun7i-a20.dtsi')
-rw-r--r--arch/arm/boot/dts/sun7i-a20.dtsi4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi
index 830fcd5b1dfb..74bf906ef786 100644
--- a/arch/arm/boot/dts/sun7i-a20.dtsi
+++ b/arch/arm/boot/dts/sun7i-a20.dtsi
@@ -16,6 +16,10 @@
/ {
interrupt-parent = <&gic>;
+ aliases {
+ ethernet0 = &emac;
+ };
+
cpus {
#address-cells = <1>;
#size-cells = <0>;
OpenPOWER on IntegriCloud