Skip to contentSkip to conversation

arm64: dts: imx8mm: imx8mp: Update EEPROM with nWP GPIO, label and layout

PATCH Applied Marek Vasut 2 participants 2 messages Sep 8 – Sep 14

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 arm64: dts: imx8mm: imx8mp: Update EEPROM with nWP GPIO, label and layout

Describe ID EEPROM nWP GPIO, label and nvmem layout. The i.MX8MM eDM SBC and i.MX8MP eDM SBC nvmem layout is almost identical, except for length of product-name@32 field, which is 19 Bytes on the Mini and 24 Bytes on the Plus.

---
Cc: Conor Dooley <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Frank Li <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Pengutronix Kernel Team <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Sascha Hauer <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
V2: Fix wifi@1200 typo

---
 .../freescale/imx8mm-data-modul-edm-sbc.dts   |  56 ++++++++
 .../freescale/imx8mp-data-modul-edm-sbc.dts   | 128 ++++++++++++++++++
 2 files changed, 184 insertions(+)
arch/arm64/boot/dts/freescale/imx8mm-data-modul-edm-sbc.dts +56 -0
index df857de0375cf..cb76471440433 100644
@@ -431,7 +431,63 @@ usb-hub@2c {
 	eeprom: eeprom@50 {
 		compatible = "atmel,24c32";
 		reg = <0x50>;
+		label = "dmo-board-info";
 		pagesize = <32>;
+		wp-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>;
+
+		nvmem-layout {
+			compatible = "fixed-layout";
+			#address-cells = <1>;
+			#size-cells = <1>;
+
+			company-name@24 {
+				reg = <0x24 0xd>;
+			};
+
+			product-name@32 {
+				reg = <0x32 0x13>;
+			};
+
+			board-revision@4b {
+				reg = <0x4b 0x3>;
+			};
+
+			serial-number@4f {
+				reg = <0x4f 0x8>;
+			};
+
+			manufacturing-date@70 {
+				reg = <0x70 0xa>;
+			};
+
+			test-date@7b {
+				reg = <0x7b 0xa>;
+			};
+
+			product-number@86 {
+				reg = <0x86 0x8>;
+			};
+
+			board-variant@9a {
+				reg = <0x9a 0x9>;
+			};
+
+			company-acronym@a4 {
+				reg = <0xa4 0x3>;
+			};
+
+			mac-address@b0 {
+				reg = <0xb0 0x6>;
+			};
+
+			board-id@100 {
+				reg = <0x100 0x4>;
+			};
+
+			wifi-id@120 {
+				reg = <0x120 0x4>;
+			};
+		};
 	};
 
 	rtc: rtc@68 {
arch/arm64/boot/dts/freescale/imx8mp-data-modul-edm-sbc.dts +128 -0

142 lines not on this page · raw message

Signature · 1 line
2.53.0
#1 lore raw

From: Frank Li <[email protected]>

Quoted 4 lines · Marek Vasut

Describe ID EEPROM nWP GPIO, label and nvmem layout. The i.MX8MM eDM SBC and i.MX8MP eDM SBC nvmem layout is almost identical, except for length of product-name@32 field, which is 19 Bytes on the Mini and 24 Bytes on the Plus.

Applied, thanks!

[1/1] arm64: dts: imx8mm: imx8mp: Update EEPROM with nWP GPIO, label and layout

      commit: a66939a238f9cd5f023eaa9e7cdb3078eaff640d

Best regards,

Signature · 1 line
Frank Li <[email protected]>