Skip to contentSkip to conversation

ARM: OMAP: X15: Add support for eeprom

PATCH In review Nishanth Menon 2 participants 5 messages Feb 22, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover ARM: OMAP: X15: Add support for eeprom

X15 and BB family of boards use AT24 compatible eeproms

Enable support for the same.

Nishanth Menon (2):
ARM: dts: am57xx-beagle-x15: Add eeprom information
ARM: omap2plus_defconfig: Enable AT24 eeprom

 arch/arm/boot/dts/am57xx-beagle-x15.dts | 5 +++++
 arch/arm/configs/omap2plus_defconfig    | 1 +
 2 files changed, 6 insertions(+)
Signature · 1 line
2.7.0
#1 lore raw

PATCH 1/2 ARM: dts: am57xx-beagle-x15: Add eeprom information

Add EEPROM at 0x50 that describes the board configuration. This is useful for userspace programs that may need to check board revision and other similar information.

---
 arch/arm/boot/dts/am57xx-beagle-x15.dts | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm/boot/dts/am57xx-beagle-x15.dts +5 -0
index 36c0fa6c362a..50312f80b972 100644
@@ -591,6 +591,11 @@
 		DRVDD-supply = <&vdd_3v3>;
 		DVDD-supply = <&aic_dvdd>;
 	};
+
+	eeprom: eeprom at 50 {
+		compatible = "at,24c32";
+		reg = <0x50>;
+	};
 };
 
 &i2c3 {
Signature · 1 line
2.7.0
maintainer
#2 lore raw

Re: [PATCH 1/2] ARM: dts: am57xx-beagle-x15: Add eeprom information

Quoted 14 lines · Nishanth Menon

Add EEPROM at 0x50 that describes the board configuration. This is useful for userspace programs that may need to check board revision and other similar information.

---
 arch/arm/boot/dts/am57xx-beagle-x15.dts | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm/boot/dts/am57xx-beagle-x15.dts +0 -0
index 36c0fa6c362a..50312f80b972 100644

arch/arm/boot/dts/am57xx-beagle-x15.dts line 600

Quoted 10 lines
arch/arm/boot/dts/am57xx-beagle-x15.dts +5 -0
@@ -591,6 +591,11 @@
 		DRVDD-supply = <&vdd_3v3>;
 		DVDD-supply = <&aic_dvdd>;
 	};
+
+	eeprom: eeprom at 50 {
+		compatible = "at,24c32";
+		reg = <0x50>;
+	};
 };
 

Applying into omap-for-v4.6/dt thanks.

Tony

#3 lore raw

PATCH 2/2 ARM: omap2plus_defconfig: Enable AT24 eeprom

In reply to Nishanth Menon

AT24 compatible eeproms are used in BB family and X15 boards.

---
 arch/arm/configs/omap2plus_defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/configs/omap2plus_defconfig +1 -0
index d18d6b42fcf5..fa82f4e25d0e 100644
@@ -145,6 +145,7 @@ CONFIG_BLK_DEV_RAM_SIZE=16384
 CONFIG_SENSORS_TSL2550=m
 CONFIG_BMP085_I2C=m
 CONFIG_SRAM=y
+CONFIG_EEPROM_AT24=m
 CONFIG_SENSORS_LIS3_I2C=m
 CONFIG_BLK_DEV_SD=y
 CONFIG_SCSI_SCAN_ASYNC=y
Signature · 1 line
2.7.0
maintainer
#4 lore raw

Re: [PATCH 2/2] ARM: omap2plus_defconfig: Enable AT24 eeprom

Quoted 12 lines · Nishanth Menon

AT24 compatible eeproms are used in BB family and X15 boards.

---
 arch/arm/configs/omap2plus_defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/configs/omap2plus_defconfig +0 -0
index d18d6b42fcf5..fa82f4e25d0e 100644

arch/arm/configs/omap2plus_defconfig CONFIG_BLK_DEV_RAM_SIZE=16384 · line 151

Quoted 7 lines
arch/arm/configs/omap2plus_defconfig +1 -0
@@ -145,6 +145,7 @@ CONFIG_BLK_DEV_RAM_SIZE=16384
 CONFIG_SENSORS_TSL2550=m
 CONFIG_BMP085_I2C=m
 CONFIG_SRAM=y
+CONFIG_EEPROM_AT24=m
 CONFIG_SENSORS_LIS3_I2C=m
 CONFIG_BLK_DEV_SD=y
 CONFIG_SCSI_SCAN_ASYNC=y

Applying into omap-for-v4.6/defconfig.

Thanks,

Tony