diff options
author | Sean Anderson <sean.anderson@seco.com> | 2022-05-05 13:11:42 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-06-08 14:00:22 -0400 |
commit | 472caa69e3480dc8e3fe1dd929b528a599341768 (patch) | |
tree | e82b1ea4c9f312463ec7b9da9932867852778318 /arch/sandbox | |
parent | 97d0f9bfdd025f0e7db8ff09238fe88d039c2a70 (diff) | |
download | u-boot-472caa69e3480dc8e3fe1dd929b528a599341768.zip u-boot-472caa69e3480dc8e3fe1dd929b528a599341768.tar.gz u-boot-472caa69e3480dc8e3fe1dd929b528a599341768.tar.bz2 |
test: Load mac address with i2c eeprom
This uses an i2c eeprom to load a mac address using the nvmem interface.
Enable I2C_EEPROM for sandbox SPL since it is the only sandbox config
which doesn't enable it eeprom.
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 13515dd..4d0fd47 100644 --- a/arch/sandbox/dts/test.dts +++ b/arch/sandbox/dts/test.dts @@ -538,7 +538,8 @@ eth_3: sbe5 { compatible = "sandbox,eth"; reg = <0x10005000 0x1000>; - mac-address = [ 02 00 11 22 33 45 ]; + nvmem-cells = <ð3_addr>; + nvmem-cell-names = "mac-address"; }; eth@10004000 { @@ -701,6 +702,8 @@ pinctrl-0 = <&pinmux_i2c0_pins>; eeprom@2c { + #address-cells = <1>; + #size-cells = <1>; reg = <0x2c>; compatible = "i2c-eeprom"; sandbox,emul = <&emul_eeprom>; @@ -712,6 +715,10 @@ reg = <10 2>; }; }; + + eth3_addr: mac-address@24 { + reg = <24 6>; + }; }; rtc_0: rtc@43 { |