All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] ARM: add NAND support to Ebang EBAZ4205 board
@ 2021-06-16 15:54 ` Michael Walle
  0 siblings, 0 replies; 12+ messages in thread
From: Michael Walle @ 2021-06-16 15:54 UTC (permalink / raw)
  To: devicetree, linux-arm-kernel, linux-kernel
  Cc: Rob Herring, Michal Simek, Russell King, Arnd Bergmann, Michael Walle

Thanks to Miguel, there is finally a NAND driver for this SoC and we can
now support the NAND device on the EBAZ4205.

Btw. I'm not sure how often the PL35x NAND controller is used in SoC and
if it qualifies to add it to the multi_v7 defconfig.

Michael Walle (3):
  ARM: configs: multi_v7: enable PL35x NAND controller
  ARM: dts: zynq: add NAND flash controller node
  ARM: dts: ebaz4205: enable NAND support

 arch/arm/boot/dts/zynq-7000.dtsi    | 21 +++++++++++++++++++++
 arch/arm/boot/dts/zynq-ebaz4205.dts | 12 ++++++++++++
 arch/arm/configs/multi_v7_defconfig |  1 +
 3 files changed, 34 insertions(+)

-- 
2.20.1


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH 0/3] ARM: add NAND support to Ebang EBAZ4205 board
@ 2021-06-16 15:54 ` Michael Walle
  0 siblings, 0 replies; 12+ messages in thread
From: Michael Walle @ 2021-06-16 15:54 UTC (permalink / raw)
  To: devicetree, linux-arm-kernel, linux-kernel
  Cc: Rob Herring, Michal Simek, Russell King, Arnd Bergmann, Michael Walle

Thanks to Miguel, there is finally a NAND driver for this SoC and we can
now support the NAND device on the EBAZ4205.

Btw. I'm not sure how often the PL35x NAND controller is used in SoC and
if it qualifies to add it to the multi_v7 defconfig.

Michael Walle (3):
  ARM: configs: multi_v7: enable PL35x NAND controller
  ARM: dts: zynq: add NAND flash controller node
  ARM: dts: ebaz4205: enable NAND support

 arch/arm/boot/dts/zynq-7000.dtsi    | 21 +++++++++++++++++++++
 arch/arm/boot/dts/zynq-ebaz4205.dts | 12 ++++++++++++
 arch/arm/configs/multi_v7_defconfig |  1 +
 3 files changed, 34 insertions(+)

-- 
2.20.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH 1/3] ARM: configs: multi_v7: enable PL35x NAND controller
  2021-06-16 15:54 ` Michael Walle
@ 2021-06-16 15:54   ` Michael Walle
  -1 siblings, 0 replies; 12+ messages in thread
From: Michael Walle @ 2021-06-16 15:54 UTC (permalink / raw)
  To: devicetree, linux-arm-kernel, linux-kernel
  Cc: Rob Herring, Michal Simek, Russell King, Arnd Bergmann, Michael Walle

After years, linux finally got a driver for the PL35x NAND controller
found on the Xilinx Zynq-7000 SoC for example. Enable support for this
driver.

Signed-off-by: Michael Walle <michael@walle.cc>
---
 arch/arm/configs/multi_v7_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig
index 52a0400fdd92..8d5ec5986b42 100644
--- a/arch/arm/configs/multi_v7_defconfig
+++ b/arch/arm/configs/multi_v7_defconfig
@@ -215,6 +215,7 @@ CONFIG_MTD_NAND_GPMI_NAND=y
 CONFIG_MTD_NAND_VF610_NFC=y
 CONFIG_MTD_NAND_DAVINCI=y
 CONFIG_MTD_NAND_STM32_FMC2=y
