[PATCH v2 0/2] fix eeprom entries for ls1046afrwy and ls1046ardb

STALE1898d

6 messages, 4 authors, 2021-08-09 · open the first message on its own page

[PATCH v2 0/2] fix eeprom entries for ls1046afrwy and ls1046ardb

From: Raag Jadav <hidden>
Date: 2021-08-04 19:25:14

This series fixes eeprom entries for ls1046afrwy and ls1046ardb boards.

Changes since v1:
- Update patch description.
- Add bindings for ON Semi CAT24C04 and CAT24C05 eeproms.

Raag Jadav (2):
  arm64: dts: ls1046a: fix eeprom entries
  dt-bindings: at24: add ON Semi CAT24C04 and CAT24C05

 Documentation/devicetree/bindings/eeprom/at24.yaml | 6 ++++++
 arch/arm64/boot/dts/freescale/fsl-ls1046a-frwy.dts | 8 +-------
 arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts  | 7 +------
 3 files changed, 8 insertions(+), 13 deletions(-)

-- 
2.7.4

[PATCH v2 1/2] arm64: dts: ls1046a: fix eeprom entries

From: Raag Jadav <hidden>
Date: 2021-08-04 19:25:20

ls1046afrwy and ls1046ardb boards have CAT24C04[1] and CAT24C05[2]
eeproms respectively. Both are 4Kb (512 bytes) in size,
and compatible with AT24C04[3].
Remove multi-address entries, as both the boards have a single chip each.

[1] https://www.onsemi.com/pdf/datasheet/cat24c01-d.pdf
[2] https://www.onsemi.com/pdf/datasheet/cat24c03-d.pdf
[3] https://ww1.microchip.com/downloads/en/DeviceDoc/doc0180.pdf

Signed-off-by: Raag Jadav <redacted>
---
 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(-)
diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1046a-frwy.dts b/arch/arm64/boot/dts/freescale/fsl-ls1046a-frwy.dts
index db3d303..6d22efb 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1046a-frwy.dts
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a-frwy.dts
@@ -83,15 +83,9 @@
 			};
 
 			eeprom@52 {
-				compatible = "atmel,24c512";
+				compatible = "onnn,cat24c04", "atmel,24c04";
 				reg = <0x52>;
 			};
-
-			eeprom@53 {
-				compatible = "atmel,24c512";
-				reg = <0x53>;
-			};
-
 		};
 	};
 };
diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts
index 60acdf0..7025aad 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts
@@ -59,14 +59,9 @@
 	};
 
 	eeprom@52 {
-		compatible = "atmel,24c512";
+		compatible = "onnn,cat24c05", "atmel,24c04";
 		reg = <0x52>;
 	};
