ramips: Use dts alias based status led
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / kng_rc.dts
index 7cd4de3fb2547c4cea6ed487775b6d6f1f12529b..1af2694e04ebd70c2771c821873224d8b084b731 100644 (file)
@@ -6,8 +6,13 @@
 #include <dt-bindings/input/input.h>
 
 / {
+       compatible = "zyxel,keenetic-viva", "ralink,mt7620a-soc";
        model = "ZyXEL Keenetic Viva";
 
+       aliases {
+               led-status = &led_power_green;
+       };
+
        gpio-leds {
                compatible = "gpio-leds";
 
@@ -31,7 +36,7 @@
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
-               power {
+               led_power_green: power {
                        label = "kng_rc:green:power";
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
@@ -77,7 +82,7 @@
                compatible = "realtek,rtl8367b";
                cpu_port = <7>;
                realtek,extif2 = <1 0 1 1 1 1 1 1 2>;
-               mdio = <&mdio0>;
+               mii-bus = <&mdio0>;
        };
 };