From 6031ab345df86c285ea55d6523d6888cc596f63d Mon Sep 17 00:00:00 2001 From: Alex Maclean Date: Wed, 1 Aug 2018 21:32:34 +0100 Subject: ramips: move partitions into partition table node Starting with kernel 4.4, the use of partitions as direct subnodes of the mtd device is discouraged and only supported for backward compatiblity reasons. Signed-off-by: Alex Maclean --- target/linux/ramips/dts/NA930.dts | 50 +++++++++++++++++++++------------------ 1 file changed, 27 insertions(+), 23 deletions(-) (limited to 'target/linux/ramips/dts/NA930.dts') diff --git a/target/linux/ramips/dts/NA930.dts b/target/linux/ramips/dts/NA930.dts index f6020d63a4..fadb484f39 100644 --- a/target/linux/ramips/dts/NA930.dts +++ b/target/linux/ramips/dts/NA930.dts @@ -18,31 +18,35 @@ }; nand { - #address-cells = <1>; - #size-cells = <1>; compatible = "mtk,mt7620-nand"; - partition@0 { - label = "u-boot"; - reg = <0x0 0x20000>; - read-only; - }; - - partition@200000 { - label = "factory"; - reg = <0x200000 0x40000>; - read-only; - }; - - partition@240000 { - label = "Config"; - reg = <0x240000 0x400000>; - read-only; - }; - - partition@640000 { - label = "firmware"; - reg = <0x640000 0x1400000>; + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x20000>; + read-only; + }; + + partition@200000 { + label = "factory"; + reg = <0x200000 0x40000>; + read-only; + }; + + partition@240000 { + label = "Config"; + reg = <0x240000 0x400000>; + read-only; + }; + + partition@640000 { + label = "firmware"; + reg = <0x640000 0x1400000>; + }; }; }; -- cgit v1.2.3