linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] fix eeprom entries for ls1046afrwy and ls1046ardb
@ 2021-08-04 19:24 Raag Jadav
  2021-08-04 19:24 ` [PATCH v2 1/2] arm64: dts: ls1046a: fix eeprom entries Raag Jadav
  2021-08-04 19:24 ` [PATCH v2 2/2] dt-bindings: at24: add ON Semi CAT24C04 and CAT24C05 Raag Jadav
  0 siblings, 2 replies; 6+ messages in thread
From: Raag Jadav @ 2021-08-04 19:24 UTC (permalink / raw)
  To: Bartosz Golaszewski, Rob Herring, Shawn Guo, Li Yang, linux-i2c,
	devicetree, linux-kernel, linux-arm-kernel
  Cc: Raag Jadav

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH v2 1/2] arm64: dts: ls1046a: fix eeprom entries
  2021-08-04 19:24 [PATCH v2 0/2] fix eeprom entries for ls1046afrwy and ls1046ardb Raag Jadav
@ 2021-08-04 19:24 ` Raag Jadav
  2021-08-06 23:46   ` Li Yang
  2021-08-09  7:46   ` Shawn Guo
  2021-08-04 19:24 ` [PATCH v2 2/2] dt-bindings: at24: add ON Semi CAT24C04 and CAT24C05 Raag Jadav
  1 sibling, 2 replies; 6+ messages in thread
From: Raag Jadav @ 2021-08-04 19:24 UTC (permalink / raw)
  To: Bartosz Golaszewski, Rob Herring, Shawn Guo, Li Yang, linux-i2c,
	devicetree, linux-kernel, linux-arm-kernel
  Cc: Raag Jadav

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 <raagjadav@gmail.com>
---
 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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH v2 2/2] dt-bindings: at24: add ON Semi CAT24C04 and CAT24C05
  2021-08-04 19:24 [PATCH v2 0/2] fix eeprom entries for ls1046afrwy and ls1046ardb Raag Jadav
  2021-08-04 19:24 ` [PATCH v2 1/2] arm64: dts: ls1046a: fix eeprom entries Raag Jadav
@ 2021-08-04 19:24 ` Raag Jadav
  2021-08-05 19:08   ` Bartosz Golaszewski
  1 sibling, 1 reply; 6+ messages in thread
From: Raag Jadav @ 2021-08-04 19:24 UTC (permalink / raw)
  To: Bartosz Golaszewski, Rob Herring, Shawn Guo, Li Yang, linux-i2c,
	devicetree, linux-kernel, linux-arm-kernel
  Cc: Raag Jadav

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

Signed-off-by: Raag Jadav <raagjadav@gmail.com>
---
 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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH v2 2/2] dt-bindings: at24: add ON Semi CAT24C04 and CAT24C05
  2021-08-04 19:24 ` [PATCH v2 2/2] dt-bindings: at24: add ON Semi CAT24C04 and CAT24C05 Raag Jadav
@ 2021-08-05 19:08   ` Bartosz Golaszewski
  0 siblings, 0 replies; 6+ messages in thread
From: Bartosz Golaszewski @ 2021-08-05 19:08 UTC (permalink / raw)
  To: Raag Jadav
  Cc: Rob Herring, Shawn Guo, Li Yang, linux-i2c, linux-devicetree,
	LKML, arm-soc

On Wed, Aug 4, 2021 at 9:25 PM Raag Jadav <raagjadav@gmail.com> wrote:
>
> Add bindings for ON Semi CAT24C04 and CAT24C05 eeproms,
> which are compatible with Atmel AT24C04.
>
> Signed-off-by: Raag Jadav <raagjadav@gmail.com>
> ---
>  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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v2 1/2] arm64: dts: ls1046a: fix eeprom entries
  2021-08-04 19:24 ` [PATCH v2 1/2] arm64: dts: ls1046a: fix eeprom entries Raag Jadav
@ 2021-08-06 23:46   ` Li Yang
  2021-08-09  7:46   ` Shawn Guo
  1 sibling, 0 replies; 6+ messages in thread
From: Li Yang @ 2021-08-06 23:46 UTC (permalink / raw)
  To: Raag Jadav
  Cc: Bartosz Golaszewski, Rob Herring, Shawn Guo, linux-i2c,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, lkml,
	moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE

On Wed, Aug 4, 2021 at 4:32 PM Raag Jadav <raagjadav@gmail.com> 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 <raagjadav@gmail.com>

Acked-by: Li Yang <leoyang.li@nxp.com>
> ---
>  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
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v2 1/2] arm64: dts: ls1046a: fix eeprom entries
  2021-08-04 19:24 ` [PATCH v2 1/2] arm64: dts: ls1046a: fix eeprom entries Raag Jadav
  2021-08-06 23:46   ` Li Yang
@ 2021-08-09  7:46   ` Shawn Guo
  1 sibling, 0 replies; 6+ messages in thread
From: Shawn Guo @ 2021-08-09  7:46 UTC (permalink / raw)
  To: Raag Jadav
  Cc: Bartosz Golaszewski, Rob Herring, Li Yang, linux-i2c, devicetree,
	linux-kernel, linux-arm-kernel

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 <raagjadav@gmail.com>

Applied, thanks!

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-08-09  7:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-04 19:24 [PATCH v2 0/2] fix eeprom entries for ls1046afrwy and ls1046ardb Raag Jadav
2021-08-04 19:24 ` [PATCH v2 1/2] arm64: dts: ls1046a: fix eeprom entries Raag Jadav
2021-08-06 23:46   ` Li Yang
2021-08-09  7:46   ` Shawn Guo
2021-08-04 19:24 ` [PATCH v2 2/2] dt-bindings: at24: add ON Semi CAT24C04 and CAT24C05 Raag Jadav
2021-08-05 19:08   ` Bartosz Golaszewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).