Skip to contentSkip to conversation

ARM: dts: aspeed-g4: Add all flash chips

PATCH In review Joel Stanley 3 participants 4 messages Sep 5, 2019

Subsystems (2)
lore
Share & tools
lore

Joel Stanley

author maintainer
#0 lore raw

PATCH 1/1 ARM: dts: aspeed-g4: Add all flash chips

The FMC supports five chip selects, so describe the five possible flash chips.

---
 arch/arm/boot/dts/aspeed-g4.dtsi | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
arch/arm/boot/dts/aspeed-g4.dtsi +20 -0
index e465cda40fe7..dffb595d30e4 100644
@@ -67,6 +67,26 @@
 				compatible = "jedec,spi-nor";
 				status = "disabled";
 			};
+			flash at 1 {
+				reg = < 1 >;
+				compatible = "jedec,spi-nor";
+				status = "disabled";
+			};
+			flash at 2 {
+				reg = < 2 >;
+				compatible = "jedec,spi-nor";
+				status = "disabled";
+			};
+			flash at 3 {
+				reg = < 3 >;
+				compatible = "jedec,spi-nor";
+				status = "disabled";
+			};
+			flash at 4 {
+				reg = < 4 >;
+				compatible = "jedec,spi-nor";
+				status = "disabled";
+			};
 		};
 
 		spi: spi at 1e630000 {
Signature · 1 line
2.23.0.rc1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 26 lines · Joel Stanley

The FMC supports five chip selects, so describe the five possible flash chips.

---
 arch/arm/boot/dts/aspeed-g4.dtsi | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
arch/arm/boot/dts/aspeed-g4.dtsi +10 -0
index e465cda40fe7..dffb595d30e4 100644
@@ -67,6 +67,26 @@
 				compatible = "jedec,spi-nor";
 				status = "disabled";
 			};
+			flash@1 {
+				reg = < 1 >;
+				compatible = "jedec,spi-nor";
+				status = "disabled";
+			};
+			flash@2 {
+				reg = < 2 >;
+				compatible = "jedec,spi-nor";
+				status = "disabled";
+			};

arch/arm/boot/dts/aspeed-g4.dtsi line 89

Quoted 10 lines
arch/arm/boot/dts/aspeed-g4.dtsi +10 -0
+			flash@3 {
+				reg = < 3 >;
+				compatible = "jedec,spi-nor";
+				status = "disabled";
+			};
+			flash@4 {
+				reg = < 4 >;
+				compatible = "jedec,spi-nor";
+				status = "disabled";
+			};

The FMC supports parallel NOR and NAND interfaces too, but so far no-one has cared for these options, so if they ever do we'll fix it then.

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#2 lore raw
Quoted 34 lines · Andrew Jeffery
Quoted 31 lines · Joel Stanley

The FMC supports five chip selects, so describe the five possible flash chips.

---
 arch/arm/boot/dts/aspeed-g4.dtsi | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
arch/arm/boot/dts/aspeed-g4.dtsi +15 -0
index e465cda40fe7..dffb595d30e4 100644
@@ -67,6 +67,26 @@
 				compatible = "jedec,spi-nor";
 				status = "disabled";
 			};
+			flash at 1 {
+				reg = < 1 >;
+				compatible = "jedec,spi-nor";
+				status = "disabled";
+			};
+			flash at 2 {
+				reg = < 2 >;
+				compatible = "jedec,spi-nor";
+				status = "disabled";
+			};
+			flash at 3 {
+				reg = < 3 >;
+				compatible = "jedec,spi-nor";
+				status = "disabled";
+			};
Quoted 8 lines

arch/arm/boot/dts/aspeed-g4.dtsi line 89

Quoted 5 lines
arch/arm/boot/dts/aspeed-g4.dtsi +5 -0
+			flash at 4 {
+				reg = < 4 >;
+				compatible = "jedec,spi-nor";
+				status = "disabled";
+			};

The FMC supports parallel NOR and NAND interfaces too, but so far no-one has cared for these options, so if they ever do we'll fix it then.

New Aspeed SoCs only have SPI support. So I don't think the other interfaces were ever used.

C.

Quoted 3 lines
Reviewed-by on v1 1/1
#3 lore raw
In reply to Joel Stanley
Quoted 4 lines · Joel Stanley

The FMC supports five chip selects, so describe the five possible flash chips.

Thanks,

C.

Quoted 36 lines
---
 arch/arm/boot/dts/aspeed-g4.dtsi | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
arch/arm/boot/dts/aspeed-g4.dtsi +20 -0
index e465cda40fe7..dffb595d30e4 100644
@@ -67,6 +67,26 @@
 				compatible = "jedec,spi-nor";
 				status = "disabled";
 			};
+			flash at 1 {
+				reg = < 1 >;
+				compatible = "jedec,spi-nor";
+				status = "disabled";
+			};
+			flash at 2 {
+				reg = < 2 >;
+				compatible = "jedec,spi-nor";
+				status = "disabled";
+			};
+			flash at 3 {
+				reg = < 3 >;
+				compatible = "jedec,spi-nor";
+				status = "disabled";
+			};
+			flash at 4 {
+				reg = < 4 >;
+				compatible = "jedec,spi-nor";
+				status = "disabled";
+			};
 		};
 
 		spi: spi at 1e630000 {