ARM: dts: gemini: rename to nand-controller
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
Quoted 3 lines · Corentin Labbe
We must use nand-controller instead of flash.
Signed-off-by Corentin Labbe <[email protected]>
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