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/F5D8235_V2.dts | 46 ++++++++++++++++++---------------- 1 file changed, 25 insertions(+), 21 deletions(-) (limited to 'target/linux/ramips/dts/F5D8235_V2.dts') diff --git a/target/linux/ramips/dts/F5D8235_V2.dts b/target/linux/ramips/dts/F5D8235_V2.dts index 6d4ed1d8cf..f075dff496 100644 --- a/target/linux/ramips/dts/F5D8235_V2.dts +++ b/target/linux/ramips/dts/F5D8235_V2.dts @@ -18,28 +18,32 @@ reg = <0x1f000000 0x800000>; bank-width = <2>; device-width = <2>; - #address-cells = <1>; - #size-cells = <1>; - uboot: partition@0 { - label = "uboot"; - reg = <0x0 0x50000>; - read-only; - }; - - partition@50000 { - label = "firmware"; - reg = <0x50000 0x790000>; - }; - - partition@7e0000 { - label = "nvram"; - reg = <0x7e0000 0x10000>; - }; - - factory: partition@7f0000 { - label = "factory"; - reg = <0x7f0000 0x10000>; + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + uboot: partition@0 { + label = "uboot"; + reg = <0x0 0x50000>; + read-only; + }; + + partition@50000 { + label = "firmware"; + reg = <0x50000 0x790000>; + }; + + partition@7e0000 { + label = "nvram"; + reg = <0x7e0000 0x10000>; + }; + + factory: partition@7f0000 { + label = "factory"; + reg = <0x7f0000 0x10000>; + }; }; }; -- cgit v1.2.3