ramips: fix pci/pcie related dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / WR1200JS.dts
index 2169e74e23db17ecc23b9f190821078f28a8f3d5..c1aca688bf95022519f2ca3a63c70e792a628d0b 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "youhua,wr1200js", "mediatek,mt7621-soc";
        model = "YouHua WR1200JS";
 
+       aliases {
+               led-status = &led_wps;
+       };
+
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x8000000>;
@@ -26,7 +30,7 @@
                        gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
                };
 
-               wps {
+               led_wps: wps {
                        label = "wr1200js:blue:wps";
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
 &pcie {
        status = "okay";
+};
 
-       pcie0 {
-               mt76@0,0 {
-                       reg = <0x0000 0 0 0 0>;
-                       device_type = "pci";
-                       mediatek,mtd-eeprom = <&factory 0x0000>;
-               };
+&pcie0 {
+       mt76@0,0 {
+               reg = <0x0000 0 0 0 0>;
+               mediatek,mtd-eeprom = <&factory 0x0000>;
        };
+};
+
+&pcie1 {
+       mt76@0,0 {
+               reg = <0x0000 0 0 0 0>;
+               mediatek,mtd-eeprom = <&factory 0x8000>;
+               ieee80211-freq-limit = <5000000 6000000>;
 
-       pcie1 {
-               mt76@1,0 {
-                       reg = <0x0000 0 0 0 0>;
-                       device_type = "pci";
-                       mediatek,mtd-eeprom = <&factory 0x8000>;
-                       ieee80211-freq-limit = <5000000 6000000>;
-
-                       led {
-                               led-sources = <2>;
-                               led-active-low;
-                       };
+               led {
+                       led-sources = <2>;
+                       led-active-low;
                };
        };
 };