-
-	eeprom@53 {
-		compatible = "atmel,24c512";
-		reg = <0x53>;
-	};
 };
 
 &i2c3 {
-- 
2.7.4

[PATCH v2 2/2] dt-bindings: at24: add ON Semi CAT24C04 and CAT24C05

From: Raag Jadav <hidden>
Date: 2021-08-04 19:25:26

Add bindings for ON Semi CAT24C04 and CAT24C05 eeproms,
which are compatible with Atmel AT24C04.

Signed-off-by: Raag Jadav <redacted>
---
 Documentation/devicetree/bindings/eeprom/at24.yaml | 6 ++++++
 1 file changed, 6 insertions(+)
diff --git a/Documentation/devicetree/bindings/eeprom/at24.yaml b/Documentation/devicetree/bindings/eeprom/at24.yaml
index 914a423..4c5396a 100644
--- a/Documentation/devicetree/bindings/eeprom/at24.yaml
+++ b/Documentation/devicetree/bindings/eeprom/at24.yaml
@@ -98,6 +98,12 @@ properties:
           - const: nxp,se97b
           - const: atmel,24c02
       - items:
+          - const: onnn,cat24c04
+          - const: atmel,24c04
+      - items:
+          - const: onnn,cat24c05
+          - const: atmel,24c04
+      - items:
           - const: renesas,r1ex24002
           - const: atmel,24c02
       - items:
-- 
2.7.4

Re: [PATCH v2 2/2] dt-bindings: at24: add ON Semi CAT24C04 and CAT24C05

From: Bartosz Golaszewski <hidden>
Date: 2021-08-05 19:09:18

On Wed, Aug 4, 2021 at 9:25 PM Raag Jadav [off-list ref] wrote:
quoted hunk
Add bindings for ON Semi CAT24C04 and CAT24C05 eeproms,
which are compatible with Atmel AT24C04.

Signed-off-by: Raag Jadav <redacted>
---
 Documentation/devicetree/bindings/eeprom/at24.yaml | 6 ++++++
 1 file changed, 6 insertions(+)
diff --git a/Documentation/devicetree/bindings/eeprom/at24.yaml b/Documentation/devicetree/bindings/eeprom/at24.yaml
index 914a423..4c5396a 100644
--- a/Documentation/devicetree/bindings/eeprom/at24.yaml
+++ b/Documentation/devicetree/bindings/eeprom/at24.yaml
@@ -98,6 +98,12 @@ properties:
           - const: nxp,se97b
           - const: atmel,24c02
       - items:
+          - const: onnn,cat24c04
+          - const: atmel,24c04
+      - items:
+          - const: onnn,cat24c05
+          - const: atmel,24c04
+      - items:
           - const: renesas,r1ex24002
           - const: atmel,24c02
       - items:
--
2.7.4
Applied, thanks!

Bartosz

Re: [PATCH v2 1/2] arm64: dts: ls1046a: fix eeprom entries

From: Li Yang <hidden>
Date: 2021-08-06 23:46:22

On Wed, Aug 4, 2021 at 4:32 PM Raag Jadav [off-list ref] wrote:
ls1046afrwy and ls1046ardb boards have CAT24C04[1] and CAT24C05[2]
eeproms respectively. Both are 4Kb (512 bytes) in size,
and compatible with AT24C04[3].
Remove multi-address entries, as both the boards have a single chip each.

[1] https://www.onsemi.com/pdf/datasheet/cat24c01-d.pdf
[2] https://www.onsemi.com/pdf/datasheet/cat24c03-d.pdf
[3] https://ww1.microchip.com/downloads/en/DeviceDoc/doc0180.pdf

Signed-off-by: Raag Jadav <redacted>
Acked-by: Li Yang <redacted>
quoted hunk
---
 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(-)
diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1046a-frwy.dts b/arch/arm64/boot/dts/freescale/fsl-ls1046a-frwy.dts
index db3d303..6d22efb 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1046a-frwy.dts
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a-frwy.dts
@@ -83,15 +83,9 @@
                        };

                        eeprom@52 {
-                               compatible = "atmel,24c512";
+                               compatible = "onnn,cat24c04", "atmel,24c04";
                                reg = <0x52>;
                        };
-
-                       eeprom@53 {
-                               compatible = "atmel,24c512";
-                               reg = <0x53>;
-                       };
-
                };
        };
 };
diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts
index 60acdf0..7025aad 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts
@@ -59,14 +59,9 @@
        };

        eeprom@52 {
-               compatible = "atmel,24c512";
+               compatible = "onnn,cat24c05", "atmel,24c04";
                reg = <0x52>;
        };
-
-       eeprom@53 {
-               compatible = "atmel,24c512";
-               reg = <0x53>;
-       };
 };

 &i2c3 {
--
2.7.4

Re: [PATCH v2 1/2] arm64: dts: ls1046a: fix eeprom entries

From: Shawn Guo <shawnguo@kernel.org>
Date: 2021-08-09 07:46:39

On Thu, Aug 05, 2021 at 12:54:45AM +0530, Raag Jadav wrote:
ls1046afrwy and ls1046ardb boards have CAT24C04[1] and CAT24C05[2]
eeproms respectively. Both are 4Kb (512 bytes) in size,
and compatible with AT24C04[3].
Remove multi-address entries, as both the boards have a single chip each.

[1] https://www.onsemi.com/pdf/datasheet/cat24c01-d.pdf
[2] https://www.onsemi.com/pdf/datasheet/cat24c03-d.pdf
[3] https://ww1.microchip.com/downloads/en/DeviceDoc/doc0180.pdf

Signed-off-by: Raag Jadav <redacted>
Applied, thanks!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help