ramips: mt7621: fix 5GHz WiFi LED on ZBT WG3526
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / PSG1218A.dts
index c63af5803489c49dff59ff5bd01bf6d611d39611..767070dbb52d16143739bffeb055033140af32fb 100644 (file)
@@ -6,11 +6,19 @@
        compatible = "phicomm,psg1218a", "phicomm,psg1218", "ralink,mt7620a-soc";
        model = "Phicomm PSG1218 rev.A";
 
+       aliases {
+               led-boot = &led_blue;
+               led-failsafe = &led_blue;
+               led-running = &led_blue;
+               led-upgrade = &led_blue;
+       };
+
        gpio-leds {
                compatible = "gpio-leds";
-               blue {
+               led_blue: blue {
                        label = "psg1218a:blue:status";
                        gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
+                       default-state = "on";
                };
 
                yellow {
@@ -20,7 +28,7 @@
 
                red {
                        label = "psg1218a:red:status";
-                               gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
+                       gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
                };
        };
 };
                        ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd";
                        ralink,function = "gpio";
                };
-
-               pa {
-                       ralink,group = "pa";
-                       ralink,function = "pa";
-               };
        };
 };
 
@@ -45,3 +48,8 @@
        mtd-mac-address = <&factory 0x28>;
        mediatek,portmap = "llllw";
 };
+
+&wmac {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pa_pins>;
+};