Skip to contentSkip to conversation

ARM: dts: imx6ul-kontron-sl-common: Add SPI NOR partitions

PATCH Superseded Frieder Schrempf 3 participants 5 messages Jul 8, 2025 – Jul 9, 2025

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 ARM: dts: imx6ul-kontron-sl-common: Add SPI NOR partitions

From: Eberhard Stoll <[email protected]>

Describe the partitions for the bootloader and the environment on the SPI NOR.

---
Changes for v2:
* Fix name order in SoB

---
 .../dts/nxp/imx/imx6ul-kontron-sl-common.dtsi | 21 +++++++++++++++++++
 1 file changed, 21 insertions(+)
arch/arm/boot/dts/nxp/imx/imx6ul-kontron-sl-common.dtsi +21 -0
index dcf88f6103466..ab149c40a9cc1 100644
@@ -28,6 +28,27 @@ flash@0 {
 		compatible = "mxicy,mx25v8035f", "jedec,spi-nor";
 		spi-max-frequency = <50000000>;
 		reg = <0>;
+
+		partitions {
+			compatible = "fixed-partitions";
+			#address-cells = <1>;
+			#size-cells = <1>;
+
+			partition@0 {
+				label = "u-boot";
+				reg = <0x0 0xf0000>;
+			};
+
+			partition@f0000 {
+				label = "env";
+				reg = <0xf0000 0x8000>;
+			};
+
+			partition@f8000 {
+				label = "env_redundant";
+				reg = <0xf8000 0x8000>;
+			};
+		};
 	};
 };
 
Signature · 1 line
2.50.0
#1 lore raw

PATCH v2 2/2 ARM: dts: imx6ul-kontron-sl-common: Fix QSPI NAND node name

From: Frieder Schrempf <[email protected]>

Rename QSPI NAND node to 'flash@0' in order to fix the following dt-schema warning:

spi-flash@0 (spi-nand): $nodename:0: 'spi-flash@0' does not match '^(flash|.*sram|nand)(@.*)?$'

---
Changes for v2:
* None

---
 arch/arm/boot/dts/nxp/imx/imx6ul-kontron-sl-common.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/nxp/imx/imx6ul-kontron-sl-common.dtsi +1 -1
index ab149c40a9cc1..793c95d44c7d0 100644
@@ -82,7 +82,7 @@ &qspi {
 	pinctrl-0 = <&pinctrl_qspi>;
 	status = "okay";
 
-	spi-flash@0 {
+	flash@0 {
 		#address-cells = <1>;
 		#size-cells = <1>;
 		compatible = "spi-nand";
Signature · 1 line
2.50.0
maintainer Reviewed-by on v2 2/2
#2 lore raw

Re: [PATCH v2 2/2] ARM: dts: imx6ul-kontron-sl-common: Fix QSPI NAND node name

Quoted 9 lines · Frieder Schrempf

From: Frieder Schrempf <[email protected]>

Rename QSPI NAND node to 'flash@0' in order to fix the following dt-schema warning:

spi-flash@0 (spi-nand): $nodename:0: 'spi-flash@0' does not match '^(flash|.*sram|nand)(@.*)?$'

---

Quoted 22 lines

Changes for v2:
* None

---
 arch/arm/boot/dts/nxp/imx/imx6ul-kontron-sl-common.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/nxp/imx/imx6ul-kontron-sl-common.dtsi +1 -2
index ab149c40a9cc1..793c95d44c7d0 100644
@@ -82,7 +82,7 @@ &qspi {
 	pinctrl-0 = <&pinctrl_qspi>;
 	status = "okay";
 
-	spi-flash@0 {
+	flash@0 {
 		#address-cells = <1>;
 		#size-cells = <1>;
 		compatible = "spi-nand";
--

2.50.0

maintainer
#3 lore raw
In reply to Frieder Schrempf
Quoted 21 lines · Frieder Schrempf

From: Eberhard Stoll <[email protected]>

Describe the partitions for the bootloader and the environment on the SPI NOR.

---
Changes for v2:
* Fix name order in SoB

---
 .../dts/nxp/imx/imx6ul-kontron-sl-common.dtsi | 21 +++++++++++++++++++
 1 file changed, 21 insertions(+)
arch/arm/boot/dts/nxp/imx/imx6ul-kontron-sl-common.dtsi +0 -0
index dcf88f6103466..ab149c40a9cc1 100644
@@ -28,6 +28,27 @@ flash@0 {
 		compatible = "mxicy,mx25v8035f", "jedec,spi-nor";
 		spi-max-frequency = <50000000>;

arch/arm/boot/dts/nxp/imx/imx6ul-kontron-sl-common.dtsi flash@0 { · line 39

Quoted 10 lines
arch/arm/boot/dts/nxp/imx/imx6ul-kontron-sl-common.dtsi +9 -0
 		reg = <0>;
+
+		partitions {
+			compatible = "fixed-partitions";
+			#address-cells = <1>;
+			#size-cells = <1>;
+
+			partition@0 {
+				label = "u-boot";
+				reg = <0x0 0xf0000>;

I think reg should first property.
first is 'compatible', the second is 'reg'.

Frank

Quoted 18 lines
arch/arm/boot/dts/nxp/imx/imx6ul-kontron-sl-common.dtsi +12 -1
+			};
+
+			partition@f0000 {
+				label = "env";
+				reg = <0xf0000 0x8000>;
+			};
+
+			partition@f8000 {
+				label = "env_redundant";
+				reg = <0xf8000 0x8000>;
+			};
+		};
 	};
 };
 
--

2.50.0

#4 lore raw

Am 08.07.25 um 19:57 schrieb Frank Li:

Quoted 27 lines · Frieder Schrempf
Quoted 26 lines

From: Eberhard Stoll <[email protected]>

Describe the partitions for the bootloader and the environment on the SPI NOR.

---
Changes for v2:
* Fix name order in SoB

---
 .../dts/nxp/imx/imx6ul-kontron-sl-common.dtsi | 21 +++++++++++++++++++
 1 file changed, 21 insertions(+)
arch/arm/boot/dts/nxp/imx/imx6ul-kontron-sl-common.dtsi +4 -0
index dcf88f6103466..ab149c40a9cc1 100644
@@ -28,6 +28,27 @@ flash@0 {
 		compatible = "mxicy,mx25v8035f", "jedec,spi-nor";
 		spi-max-frequency = <50000000>;
 		reg = <0>;
+
+		partitions {
+			compatible = "fixed-partitions";
+			#address-cells = <1>;
Quoted 8 lines

arch/arm/boot/dts/nxp/imx/imx6ul-kontron-sl-common.dtsi flash@0 { · line 39

Quoted 5 lines
arch/arm/boot/dts/nxp/imx/imx6ul-kontron-sl-common.dtsi +5 -0
+			#size-cells = <1>;
+
+			partition@0 {
+				label = "u-boot";
+				reg = <0x0 0xf0000>;

I think reg should first property.
first is 'compatible', the second is 'reg'.

Thanks! Now fixed in v3.