[PATCH 3/7] ARM: dts: nuvoton: gbs: Split SPI flash partition

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Split the primary and secondary BIOS SPI EEPROMs in 2 partitions

Signed-off-by: David Wang <davidwang@xxxxxxxxxxxx>
---
 arch/arm/boot/dts/nuvoton-npcm730-gbs.dts | 29 ++++++++++++++++++++++-
 1 file changed, 28 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/nuvoton-npcm730-gbs.dts b/arch/arm/boot/dts/nuvoton-npcm730-gbs.dts
index 9e9eba8bad5e..a33766e430d7 100644
--- a/arch/arm/boot/dts/nuvoton-npcm730-gbs.dts
+++ b/arch/arm/boot/dts/nuvoton-npcm730-gbs.dts
@@ -414,7 +414,20 @@ flash@0 {
 		spi-max-frequency = <50000000>;
 		spi-rx-bus-width = <2>;
 		m25p,fast-read;
-		label = "pnor";
+		label = "bios";
+		partitions {
+			compatible = "fixed-partitions";
+			#address-cells = <1>;
+			#size-cells = <1>;
+			bios-primary@0 {
+				label = "bios-primary";
+				reg = <0x0000000 0x2000000>;
+			};
+			bios-secondary@2000000 {
+				label = "bios-secondary";
+				reg = <0x2000000 0x2000000>;
+			};
+		};
 	};
 	flash@1 {
 		compatible = "jedec,spi-nor";
@@ -424,6 +437,20 @@ flash@1 {
 		spi-max-frequency = <50000000>;
 		spi-rx-bus-width = <2>;
 		m25p,fast-read;
+		label = "bios-2";
+		partitions {
+			compatible = "fixed-partitions";
+			#address-cells = <1>;
+			#size-cells = <1>;
+			bios-2-primary@0 {
+				label = "bios-2-primary";
+				reg = <0x0000000 0x2000000>;
+			};
+			bios-2-secondary@2000000 {
+				label = "bios-2-secondary";
+				reg = <0x2000000 0x2000000>;
+			};
+		};
 	};
 };
 
-- 
2.25.1




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux