From f095822699cc397f86d2c24616aaaa7f814dc8d9 Mon Sep 17 00:00:00 2001 From: Christian Lamparter Date: Sun, 16 Jan 2022 20:13:24 +0100 Subject: 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 --- target/linux/apm821xx/dts/meraki-mr24.dts | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'target/linux/apm821xx/dts/meraki-mr24.dts') 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 { /* -- cgit v1.2.3