All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] arm: dart6ul: change compatible string for eeprom
@ 2020-12-22 19:24 ferlandm at amotus.ca
  2020-12-22 19:24 ` [PATCH 2/2] arm: dart6ul: read and print SoM info from eeprom on startup ferlandm at amotus.ca
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: ferlandm at amotus.ca @ 2020-12-22 19:24 UTC (permalink / raw)
  To: u-boot

From: Marc Ferland <ferlandm@amotus.ca>

The eeprom at address 0x50 is a BR24G04NUX-3TTR. It has a
4Kbit (512x8) capacity, change the compatible string to reflect this
fact.

Also, add an alias to easily refer to this eeprom with
fdt_path_offset() which will be in another commit.

Signed-off-by: Marc Ferland <ferlandm@amotus.ca>
---
 arch/arm/dts/imx6ull-dart-6ul.dtsi | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/arch/arm/dts/imx6ull-dart-6ul.dtsi b/arch/arm/dts/imx6ull-dart-6ul.dtsi
index e96669f493..fed40b0109 100644
--- a/arch/arm/dts/imx6ull-dart-6ul.dtsi
+++ b/arch/arm/dts/imx6ull-dart-6ul.dtsi
@@ -14,6 +14,10 @@
 	chosen {
 		stdout-path = &uart1;
 	};
+
+	aliases {
+		eeprom0 = &eeprom_som;
+	};
 };
 
 &fec1 {
@@ -97,9 +101,10 @@
 	sda-gpios = <&gpio1 31 GPIO_ACTIVE_HIGH>;
 	status = "okay";
 
-	eeprom at 50 {
-		compatible = "cat,24c32";
+	eeprom_som: eeprom at 50 {
+		compatible = "atmel,24c04";
 		reg = <0x50>;
+		status = "okay";
 	};
 };
 
-- 
2.25.1

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

end of thread, other threads:[~2020-12-26 15:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-22 19:24 [PATCH 1/2] arm: dart6ul: change compatible string for eeprom ferlandm at amotus.ca
2020-12-22 19:24 ` [PATCH 2/2] arm: dart6ul: read and print SoM info from eeprom on startup ferlandm at amotus.ca
2020-12-26  3:10   ` Fabio Estevam
2020-12-26 15:53   ` sbabic at denx.de
2020-12-26  3:10 ` [PATCH 1/2] arm: dart6ul: change compatible string for eeprom Fabio Estevam
2020-12-26 15:53 ` sbabic at denx.de

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.