Skip to contentSkip to conversation

ARM: dts: aspeed: Add EEPROM

PATCH In review Xo Wang 2 participants 2 messages Aug 1, 2016 – Aug 3, 2016

Subsystems (2)
lore
Share & tools
lore

Xo Wang

author
#0 lore raw

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)

Change-Id I1e9df8e3aee5f0257c90e045b35e19b615615447
---
 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
index 79d2005..795dcb7 100644
@@ -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
maintainer
#1 lore raw
Quoted 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 I1e9df8e3aee5f0257c90e045b35e19b615615447

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
index 79d2005..795dcb7 100644
@@ -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