ARM: dts: aspeed: Add EEPROM
Subsystems (2)
PATCH 1/1 ARM: dts: aspeed: Add EEPROM
Uncomment existing EEPROM device (U24 on EVB), move to correct bus, set right-aligned 7-bit slave address, and add write buffer size.
Tested: hexdump -C /sys/bus/i2c/devices/3-0050/eeprom
00000000 aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa |................| *
00000200
(CONFIG_EEPROM_AT24=y)
--- arch/arm/boot/dts/aspeed-ast2500-evb.dts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
arch/arm/boot/dts/aspeed-ast2500-evb.dts +6 -5
@@ -57,6 +57,12 @@ &i2c3 { status = "okay"; + + eeprom@50 { + compatible = "atmel,24c04"; + reg = <0x50>; + pagesize = <16>; + }; }; &i2c4 {
@@ -65,11 +71,6 @@ &i2c5 { status = "okay"; - -// eeprom@50 { -// compatible = "atmel,24c08"; -// reg = <0xa0>; -// }; }; &i2c6 {
Signature · 1 line
2.8.0.rc3.226.g39d4020
Joel Stanley
maintainerQuoted 11 lines · Xo Wang
Uncomment existing EEPROM device (U24 on EVB), move to correct bus, set right-aligned 7-bit slave address, and add write buffer size.
Tested: hexdump -C
/sys/bus/i2c/devices/3-0050/eeprom
00000000 aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa |................| *
00000200
(CONFIG_EEPROM_AT24=y)Change-Id I1e9df8e3aee5f0257c90e045b35e19b615615447Signed-off-by Xo Wang <[email protected]>
Thanks Xo for the patch.
I will push out a dev-4.7 tree real soon with this change.
Cheers,
Joel
Quoted 40 lines
--- arch/arm/boot/dts/aspeed-ast2500-evb.dts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)arch/arm/boot/dts/aspeed-ast2500-evb.dts +6
-6@@ -57,6 +57,12 @@ &i2c3 { status = "okay"; + + eeprom@50 { + compatible = "atmel,24c04"; + reg = <0x50>; + pagesize = <16>; + }; }; &i2c4 {@@ -65,11 +71,6 @@ &i2c5 { status = "okay"; - -// eeprom@50 { -// compatible = "atmel,24c08"; -// reg = <0xa0>; -// }; }; &i2c6 { --2.8.0.rc3.226.g39d4020
_______________________________________________
openbmc mailing list
[email protected]
https://lists.ozlabs.org/listinfo/openbmc