2021-06-16 22:49:46

by Michael Walle

[permalink] [raw]
Subject: [PATCH 0/3] ARM: add NAND support to Ebang EBAZ4205 board

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


2021-06-16 22:49:48

by Michael Walle

[permalink] [raw]
Subject: [PATCH 1/3] ARM: configs: multi_v7: enable PL35x NAND controller

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 <[email protected]>
---
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

2021-06-16 22:49:49

by Michael Walle

[permalink] [raw]
Subject: [PATCH 3/3] ARM: dts: ebaz4205: enable NAND support

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 <[email protected]>
---
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

2021-06-16 22:50:01

by Michael Walle

[permalink] [raw]
Subject: Re: [PATCH 0/3] ARM: add NAND support to Ebang EBAZ4205 board

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

Sorry for the typo, its Miquel!

-michael

2021-06-21 11:04:14

by Michal Simek

[permalink] [raw]
Subject: Re: [PATCH 0/3] ARM: add NAND support to Ebang EBAZ4205 board



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