[openwrt/openwrt] bcm63xx: AD1018-nor: add NAND flash
LEDE Commits
lede-commits at lists.infradead.org
Mon Mar 8 11:46:56 GMT 2021
noltari pushed a commit to openwrt/openwrt.git, branch openwrt-21.02:
https://git.openwrt.org/3b6c93298cafcdada8a2b320e342b0125ae581d4
commit 3b6c93298cafcdada8a2b320e342b0125ae581d4
Author: Daniel González Cabanelas <dgcbueu at gmail.com>
AuthorDate: Sat Mar 6 19:59:19 2021 +0100
bcm63xx: AD1018-nor: add NAND flash
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 at gmail.com>
(cherry-picked from commit a48ef37747)
---
.../bcm63xx/dts/bcm6328-sercomm-ad1018-nor.dts | 24 ++++++++++++++++++++++
1 file changed, 24 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..5a9f52648e 100644
--- a/target/linux/bcm63xx/dts/bcm6328-sercomm-ad1018-nor.dts
+++ b/target/linux/bcm63xx/dts/bcm6328-sercomm-ad1018-nor.dts
@@ -146,6 +146,30 @@
};
};
+&nflash {
+ status = "okay";
+
+ nandcs at 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 at 0 {
+ label = "storage";
+ reg = <0 0>; /* autodetected size */
+ };
+ };
+ };
+};
+
&uart0 {
status = "okay";
};
More information about the lede-commits
mailing list