ramips: fix pci/pcie related dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / WN-GX300GR.dts
index aa89f055550989c100ee3dbcc80b3a44a199a5ef..5d2daabe9351e97af66c17ef9986a60d4b823979 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "iodata,wn-gx300gr", "mediatek,mt7621-soc";
        model = "I-O DATA WN-GX300GR";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x4000000>;
@@ -21,7 +25,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "wn-gx300gr:green:power";
                        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 0x0>;
-               };
+&pcie0 {
+       mt76@0,0 {
+               reg = <0x0000 0 0 0 0>;
+               mediatek,mtd-eeprom = <&Factory 0x0>;
        };
 };