[PATCH linux] ARM: dts: aspeed: Add EEPROM
Xo Wang
xow at google.com
Tue Aug 2 09:31:10 AEST 2016
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: I1e9df8e3aee5f0257c90e045b35e19b615615447
Signed-off-by: Xo Wang <xow at google.com>
---
arch/arm/boot/dts/aspeed-ast2500-evb.dts | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/arch/arm/boot/dts/aspeed-ast2500-evb.dts b/arch/arm/boot/dts/aspeed-ast2500-evb.dts
index 79d2005..795dcb7 100644
--- a/arch/arm/boot/dts/aspeed-ast2500-evb.dts
+++ b/arch/arm/boot/dts/aspeed-ast2500-evb.dts
@@ -57,6 +57,12 @@
&i2c3 {
status = "okay";
+
+ eeprom at 50 {
+ compatible = "atmel,24c04";
+ reg = <0x50>;
+ pagesize = <16>;
+ };
};
&i2c4 {
@@ -65,11 +71,6 @@
&i2c5 {
status = "okay";
-
-// eeprom at 50 {
-// compatible = "atmel,24c08";
-// reg = <0xa0>;
-// };
};
&i2c6 {
--
2.8.0.rc3.226.g39d4020
More information about the openbmc
mailing list