ath79: use the new DT fixed partitions syntax
[oweals/openwrt.git] / target / linux / ath79 / dts / ar9330_gl_ar150.dts
index a27956d9a4bb26f22fa182a8e0c35c86d7a8835e..97beab149086f3cb7d42bb187c18b49a5e7c7c40 100644 (file)
@@ -1,4 +1,4 @@
-// SPDX-License-Identifier: GPL-2.0
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 /dts-v1/;
 
 #include <dt-bindings/gpio/gpio.h>
                spi-max-frequency = <104000000>;
                reg = <0>;
 
-               partition@0 {
-                       label = "u-boot";
-                       reg = <0x000000 0x040000>;
-                       read-only;
-               };
-
-               partition@1 {
-                       label = "u-boot-env";
-                       reg = <0x040000 0x010000>;
-               };
-
-               partition@2 {
-                       label = "firmware";
-                       reg = <0x050000 0xfa0000>;
-               };
-
-               art: partition@3 {
-                       label = "ART";
-                       reg = <0xff0000 0x010000>;
-                       read-only;
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 {
+                               label = "u-boot";
+                               reg = <0x000000 0x040000>;
+                               read-only;
+                       };
+
+                       partition@1 {
+                               label = "u-boot-env";
+                               reg = <0x040000 0x010000>;
+                       };
+
+                       partition@2 {
+                               label = "firmware";
+                               reg = <0x050000 0xfa0000>;
+                       };
+
+                       art: partition@3 {
+                               label = "ART";
+                               reg = <0xff0000 0x010000>;
+                               read-only;
+                       };
                };
        };
 };