ramips: Use dts alias based status led
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / WL-351.dts
index e620f10d84c1caeb480ff2bcad9bb57c54abd38e..59ef573f042c811bd5c35c3f6a9292057986001f 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "sitecom,wl-351", "ralink,rt3052-soc";
        model = "Sitecom WL-351 v1 002";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
@@ -44,7 +48,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "wl-351:amber:power";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
                        ralink,group = "spi", "i2c", "jtag", "mdio", "uartf";
                        ralink,function = "gpio";
                };
-               rgmii {
-                       ralink,group = "rgmii";
-                       ralink,function = "rgmii";
-               };
        };
 };
 
 &ethernet {
        mtd-mac-address = <&factory 0x4>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&rgmii_pins>;
 };
 
 &esw {