aboutsummaryrefslogtreecommitdiff
path: root/target/linux/apm821xx/dts/meraki-mr24.dts
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@gmail.com>2022-01-16 20:13:24 +0100
committerChristian Lamparter <chunkeey@gmail.com>2022-02-04 21:15:17 +0100
commitf095822699cc397f86d2c24616aaaa7f814dc8d9 (patch)
tree3e4cf09d09fc733e98ef264c8ba097187353ad12 /target/linux/apm821xx/dts/meraki-mr24.dts
parent1085c4b4a72a5277a611cc4a8ac2e5742da127fc (diff)
apm821xx: convert legacy nand partition layout
in order to get nvmem-cells to work on AP and routers (Netgears WNDR4700). The nvmem-cell needs to be within a fixed-partition dt-node. Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Diffstat (limited to 'target/linux/apm821xx/dts/meraki-mr24.dts')
-rw-r--r--target/linux/apm821xx/dts/meraki-mr24.dts24
1 files changed, 14 insertions, 10 deletions
diff --git a/target/linux/apm821xx/dts/meraki-mr24.dts b/target/linux/apm821xx/dts/meraki-mr24.dts
index a876e77511..4b43c683e1 100644
--- a/target/linux/apm821xx/dts/meraki-mr24.dts
+++ b/target/linux/apm821xx/dts/meraki-mr24.dts
@@ -38,13 +38,17 @@
status = "okay";
};
-&EBC0 {
+&ndfc {
/* Ikarem has 32MB of NAND */
- ndfc@1,0 {
- status = "okay";
- /* 32 MiB NAND Flash */
- nand {
- nand-is-boot-medium;
+ status = "okay";
+
+ nand {
+ nand-is-boot-medium;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
partition@0 {
label = "u-boot";
@@ -59,10 +63,10 @@
* blocks (64KiB) in order to have spares
* around for bad block management
*/
- label = "u-boot-env";
- reg = <0x00150000 0x00010000>;
- read-only;
- };
+ label = "u-boot-env";
+ reg = <0x00150000 0x00010000>;
+ read-only;
+ };
partition@160000 {
/*