# \[PATCH\] powerpc/p1010rdb: add EEPROMs to device tree

- Subsystems: LINUX FOR POWERPC (32-BIT AND 64-BIT), THE REST
- Maintainers: Madhavan Srinivasan, Linus Torvalds
- List: linuxppc-dev
- 2 messages, 2 authors
- Page: https://ratatoskr.run/linuxppc-dev/2012/05/9469399/t

## \[PATCH\] powerpc/p1010rdb: add EEPROMs to device tree

- From: Gustavo Zacarias \<hidden\>
- Date: 2012-05-23 14:40:58 
- Message: https://ratatoskr.run/linuxppc-dev/2012/05/9469399.md

```text
Add EEPROM to the P1010RDB device tree.
The 24c01 acts as a memory SPD so it shouldn't be overwritten without
care.
The 24c256 is a general purpose memory.

Signed-off-by: Gustavo Zacarias <redacted>
---
 arch/powerpc/boot/dts/p1010rdb.dtsi |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/boot/dts/p1010rdb.dtsi b/arch/powerpc/boot/dts/p1010rdb.dtsi
index 4977614..ec7c27a 100644
--- a/arch/powerpc/boot/dts/p1010rdb.dtsi
+++ b/arch/powerpc/boot/dts/p1010rdb.dtsi
@@ -126,12 +126,24 @@
 
 &board_soc {
 	i2c@3000 {
+		eeprom@50 {
+			compatible = "st,24c256";
+			reg = <0x50>;
+		};
+
 		rtc@68 {
 			compatible = "pericom,pt7c4338";
 			reg = <0x68>;
 		};
 	};
 
+	i2c@3100 {
+		eeprom@52 {
+			compatible = "atmel,24c01";
+			reg = <0x52>;
+		};
+	};
+
 	spi@7000 {
 		flash@0 {
 			#address-cells = <1>;
-- 
1.7.3.4
```

## Re: \[PATCH\] powerpc/p1010rdb: add EEPROMs to device tree

- From: Kumar Gala \<hidden\>
- Date: 2012-06-29 20:02:37 
- Message: https://ratatoskr.run/linuxppc-dev/2012/06/9469967.md

```text

On May 23, 2012, at 9:35 AM, Gustavo Zacarias wrote:

> Add EEPROM to the P1010RDB device tree.
> The 24c01 acts as a memory SPD so it shouldn't be overwritten without
> care.
> The 24c256 is a general purpose memory.
> 
> Signed-off-by: Gustavo Zacarias <redacted>
> ---
> arch/powerpc/boot/dts/p1010rdb.dtsi |   12 ++++++++++++
> 1 files changed, 12 insertions(+), 0 deletions(-)

applied

- k
```