+CONFIG_MTD_NAND_PL35X=y
 CONFIG_MTD_SPI_NOR=y
 CONFIG_SPI_ASPEED_SMC=m
 CONFIG_MTD_UBI=y
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 1/3] ARM: configs: multi_v7: enable PL35x NAND controller
@ 2021-06-16 15:54   ` Michael Walle
  0 siblings, 0 replies; 12+ messages in thread
From: Michael Walle @ 2021-06-16 15:54 UTC (permalink / raw)
  To: devicetree, linux-arm-kernel, linux-kernel
  Cc: Rob Herring, Michal Simek, Russell King, Arnd Bergmann, Michael Walle

After years, linux finally got a driver for the PL35x NAND controller
found on the Xilinx Zynq-7000 SoC for example. Enable support for this
driver.

Signed-off-by: Michael Walle <michael@walle.cc>
---
 arch/arm/configs/multi_v7_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig
index 52a0400fdd92..8d5ec5986b42 100644
--- a/arch/arm/configs/multi_v7_defconfig
+++ b/arch/arm/configs/multi_v7_defconfig
@@ -215,6 +215,7 @@ CONFIG_MTD_NAND_GPMI_NAND=y
 CONFIG_MTD_NAND_VF610_NFC=y
 CONFIG_MTD_NAND_DAVINCI=y
 CONFIG_MTD_NAND_STM32_FMC2=y
+CONFIG_MTD_NAND_PL35X=y
 CONFIG_MTD_SPI_NOR=y
 CONFIG_SPI_ASPEED_SMC=m
 CONFIG_MTD_UBI=y
-- 
2.20.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 2/3] ARM: dts: zynq: add NAND flash controller node
  2021-06-16 15:54 ` Michael Walle
@ 2021-06-16 15:54   ` Michael Walle
  -1 siblings, 0 replies; 12+ messages in thread
From: Michael Walle @ 2021-06-16 15:54 UTC (permalink / raw)
  To: devicetree, linux-arm-kernel, linux-kernel
  Cc: Rob Herring, Michal Simek, Russell King, Arnd Bergmann, Michael Walle

Recently, a driver for the ARM Primecell PL35x static memory controller
(including NAND controller) was added in linux. Add the corresponding
device tree node.

Signed-off-by: Michael Walle <michael@walle.cc>
---
 arch/arm/boot/dts/zynq-7000.dtsi | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/arch/arm/boot/dts/zynq-7000.dtsi b/arch/arm/boot/dts/zynq-7000.dtsi
index df9ad831cf05..47c2a4b14c06 100644
--- a/arch/arm/boot/dts/zynq-7000.dtsi
+++ b/arch/arm/boot/dts/zynq-7000.dtsi
@@ -252,6 +252,27 @@
 			#size-cells = <0>;
 		};
 
+		smcc: memory-controller@e000e000 {
+			compatible = "arm,pl353-smc-r2p1", "arm,primecell";
+			reg = <0xe000e000 0x0001000>;
+			status = "disabled";
+			clock-names = "memclk", "apb_pclk";
+			clocks = <&clkc 11>, <&clkc 44>;
+			ranges = <0x0 0x0 0xe1000000 0x1000000 /* Nand CS region */
+				  0x1 0x0 0xe2000000 0x2000000 /* SRAM/NOR CS0 region */
+				  0x2 0x0 0xe4000000 0x2000000>; /* SRAM/NOR CS1 region */
+			#address-cells = <2>;
+			#size-cells = <1>;
+
+			nfc0: nand-controller@0,0 {
+				compatible = "arm,pl353-nand-r2p1";
+				reg = <0 0 0x1000000>;
+				status = "disabled";
+				#address-cells = <1>;
+				#size-cells = <0>;
+			};
+		};
+
 		sdhci0: mmc@e0100000 {
 			compatible = "arasan,sdhci-8.9a";
 			status = "disabled";
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 2/3] ARM: dts: zynq: add NAND flash controller node
@ 2021-06-16 15:54   ` Michael Walle
  0 siblings, 0 replies; 12+ messages in thread
From: Michael Walle @ 2021-06-16 15:54 UTC (permalink / raw)
  To: devicetree, linux-arm-kernel, linux-kernel
  Cc: Rob Herring, Michal Simek, Russell King, Arnd Bergmann, Michael Walle

Recently, a driver for the ARM Primecell PL35x static memory controller
(including NAND controller) was added in linux. Add the corresponding
device tree node.

Signed-off-by: Michael Walle <michael@walle.cc>
---
 arch/arm/boot/dts/zynq-7000.dtsi | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/arch/arm/boot/dts/zynq-7000.dtsi b/arch/arm/boot/dts/zynq-7000.dtsi
index df9ad831cf05..47c2a4b14c06 100644
--- a/arch/arm/boot/dts/zynq-7000.dtsi
+++ b/arch/arm/boot/dts/zynq-7000.dtsi
@@ -252,6 +252,27 @@
 			#size-cells = <0>;
 		};
 
