Skip to contentSkip to conversation

ARM: dts: nuvoton: gbs: split SPI flash partition

PATCH Applied George Hung 2 participants 2 messages Oct 8, 2021 – Oct 11, 2021 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: nuvoton: gbs: split SPI flash partition

Split the primary and secondary BIOS SPI EEPROMs in 2 partitions

---
 arch/arm/boot/dts/nuvoton-npcm730-gbs.dts | 27 +++++++++++++++++++++++
 1 file changed, 27 insertions(+)
arch/arm/boot/dts/nuvoton-npcm730-gbs.dts +27 -0
index eb6eb21cb2a4..f20c2ae4f576 100644
@@ -415,6 +415,19 @@ spi-nor@0 {
 		spi-rx-bus-width = <2>;
 		m25p,fast-read;
 		label = "pnor";
+		partitions@a0000000 {
+			compatible = "fixed-partitions";
+			#address-cells = <1>;
+			#size-cells = <1>;
+			pnor-primary@0 {
+				label = "pnor-primary";
+				reg = <0x0000000 0x2000000>;
+			};
+			pnor-scratch@2000000 {
+				label = "pnor-scratch";
+				reg = <0x2000000 0x2000000>;
+			};
+		};
 	};
 	spi-nor@1 {
 		compatible = "jedec,spi-nor";
@@ -424,6 +437,20 @@ spi-nor@1 {
 		spi-max-frequency = <50000000>;
 		spi-rx-bus-width = <2>;
 		m25p,fast-read;
+		label = "pnor-2";
+		partitions@a0000000 {
+			compatible = "fixed-partitions";
+			#address-cells = <1>;
+			#size-cells = <1>;
+			pnor-primary@0 {
+				label = "pnor-2-primary";
+				reg = <0x0000000 0x2000000>;
+			};
+			pnor-scratch@2000000 {
+				label = "pnor-2-scratch";
+				reg = <0x2000000 0x2000000>;
+			};
+		};
 	};
 };
 
Signature · 1 line
2.32.0