From 4edd4cb2b3a55962a6d3fa4611c7f2bc393eb902 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Mon, 7 May 2018 10:35:51 +0200 Subject: ath79: use the new DT fixed partitions syntax MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This new syntax is slightly better designed & uses "compatible" string. For details see Documentation/devicetree/bindings/mtd/partition.txt . Signed-off-by: Rafał Miłecki --- target/linux/ath79/dts/ar9132_tl_wr1043nd_v1.dts | 34 ++++++++++++++---------- 1 file changed, 20 insertions(+), 14 deletions(-) (limited to 'target/linux/ath79/dts/ar9132_tl_wr1043nd_v1.dts') diff --git a/target/linux/ath79/dts/ar9132_tl_wr1043nd_v1.dts b/target/linux/ath79/dts/ar9132_tl_wr1043nd_v1.dts index 099941258e..0ad865bea6 100644 --- a/target/linux/ath79/dts/ar9132_tl_wr1043nd_v1.dts +++ b/target/linux/ath79/dts/ar9132_tl_wr1043nd_v1.dts @@ -94,20 +94,26 @@ reg = <0>; spi-max-frequency = <25000000>; - partition@0 { - label = "u-boot"; - reg = <0x000000 0x020000>; - }; - - partition@1 { - label = "firmware"; - reg = <0x020000 0x7D0000>; - }; - - partition@2 { - label = "art"; - reg = <0x7F0000 0x010000>; - read-only; + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x000000 0x020000>; + }; + + partition@1 { + label = "firmware"; + reg = <0x020000 0x7D0000>; + }; + + partition@2 { + label = "art"; + reg = <0x7F0000 0x010000>; + read-only; + }; }; }; }; -- cgit v1.2.3