+		smcc: memory-controller@e000e000 {
+			compatible = "arm,pl353-smc-r2p1", "arm,primecell";
+			reg = <0xe000e000 0x0001000>;
+			status = "disabled";
+			clock-names = "memclk", "apb_pclk";
+			clocks = <&clkc 11>, <&clkc 44>;
+			ranges = <0x0 0x0 0xe1000000 0x1000000 /* Nand CS region */
+				  0x1 0x0 0xe2000000 0x2000000 /* SRAM/NOR CS0 region */
+				  0x2 0x0 0xe4000000 0x2000000>; /* SRAM/NOR CS1 region */
+			#address-cells = <2>;
+			#size-cells = <1>;
+
+			nfc0: nand-controller@0,0 {
+				compatible = "arm,pl353-nand-r2p1";
+				reg = <0 0 0x1000000>;
+				status = "disabled";
+				#address-cells = <1>;
+				#size-cells = <0>;
+			};
+		};
+
 		sdhci0: mmc@e0100000 {
 			compatible = "arasan,sdhci-8.9a";
 			status = "disabled";
-- 
2.20.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 3/3] ARM: dts: ebaz4205: enable NAND support
  2021-06-16 15:54 ` Michael Walle
@ 2021-06-16 15:54   ` Michael Walle
  -1 siblings, 0 replies; 12+ messages in thread
From: Michael Walle @ 2021-06-16 15:54 UTC (permalink / raw)
  To: devicetree, linux-arm-kernel, linux-kernel
  Cc: Rob Herring, Michal Simek, Russell King, Arnd Bergmann, Michael Walle

The board features a 128MiB NAND chip and recently linux gained support
for the NAND controller on the Zynq SoC. Thus add the corresponding
devicetree nodes.

Signed-off-by: Michael Walle <michael@walle.cc>
---
 arch/arm/boot/dts/zynq-ebaz4205.dts | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/arch/arm/boot/dts/zynq-ebaz4205.dts b/arch/arm/boot/dts/zynq-ebaz4205.dts
index b0b836aedd76..53fa6dbfd8fd 100644
--- a/arch/arm/boot/dts/zynq-ebaz4205.dts
+++ b/arch/arm/boot/dts/zynq-ebaz4205.dts
@@ -48,6 +48,14 @@
 	pinctrl-0 = <&pinctrl_gpio0_default>;
 };
 
+&nfc0 {
+	status = "okay";
+
+	nand@0 {
+		reg = <0>;
+	};
+};
+
 &pinctrl0 {
 	pinctrl_gpio0_default: gpio0-default {
 		mux {
@@ -118,6 +126,10 @@
 	};
 };
 
+&smcc {
+	status = "okay";
+};
+
 &sdhci0 {
 	status = "okay";
 	disable-wp;
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 3/3] ARM: dts: ebaz4205: enable NAND support
@ 2021-06-16 15:54   ` Michael Walle
  0 siblings, 0 replies; 12+ messages in thread
From: Michael Walle @ 2021-06-16 15:54 UTC (permalink / raw)
  To: devicetree, linux-arm-kernel, linux-kernel
  Cc: Rob Herring, Michal Simek, Russell King, Arnd Bergmann, Michael Walle

The board features a 128MiB NAND chip and recently linux gained support
for the NAND controller on the Zynq SoC. Thus add the corresponding
devicetree nodes.

Signed-off-by: Michael Walle <michael@walle.cc>
---
 arch/arm/boot/dts/zynq-ebaz4205.dts | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/arch/arm/boot/dts/zynq-ebaz4205.dts b/arch/arm/boot/dts/zynq-ebaz4205.dts
index b0b836aedd76..53fa6dbfd8fd 100644
--- a/arch/arm/boot/dts/zynq-ebaz4205.dts
+++ b/arch/arm/boot/dts/zynq-ebaz4205.dts
@@ -48,6 +48,14 @@
 	pinctrl-0 = <&pinctrl_gpio0_default>;
 };
 
+&nfc0 {
+	status = "okay";
+
+	nand@0 {
+		reg = <0>;
+	};
+};
+
 &pinctrl0 {
 	pinctrl_gpio0_default: gpio0-default {
 		mux {
@@ -118,6 +126,10 @@
 	};
 };
 
+&smcc {
+	status = "okay";
+};
+
 &sdhci0 {
 	status = "okay";
 	disable-wp;
-- 
2.20.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [PATCH 0/3] ARM: add NAND support to Ebang EBAZ4205 board
  2021-06-16 15:54 ` Michael Walle
@ 2021-06-16 15:58   ` Michael Walle
  -1 siblings, 0 replies; 12+ messages in thread
From: Michael Walle @ 2021-06-16 15:58 UTC (permalink / raw)
  To: devicetree, linux-arm-kernel, linux-kernel
  Cc: Rob Herring, Michal Simek, Russell King, Arnd Bergmann

Am 2021-06-16 17:54, schrieb Michael Walle:
> Thanks to Miguel,

Sorry for the typo, its Miquel!

-michael

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH 0/3] ARM: add NAND support to Ebang EBAZ4205 board
@ 2021-06-16 15:58   ` Michael Walle
  0 siblings, 0 replies; 12+ messages in thread
From: Michael Walle @ 2021-06-16 15:58 UTC (permalink / raw)
  To: devicetree, linux-arm-kernel, linux-kernel
  Cc: Rob Herring, Michal Simek, Russell King, Arnd Bergmann

Am 2021-06-16 17:54, schrieb Michael Walle:
> Thanks to Miguel,

Sorry for the typo, its Miquel!

-michael

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH 0/3] ARM: add NAND support to Ebang EBAZ4205 board
  2021-06-16 15:54 ` Michael Walle
@ 2021-06-21 11:00   ` Michal Simek
  -1 siblings, 0 replies; 12+ messages in thread
