ramips: specify "firmware" partition format
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / RE350.dts
index 2f3bb1245cf9e79d590c485ea047f606b2416496..38218b6c9742c29e91803b3bc39c2548ea7141c4 100644 (file)
@@ -9,6 +9,13 @@
        compatible = "tplink,re350-v1", "mediatek,mt7621-soc";
        model = "TP-LINK RE350 v1";
 
+       aliases {
+               led-boot = &led_power;
+               led-failsafe = &led_power;
+               led-running = &led_power;
+               led-upgrade = &led_power;
+       };
+
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x4000000>;
@@ -21,7 +28,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "re350-v1:blue:power";
                        gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
                };
@@ -59,8 +66,6 @@
 
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <20>;
 
                led {
        status = "okay";
 
        w25q64@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <10000000>;
                m25p,chunked-io = <32>;
 
-               partition@0 {
-                       label = "u-boot";
-                       reg = <0x0 0x20000>;
-                       read-only;
-               };
-
-               partition@20000 {
-                       label = "firmware";
-                       reg = <0x20000 0x5e0000>;
-               };
-
-               config: partition@600000 {
-                       label = "config";
-                       reg = <0x600000 0x50000>;
-                       read-only;
-               };
-
-               radio: partition@7f0000 {
-                       label = "radio";
-                       reg = <0x7f0000 0x10000>;
-                       read-only;
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 {
+                               label = "u-boot";
+                               reg = <0x0 0x20000>;
+                               read-only;
+                       };
+
+                       partition@20000 {
+                               compatible = "tplink,firmware";
+                               label = "firmware";
+                               reg = <0x20000 0x5e0000>;
+                       };
+
+                       config: partition@600000 {
+                               label = "config";
+                               reg = <0x600000 0x50000>;
+                               read-only;
+                       };
+
+                       radio: partition@7f0000 {
+                               label = "radio";
+                               reg = <0x7f0000 0x10000>;
+                               read-only;
+                       };
                };
        };
 };
 
 &pcie {
        status = "okay";
+};
 
-       pcie0 {
-               mt76@0,0 {
-                       reg = <0x0000 0 0 0 0>;
-                       device_type = "pci";
-                       mediatek,mtd-eeprom = <&radio 0>;
-                       mtd-mac-address = <&config 0x10008>;
-                       mtd-mac-address-increment = <1>;
-               };
+&pcie0 {
+       mt76@0,0 {
+               reg = <0x0000 0 0 0 0>;
+               mediatek,mtd-eeprom = <&radio 0>;
+               mtd-mac-address = <&config 0x10008>;
+               mtd-mac-address-increment = <1>;
        };
+};
 
-       pcie1 {
-               mt76@1,0 {
-                       reg = <0x0000 0 0 0 0>;
-                       device_type = "pci";
-                       mediatek,mtd-eeprom = <&radio 0x8000>;
-                       ieee80211-freq-limit = <5000000 6000000>;
-                       mtd-mac-address = <&config 0x10008>;
-                       mtd-mac-address-increment = <2>;
-               };
+&pcie1 {
+       mt76@0,0 {
+               reg = <0x0000 0 0 0 0>;
+               mediatek,mtd-eeprom = <&radio 0x8000>;
+               ieee80211-freq-limit = <5000000 6000000>;
+               mtd-mac-address = <&config 0x10008>;
+               mtd-mac-address-increment = <2>;
        };
 };