ramips: Use dts alias based status led
[openwrt/openwrt.git] / target / linux / ramips / dts / RB750Gr3.dts
index 756010a550f2e52dd359243275f593118bc089b8..563a5372688dcf50998a131c9a399140b5d9155f 100644 (file)
@@ -6,8 +6,13 @@
 #include <dt-bindings/gpio/gpio.h>
 
 / {
+       compatible = "mikrotik,rb750gr3", "mediatek,mt7621-soc";
        model = "MikroTik RB750Gr3";
 
+       aliases {
+               led-status = &led_pwr;
+       };
+
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x10000000>;
@@ -20,7 +25,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               pwr {
+               led_pwr: pwr {
                        label = "rb750gr3:blue:pwr";
                        gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
                };