diff options
author | Sean Anderson <sean.anderson@seco.com> | 2022-05-05 13:11:43 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-06-08 14:00:22 -0400 |
commit | d3f72878496cd4cccfe6c55defb4116f406effba (patch) | |
tree | f637fb021430bf432f59edbee2b4dac6a318cb69 /arch/sandbox | |
parent | 472caa69e3480dc8e3fe1dd929b528a599341768 (diff) | |
download | u-boot-d3f72878496cd4cccfe6c55defb4116f406effba.zip u-boot-d3f72878496cd4cccfe6c55defb4116f406effba.tar.gz u-boot-d3f72878496cd4cccfe6c55defb4116f406effba.tar.bz2 |
test: Load mac address using RTC
This uses the nvmem API to load a mac address from an RTC.
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox')
-rw-r--r-- | arch/sandbox/dts/test.dts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts index 4d0fd47..afcdda9 100644 --- a/arch/sandbox/dts/test.dts +++ b/arch/sandbox/dts/test.dts @@ -558,7 +558,8 @@ dsa_eth0: dsa-test-eth { compatible = "sandbox,eth"; reg = <0x10006000 0x1000>; - mac-address = [ 02 00 11 22 33 48 ]; + nvmem-cells = <ð4_addr>; + nvmem-cell-names = "mac-address"; }; dsa-test { @@ -722,9 +723,15 @@ }; rtc_0: rtc@43 { + #address-cells = <1>; + #size-cells = <1>; reg = <0x43>; compatible = "sandbox-rtc"; sandbox,emul = <&emul0>; + + eth4_addr: mac-address@40 { + reg = <0x40 6>; + }; }; rtc_1: rtc@61 { |