summaryrefslogtreecommitdiffstats
path: root/test/dm/test.dts
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2015-03-22 17:09:16 -0500
committerSimon Glass <sjg@chromium.org>2015-04-18 11:11:13 -0600
commite58780dcb7b8656ebc2dd6ba6d0da728bc65bf40 (patch)
tree68b6448131caeaa7d02a88cfbb1116e56f3b679b /test/dm/test.dts
parentbfacad7da11711231ca59717c0a8bc7317c5bb28 (diff)
downloadtalos-obmc-uboot-e58780dcb7b8656ebc2dd6ba6d0da728bc65bf40.tar.gz
talos-obmc-uboot-e58780dcb7b8656ebc2dd6ba6d0da728bc65bf40.zip
dm: eth: Add support for aliases
Allow network devices to be referred to as "eth0" instead of "eth@12345678" when specified in ethact. Add tests to verify this behavior. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/dm/test.dts')
-rw-r--r--test/dm/test.dts4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/dm/test.dts b/test/dm/test.dts
index 762ddc3507..0ab0916858 100644
--- a/test/dm/test.dts
+++ b/test/dm/test.dts
@@ -18,6 +18,8 @@
testfdt3 = "/b-test";
testfdt5 = "/some-bus/c-test@5";
testfdt8 = "/a-test";
+ eth0 = "/eth@10002000";
+ eth5 = &eth_5;
};
uart0: serial {
@@ -172,7 +174,7 @@
fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x00>;
};
- eth@10003000 {
+ eth_5: eth@10003000 {
compatible = "sandbox,eth";
reg = <0x10003000 0x1000>;
fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x11>;
OpenPOWER on IntegriCloud