bcm63xx: AD1018-nor: add NAND flash
authorDaniel González Cabanelas <dgcbueu@gmail.com>
Sat, 6 Mar 2021 18:59:19 +0000 (19:59 +0100)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Mon, 8 Mar 2021 11:46:46 +0000 (12:46 +0100)
The Sercomm AD1018 has a NAND flash. We recently added support for NANDs
in this target.

Use the internal NAND as additional storage.

Signed-off-by: Daniel González Cabanelas <dgcbueu@gmail.com>
(cherry-picked from commit a48ef37747)

target/linux/bcm63xx/dts/bcm6328-sercomm-ad1018-nor.dts

index 83f7578b06960e564f0bad3b8995fed5f74a001a..5a9f52648e295eda93b572a088eeeff002fa450f 100644 (file)
        };
 };
 
+&nflash {
+       status = "okay";
+
+       nandcs@0 {
+               compatible = "brcm,nandcs";
+               reg = <0>;
+               nand-ecc-step-size = <512>;
+               nand-ecc-strength = <15>;
+               nand-on-flash-bbt;
+               brcm,nand-oob-sector-size = <64>;
+
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 {
+                               label = "storage";
+                               reg = <0 0>; /* autodetected size */
+                       };
+               };
+       };
+};
+
 &uart0 {
        status = "okay";
 };