The Sercomm AD1018 has a NAND flash. We recently added support for
NANDs in this target target.

Use the internal NAND as additional storage.

Signed-off-by: Daniel González Cabanelas <dgcb...@gmail.com>
---
 .../dts/bcm6328-sercomm-ad1018-nor.dts        | 26 +++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/target/linux/bcm63xx/dts/bcm6328-sercomm-ad1018-nor.dts 
b/target/linux/bcm63xx/dts/bcm6328-sercomm-ad1018-nor.dts
index 83f7578b06..341f72c193 100644
--- a/target/linux/bcm63xx/dts/bcm6328-sercomm-ad1018-nor.dts
+++ b/target/linux/bcm63xx/dts/bcm6328-sercomm-ad1018-nor.dts
@@ -146,6 +146,32 @@
        };
 };
 
+&nflash {
+       status = "okay";
+
+       nandcs@0 {
+               compatible = "brcm,nandcs";
+               #size-cells = <1>;
+               #address-cells = <1>;
+               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";
 };
-- 
2.30.1





_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to