nand: zynq: Sync up with Linux
cover nand: zynq: Sync up with Linux
Hi,
recently PL35x driver was upstreamed and there were some changes in DT binding which should be reflected here too. That's why sending these two patches to update the driver and the way how nand and nor memories are described in DT.
Thanks,
Michal
Michael Walle (1):
ARM: dts: zynq: add NAND flash controller node
Michal Simek (1):
mtd: nand: Update driver to match new DT binding
arch/arm/dts/bitmain-antminer-s9.dts | 2 +- arch/arm/dts/zynq-7000.dtsi | 57 +++++++++++++++------------- arch/arm/dts/zynq-zc770-xm011.dts | 2 +- drivers/mtd/nand/raw/zynq_nand.c | 9 +++-- 4 files changed, 38 insertions(+), 32 deletions(-)
Signature · 1 line
2.35.1
PATCH 1/2 mtd: nand: Update driver to match new DT binding
New binding changed node name from flash@e1000000 to nand-controller@0,0 which should be reflected in the driver. Both names are supported for backward compatibility.
---
drivers/mtd/nand/raw/zynq_nand.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
drivers/mtd/nand/raw/zynq_nand.c +6 -3
@@ -1086,10 +1086,13 @@ static int zynq_nand_probe(struct udevice *dev)int is_16bit_bw; smc->reg = (struct zynq_nand_smc_regs *)dev_read_addr (dev); - of_nand =dev_read_subnode (dev,"flash@e1000000" ); + of_nand =dev_read_subnode (dev,"nand-controller@0,0" );if (!ofnode_valid (of_nand)) { -printf ("Failed to find nand node in dt\n" ); -return -ENODEV ; + of_nand =dev_read_subnode (dev,"flash@e1000000" ); +if (!ofnode_valid (of_nand)) { +printf ("Failed to find nand node in dt\n" ); +return -ENODEV ; + } }if (!ofnode_is_available (of_nand)) {
Signature · 1 line
2.35.1
PATCH 2/2 ARM: dts: zynq: add NAND flash controller node
In reply to Michal SimekFrom: Michael Walle <[email protected]>
Recently, a driver for the ARM Primecell PL35x static memory controller (including NAND controller) was added in linux. Add the corresponding device tree node.
Also update cfi-flash registers and location in DT.
---
arch/arm/dts/bitmain-antminer-s9.dts | 2 +- arch/arm/dts/zynq-7000.dtsi | 57 +++++++++++++++------------- arch/arm/dts/zynq-zc770-xm011.dts | 2 +- 3 files changed, 32 insertions(+), 29 deletions(-)
arch/arm/dts/bitmain-antminer-s9.dts +1 -1
@@ -50,7 +50,7 @@ ps-clk-frequency = <33333333>; }; -&nand0 { +&nfc0 { status = "okay"; };
arch/arm/dts/zynq-7000.dtsi +30 -27
69 lines not on this page · raw message
arch/arm/dts/zynq-zc770-xm011.dts +1 -1
@@ -47,7 +47,7 @@ }; }; -&nand0 { +&nfc0 { status = "okay"; };
Signature · 1 line
2.35.1