From: Michal Simek @ 2021-06-21 11:00 UTC (permalink / raw)
  To: Michael Walle, devicetree, linux-arm-kernel, linux-kernel
  Cc: Rob Herring, Michal Simek, Russell King, Arnd Bergmann



On 6/16/21 5:54 PM, Michael Walle wrote:
> Thanks to Miguel, there is finally a NAND driver for this SoC and we can
> now support the NAND device on the EBAZ4205.
> 
> Btw. I'm not sure how often the PL35x NAND controller is used in SoC and
> if it qualifies to add it to the multi_v7 defconfig.
> 
> Michael Walle (3):
>   ARM: configs: multi_v7: enable PL35x NAND controller
>   ARM: dts: zynq: add NAND flash controller node
>   ARM: dts: ebaz4205: enable NAND support
> 
>  arch/arm/boot/dts/zynq-7000.dtsi    | 21 +++++++++++++++++++++
>  arch/arm/boot/dts/zynq-ebaz4205.dts | 12 ++++++++++++
>  arch/arm/configs/multi_v7_defconfig |  1 +
>  3 files changed, 34 insertions(+)
> 

Queue.

Thanks,
Michal

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH 0/3] ARM: add NAND support to Ebang EBAZ4205 board
@ 2021-06-21 11:00   ` Michal Simek
  0 siblings, 0 replies; 12+ messages in thread
From: Michal Simek @ 2021-06-21 11:00 UTC (permalink / raw)
  To: Michael Walle, devicetree, linux-arm-kernel, linux-kernel
  Cc: Rob Herring, Michal Simek, Russell King, Arnd Bergmann



On 6/16/21 5:54 PM, Michael Walle wrote:
> Thanks to Miguel, there is finally a NAND driver for this SoC and we can
> now support the NAND device on the EBAZ4205.
> 
> Btw. I'm not sure how often the PL35x NAND controller is used in SoC and
> if it qualifies to add it to the multi_v7 defconfig.
> 
> Michael Walle (3):
>   ARM: configs: multi_v7: enable PL35x NAND controller
>   ARM: dts: zynq: add NAND flash controller node
>   ARM: dts: ebaz4205: enable NAND support
> 
>  arch/arm/boot/dts/zynq-7000.dtsi    | 21 +++++++++++++++++++++
>  arch/arm/boot/dts/zynq-ebaz4205.dts | 12 ++++++++++++
>  arch/arm/configs/multi_v7_defconfig |  1 +
>  3 files changed, 34 insertions(+)
> 

Queue.

Thanks,
Michal

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-06-21 11:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-16 15:54 [PATCH 0/3] ARM: add NAND support to Ebang EBAZ4205 board Michael Walle
2021-06-16 15:54 ` Michael Walle
2021-06-16 15:54 ` [PATCH 1/3] ARM: configs: multi_v7: enable PL35x NAND controller Michael Walle
2021-06-16 15:54   ` Michael Walle
2021-06-16 15:54 ` [PATCH 2/3] ARM: dts: zynq: add NAND flash controller node Michael Walle
2021-06-16 15:54   ` Michael Walle
2021-06-16 15:54 ` [PATCH 3/3] ARM: dts: ebaz4205: enable NAND support Michael Walle
2021-06-16 15:54   ` Michael Walle
2021-06-16 15:58 ` [PATCH 0/3] ARM: add NAND support to Ebang EBAZ4205 board Michael Walle
2021-06-16 15:58   ` Michael Walle
2021-06-21 11:00 ` Michal Simek
2021-06-21 11:00   ` Michal Simek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.