arm64: dts: ls1028a-rdb: Add EEPROM nodes to I2C bus
authorMike Looijmans <mike.looijmans@topic.nl>
Tue, 4 Jun 2024 06:27:22 +0000 (08:27 +0200)
committerShawn Guo <shawnguo@kernel.org>
Sun, 16 Jun 2024 12:22:21 +0000 (20:22 +0800)
The LS1028ARDB board contains three EEPROM devices, for
storing boot code, DDR SPD and board information. Add the
missing entries to the devicetree.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts

index ecd2c1ea177f8febe5832a6624b1bf10a669b8a0..757a34ba7da322627ff7b50e4d7d84efabbc5d15 100644 (file)
                #address-cells = <1>;
                #size-cells = <0>;
 
+               i2c@0 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <0x0>;
+
+                       /* Atmel AT24C512C-XHD­B: 64 KB EEPROM */
+                       eeprom@50 {
+                               compatible = "atmel,24c512";
+                               reg = <0x50>;
+                               #address-cells = <1>;
+                               #size-cells = <1>;
+                       };
+
+                       /* AT24C04C 512-byte DDR4 SPD EEPROM */
+                       /* Documentation says 0x51, but must be even and i2cdetect says 0x52 */
+                       eeprom@52 {
+                               compatible = "atmel,24c04";
+                               reg = <0x52>;
+                               #address-cells = <1>;
+                               #size-cells = <1>;
+                       };
+
+                       /* Atmel AT24C02C-XHM­B: 256-byte EEPROM */
+                       eeprom@57 {
+                               compatible = "atmel,24c02";
+                               reg = <0x57>;
+                               #address-cells = <1>;
+                               #size-cells = <1>;
+                       };
+               };
+
                i2c@1 {
                        #address-cells = <1>;
                        #size-cells = <0>;