Skip to contentSkip to conversation

arm64: dts: ls1046a: fix eeprom entries

PATCH Superseded Raag Jadav 2 participants 4 messages Aug 2, 2021 – Aug 3, 2021

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Raag Jadav

author
#0 lore raw

PATCH 1/1 arm64: dts: ls1046a: fix eeprom entries

ls1046afrwy and ls1046ardb boards have CAT24C04[1] and CAT24C05[2] eeproms respectively. Both are 4Kb (512 bytes) in size. Remove multi-address entries, as we have auto-rollover support in at24 driver.

[1] https://www.onsemi.com/pdf/datasheet/cat24c01-d.pdf
[2] https://www.onsemi.com/pdf/datasheet/cat24c03-d.pdf

---
 arch/arm64/boot/dts/freescale/fsl-ls1046a-frwy.dts | 8 +-------
 arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts  | 7 +------
 2 files changed, 2 insertions(+), 13 deletions(-)
arch/arm64/boot/dts/freescale/fsl-ls1046a-frwy.dts +1 -7
index db3d303..83afe21 100644
@@ -83,15 +83,9 @@
 			};
 
 			eeprom@52 {
-				compatible = "atmel,24c512";
+				compatible = "atmel,24c04";
 				reg = <0x52>;
 			};
-
-			eeprom@53 {
-				compatible = "atmel,24c512";
-				reg = <0x53>;
-			};
-
 		};
 	};
 };
arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts +1 -6
index 60acdf0..d220f98 100644
@@ -59,14 +59,9 @@
 	};
 
 	eeprom@52 {
-		compatible = "atmel,24c512";
+		compatible = "atmel,24c04";
 		reg = <0x52>;
 	};
-
-	eeprom@53 {
-		compatible = "atmel,24c512";
-		reg = <0x53>;
-	};
 };
 
 &i2c3 {
Signature · 1 line
2.7.4
#1 lore raw
Quoted 3 lines · Raag Jadav

ls1046afrwy and ls1046ardb boards have CAT24C04[1] and CAT24C05[2] eeproms respectively. Both are 4Kb (512 bytes) in size.

These part names are from onsemi instead of atmel. Are there same part names from atmel which are also compatible with the onsemi parts?
If we want to use onsemi only part names, probably we will need two
compatible strings with the first one from onsemi and the second from atmel. Although the binding doesn't support onsemi prefix yet.

Quoted 2 lines

Remove multi-address entries, as we have auto-rollover support in at24 driver.

The device tree should describe hardware instead of matching how driver deal with it. Is the board really using a single chip or multiple chips here?

Quoted 54 lines

[1] https://www.onsemi.com/pdf/datasheet/cat24c01-d.pdf
[2] https://www.onsemi.com/pdf/datasheet/cat24c03-d.pdf

---
 arch/arm64/boot/dts/freescale/fsl-ls1046a-frwy.dts | 8 +-------
 arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts  | 7 +------
 2 files changed, 2 insertions(+), 13 deletions(-)
arch/arm64/boot/dts/freescale/fsl-ls1046a-frwy.dts +1 -7
index db3d303..83afe21 100644
@@ -83,15 +83,9 @@
                        };
 
                        eeprom@52 {
-                               compatible = "atmel,24c512";
+                               compatible = "atmel,24c04";
                                reg = <0x52>;
                        };
-
-                       eeprom@53 {
-                               compatible = "atmel,24c512";
-                               reg = <0x53>;
-                       };
-
                };
        };
 };
arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts +1 -7
index 60acdf0..d220f98 100644
@@ -59,14 +59,9 @@
        };
 
        eeprom@52 {
-               compatible = "atmel,24c512";
+               compatible = "atmel,24c04";
                reg = <0x52>;
        };
