ramips: Use dts alias based status led
[openwrt/openwrt.git] / target / linux / ramips / dts / Newifi-D2.dts
index e7491150ae5421d4bc2421910cff94f514bd0a8a..10151344c93feec16c7adcdda79b4940456d1388 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "d-team,newifi-d2", "mediatek,mt7621-soc";
        model = "Newifi-D2";
 
+       aliases {
+               led-status = &led_power_blue;
+       };
+
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
@@ -26,7 +30,7 @@
                        gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
                };
 
-               power-blue {
+               led_power_blue: power-blue {
                        label = "newifi-d2:blue:power";
                        gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
                };
 
        pcie0 {
                mt76@0,0 {
+                       reg = <0x0000 0 0 0 0>;
+                       device_type = "pci";
                        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 0x0000>;
                };
        };