ramips: Xiaomi MIR3G: detect board name from DTS
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / MIR3G.dts
index d9b32c3c49bd2849e5576466d75d43b3288fdfb9..b0b63f8085c73d3b3d2e2e80729faa9ea23d8abf 100644 (file)
        model = "Xiaomi Mi Router 3G";
 
        aliases {
-               led-status = &led_status_blue;
+               led-boot = &led_status_yellow;
+               led-failsafe = &led_status_red;
+               led-running = &led_status_blue;
+               led-upgrade = &led_status_yellow;
        };
 
        memory@0 {
                bootargs = "console=ttyS0,115200n8";
        };
 
-       gpio-leds {
+       leds {
                compatible = "gpio-leds";
 
-               status_red {
+               led_status_red: status_red {
                        label = "mir3g:red:status";
                        gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
                };
@@ -35,7 +38,7 @@
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
-               status_yellow {
+               led_status_yellow: status_yellow {
                        label = "mir3g:yellow:status";
                        gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                };
                        label = "mir3g:amber:lan2";
                        gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
                };
-
        };
 
-       gpio-keys-polled {
+       button {
                compatible = "gpio-keys-polled";
                poll-interval = <20>;
 
@@ -68,7 +70,7 @@
                };
        };
 
-       reg_usb_vbus: reg_usb_vbus {
+       reg_usb_vbus: regulator {
                compatible = "regulator-fixed";
                regulator-name = "usb_vbus";
                regulator-min-microvolt = <5000000>;
@@ -76,7 +78,6 @@
                gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
                enable-active-high;
        };
-
 };
 
 &xhci {