Skip to contentSkip to conversation

ARM: dts: gemini: rename to nand-controller

PATCH In review Corentin Labbe 2 participants 2 messages Apr 28, 2021 – May 6, 2021 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: gemini: rename to nand-controller

We must use nand-controller instead of flash.

---
 arch/arm/boot/dts/gemini-dlink-dir-685.dts | 2 +-
 arch/arm/boot/dts/gemini-nas4220b.dts      | 2 +-
 arch/arm/boot/dts/gemini-rut1xx.dts        | 3 +--
 arch/arm/boot/dts/gemini-sl93512r.dts      | 2 +-
 arch/arm/boot/dts/gemini-sq201.dts         | 2 +-
 arch/arm/boot/dts/gemini-wbd111.dts        | 2 +-
 arch/arm/boot/dts/gemini-wbd222.dts        | 2 +-
 arch/arm/boot/dts/gemini.dtsi              | 2 +-
 8 files changed, 8 insertions(+), 9 deletions(-)
arch/arm/boot/dts/gemini-dlink-dir-685.dts +1 -1
index cc39289e99dd..5e205bb53e5a 100644
@@ -281,7 +281,7 @@ phy4: phy@4 {
 	};
 
 	soc {
-		flash@30000000 {
+		nand-controller@30000000 {
 			/*
 			 * Flash access collides with the Chip Enable signal for
 			 * the display panel, that reuse the parallel flash Chip
arch/arm/boot/dts/gemini-nas4220b.dts +1 -1
index 43c45f7e1e0a..1e2d3162d9c1 100644
@@ -76,7 +76,7 @@ phy0: ethernet-phy@1 {
 	};
 
 	soc {
-		flash@30000000 {
+		nand-controller@30000000 {
 			status = "okay";
 			/* 16MB of flash */
 			reg = <0x30000000 0x01000000>;
arch/arm/boot/dts/gemini-rut1xx.dts +1 -2
index 08091d2a64e1..f8826a3b774f 100644
@@ -70,7 +70,7 @@ phy0: ethernet-phy@1 {
 	};
 
 	soc {
-		flash@30000000 {
+		nand-controller@30000000 {
 			status = "okay";
 			/* 8MB of flash */
 			reg = <0x30000000 0x00800000>;
@@ -124,7 +124,6 @@ ethernet-port@1 {
 				/* Not used in this platform */
 			};
 		};
-
 		usb@68000000 {
 			status = "okay";
 		};
arch/arm/boot/dts/gemini-sl93512r.dts +1 -1
index a0916d3c1059..995be04425b7 100644
@@ -138,7 +138,7 @@ fixed-link {
 
 
 	soc {
-		flash@30000000 {
+		nand-controller@30000000 {
 			status = "okay";
 			/* 16MB of flash */
 			reg = <0x30000000 0x01000000>;
arch/arm/boot/dts/gemini-sq201.dts +1 -1
index 0c6e6d35bfaa..df6146aaff4b 100644
@@ -123,7 +123,7 @@ fixed-link {
 
 
 	soc {
-		flash@30000000 {
+		nand-controller@30000000 {
 			status = "okay";
 			pinctrl-names = "enabled", "disabled";
 			pinctrl-0 = <&pflash_default_pins>;
arch/arm/boot/dts/gemini-wbd111.dts +1 -1
index 0c47b2b9811c..f253743b1c55 100644
@@ -82,7 +82,7 @@ phy0: ethernet-phy@1 {
 	};
 
 	soc {
-		flash@30000000 {
+		nand-controller@30000000 {
 			status = "okay";
 			/* 8MB of flash */
 			reg = <0x30000000 0x00800000>;
arch/arm/boot/dts/gemini-wbd222.dts +1 -1
index 52b4dbc0c072..76b6faaf806e 100644
@@ -86,7 +86,7 @@ phy1: ethernet-phy@3 {
 	};
 
 	soc {
-		flash@30000000 {
+		nand-controller@30000000 {
 			status = "okay";
 			/* 8MB of flash */
 			reg = <0x30000000 0x00800000>;
arch/arm/boot/dts/gemini.dtsi +1 -1
index 38671523dec5..5c8c5179c944 100644
@@ -16,7 +16,7 @@ soc {
 		compatible = "simple-bus";
 		interrupt-parent = <&intcon>;
 
-		flash@30000000 {
+		nand: nand-controller@30000000 {
 			compatible = "cortina,gemini-flash", "cfi-flash";
 			syscon = <&syscon>;
 			pinctrl-names = "default";
Signature · 1 line
2.26.3
#1 lore raw
Quoted 3 lines · Corentin Labbe

We must use nand-controller instead of flash.

Hm, this flash memory isn't NAND, it is just memory-mapped NOR flash.

The example for CFI NOR flash in Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml clearly uses the node name "flash@"

There is however a real NAND and serial flash memory controller at 0x65000000, but I haven't seen a platform that uses it.

The extra compatible string "cortina,gemini-flash" turns on some Gemini-specific checks, but it goes into the global system controller, not the NAND controller, as the system controller confusingly have some registers for detecting NOR memory config. drivers/mtd/maps/physmap-gemini.c

Yours,
Linus Walleij