ath79: use the new DT fixed partitions syntax
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar7241_ubnt-xm.dtsi
index c9ad0413dc05aa2fca7f39c5db20da7a06d7922f..ac0a79dc9dff7edbcf8e373419c63347f0fee3f9 100644 (file)
@@ -1,4 +1,4 @@
-// SPDX-License-Identifier: GPL-2.0
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
                reg = <0>;
                spi-max-frequency = <25000000>;
 
-               partition@0 {
-                       label = "u-boot";
-                       reg = <0x000000 0x040000>;
-               };
-
-               partition@1 {
-                       label = "u-boot-env";
-                       reg = <0x040000 0x010000>;
-               };
-
-               partition@2 {
-                       label = "firmware";
-                       reg = <0x050000 0x750000>;
-               };
-
-               partition@3 {
-                       label = "board_config";
-                       reg = <0x7a0000 0x010000>;
-                       read-only;
-               };
-
-               partition@4 {
-                       label = "cfg";
-                       reg = <0x7b0000 0x040000>;
-                       read-only;
-               };
-
-               art: partition@5 {
-                       label = "art";
-                       reg = <0x7f0000 0x010000>;
-                       read-only;
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 {
+                               label = "u-boot";
+                               reg = <0x000000 0x040000>;
+                       };
+
+                       partition@1 {
+                               label = "u-boot-env";
+                               reg = <0x040000 0x010000>;
+                       };
+
+                       partition@2 {
+                               label = "firmware";
+                               reg = <0x050000 0x750000>;
+                       };
+
+                       partition@3 {
+                               label = "board_config";
+                               reg = <0x7a0000 0x010000>;
+                               read-only;
+                       };
+
+                       partition@4 {
+                               label = "cfg";
+                               reg = <0x7b0000 0x040000>;
+                               read-only;
+                       };
+
+                       art: partition@5 {
+                               label = "art";
+                               reg = <0x7f0000 0x010000>;
+                               read-only;
+                       };
                };
        };
 };