bcm63xx: dgnd3700-v1: add NAND support
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Thu, 21 May 2020 07:01:45 +0000 (09:01 +0200)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Thu, 21 May 2020 17:11:24 +0000 (19:11 +0200)
NAND is used as extra storage on this device.

Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com>
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
target/linux/bcm63xx/dts/bcm6368-netgear-dgnd3700-v1.dts

index 0c88d56c862049a1d9a0335d7b08b6b9470a19e5..546b0b1f6060217877251da0afbe97eb008c8ef8 100644 (file)
        };
 };
 
+&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 = <0x0000000 0x8000000>;
+                       };
+               };
+       };
+};
+
 &uart0 {
        status = "okay";
 };