ARM: zynq: Describe nand device in DT
authorMichal Simek <michal.simek@amd.com>
Fri, 22 Sep 2023 10:35:42 +0000 (12:35 +0200)
committerMichal Simek <michal.simek@amd.com>
Mon, 9 Oct 2023 08:25:32 +0000 (10:25 +0200)
Linux requires to describe nand structure under nand controller.
If it is not described nand device is not detected by Linux.

Error shown by Linux kernel:
pl35x-nand-controller e1000000.nand-controller: Incorrect number of NAND chips (0)
pl35x-nand-controller: probe of e1000000.nand-controller failed with error -22

When wired:
nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
nand: Micron MT29F2G08ABAEAWP
nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64

Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/3fcd68ccdfed5e6c079681e3b29e06583ec8a375.1695378830.git.michal.simek@amd.com
arch/arm/dts/bitmain-antminer-s9.dts
arch/arm/dts/zynq-zc770-xm011.dts

index 6c47396..0228b4b 100644 (file)
@@ -52,6 +52,9 @@
 
 &nfc0 {
        status = "okay";
+       nand@0 {
+               reg = <0>;
+       };
 };
 
 &smcc {
index 0221434..d1e9712 100644 (file)
@@ -49,6 +49,9 @@
 
 &nfc0 {
        status = "okay";
+       nand@0 {
+               reg = <0>;
+       };
 };
 
 &smcc {