-
-       eeprom@53 {
-               compatible = "atmel,24c512";
-               reg = <0x53>;
-       };
 };
 
 &i2c3 {
--

2.7.4

author
#2 lore raw
Quoted 7 lines · Li Yang
Quoted 3 lines · Raag Jadav

ls1046afrwy and ls1046ardb boards have CAT24C04[1] and CAT24C05[2] eeproms respectively. Both are 4Kb (512 bytes) in size.

These part names are from onsemi instead of atmel. Are there same part names from atmel which are also compatible with the onsemi parts?

The part names are different, but they are functionally compatible.

Quoted 3 lines

If we want to use onsemi only part names, probably we will need two
compatible strings with the first one from onsemi and the second from atmel. Although the binding doesn't support onsemi prefix yet.

Should I add it to the at24 binding document with atmel as a fallback?

Quoted 7 lines
Quoted 3 lines

Remove multi-address entries, as we have auto-rollover support in at24 driver.

The device tree should describe hardware instead of matching how driver deal with it. Is the board really using a single chip or multiple chips here?

Yes, both the boards have a single chip each.

Quoted 55 lines
Quoted 55 lines

[1] https://www.onsemi.com/pdf/datasheet/cat24c01-d.pdf
[2] https://www.onsemi.com/pdf/datasheet/cat24c03-d.pdf

---
 arch/arm64/boot/dts/freescale/fsl-ls1046a-frwy.dts | 8 +-------
 arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts  | 7 +------
 2 files changed, 2 insertions(+), 13 deletions(-)
arch/arm64/boot/dts/freescale/fsl-ls1046a-frwy.dts +1 -7
index db3d303..83afe21 100644
@@ -83,15 +83,9 @@
                        };
 
                        eeprom@52 {
-                               compatible = "atmel,24c512";
+                               compatible = "atmel,24c04";
                                reg = <0x52>;
                        };
-
-                       eeprom@53 {
-                               compatible = "atmel,24c512";
-                               reg = <0x53>;
-                       };
-
                };
        };
 };
arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts +1 -7
index 60acdf0..d220f98 100644
@@ -59,14 +59,9 @@
        };
 
        eeprom@52 {
-               compatible = "atmel,24c512";
+               compatible = "atmel,24c04";
                reg = <0x52>;
        };
-
-       eeprom@53 {
-               compatible = "atmel,24c512";
-               reg = <0x53>;
-       };
 };
 
 &i2c3 {
--

2.7.4

#3 lore raw
Quoted 10 lines · Raag Jadav
Quoted 7 lines · Li Yang
Quoted 3 lines · Raag Jadav

ls1046afrwy and ls1046ardb boards have CAT24C04[1] and CAT24C05[2] eeproms respectively. Both are 4Kb (512 bytes) in size.

These part names are from onsemi instead of atmel. Are there same part names from atmel which are also compatible with the onsemi parts?

Quoted 7 lines

The part names are different, but they are functionally compatible.

Quoted 3 lines

If we want to use onsemi only part names, probably we will need two
compatible strings with the first one from onsemi and the second from atmel. Although the binding doesn't support onsemi prefix yet.

Should I add it to the at24 binding document with atmel as a fallback?

I think that will be the best.

Quoted 10 lines
Quoted 8 lines
Quoted 4 lines

Remove multi-address entries, as we have auto-rollover support in at24 driver.

The device tree should describe hardware instead of matching how driver deal with it. Is the board really using a single chip or multiple chips here?

Yes, both the boards have a single chip each.

Then I am fine with the change, but please make it clear in the description.

Quoted 56 lines
Quoted 56 lines
Quoted 56 lines

[1] https://www.onsemi.com/pdf/datasheet/cat24c01-d.pdf
[2] https://www.onsemi.com/pdf/datasheet/cat24c03-d.pdf

---
 arch/arm64/boot/dts/freescale/fsl-ls1046a-frwy.dts | 8 +-------
 arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts  | 7 +------
 2 files changed, 2 insertions(+), 13 deletions(-)
arch/arm64/boot/dts/freescale/fsl-ls1046a-frwy.dts +1 -7
index db3d303..83afe21 100644
@@ -83,15 +83,9 @@
                        };
 
                        eeprom@52 {
-                               compatible = "atmel,24c512";
+                               compatible = "atmel,24c04";
                                reg = <0x52>;
                        };
-
-                       eeprom@53 {
-                               compatible = "atmel,24c512";
-                               reg = <0x53>;
-                       };
-
                };
        };
 };
arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts +1 -7
index 60acdf0..d220f98 100644
@@ -59,14 +59,9 @@
        };
 
        eeprom@52 {
-               compatible = "atmel,24c512";
+               compatible = "atmel,24c04";
                reg = <0x52>;
        };
-
-       eeprom@53 {
-               compatible = "atmel,24c512";
-               reg = <0x53>;
-       };
 };
 
 &i2c3 {
--

2.7.4