ramips: fix Linkit smart 7688 support
Use a more appropriate compatible string. Fix the wireless led GPIO and add the default wireless trigger. Use the wireless LED for boot state indication as well. Remove the GPIO pinmux for pins not exposed on the board. Signed-off-by: Mathias Kresin <dev@kresin.me>
This commit is contained in:
parent
39e9bfb181
commit
c7776d4c55
@ -245,6 +245,9 @@ kng_rc)
|
|||||||
set_usb_led "$boardname:green:usb"
|
set_usb_led "$boardname:green:usb"
|
||||||
set_wifi_led "$boardname:green:wifi"
|
set_wifi_led "$boardname:green:wifi"
|
||||||
;;
|
;;
|
||||||
|
linkits7688)
|
||||||
|
ucidef_set_led_wlan "wifi" "wifi" "linkit-smart-7688:orange:wifi" "phy0tpt"
|
||||||
|
;;
|
||||||
m2m)
|
m2m)
|
||||||
set_wifi_led "$boardname:blue:wifi"
|
set_wifi_led "$boardname:blue:wifi"
|
||||||
ucidef_set_led_netdev "eth" "Ethernet" "$boardname:green:wan" "eth0"
|
ucidef_set_led_netdev "eth" "Ethernet" "$boardname:green:wan" "eth0"
|
||||||
|
@ -175,7 +175,7 @@ get_status_led() {
|
|||||||
status_led="$boardname:blue:status"
|
status_led="$boardname:blue:status"
|
||||||
;;
|
;;
|
||||||
linkits7688)
|
linkits7688)
|
||||||
[ "$1" = "upgrade" ] && status_led="mediatek:orange:wifi"
|
status_led="linkit-smart-7688:orange:wifi"
|
||||||
;;
|
;;
|
||||||
m2m)
|
m2m)
|
||||||
status_led="$boardname:blue:wifi"
|
status_led="$boardname:blue:wifi"
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#include <dt-bindings/input/input.h>
|
#include <dt-bindings/input/input.h>
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
compatible = "mediatek,linkit", "mediatek,mt7628an-soc";
|
compatible = "mediatek,linkit-smart-7688", "mediatek,mt7628an-soc";
|
||||||
model = "MediaTek LinkIt Smart 7688";
|
model = "MediaTek LinkIt Smart 7688";
|
||||||
|
|
||||||
chosen {
|
chosen {
|
||||||
@ -32,9 +32,8 @@
|
|||||||
compatible = "gpio-leds";
|
compatible = "gpio-leds";
|
||||||
|
|
||||||
wifi {
|
wifi {
|
||||||
label = "mediatek:orange:wifi";
|
label = "linkit-smart-7688:orange:wifi";
|
||||||
gpios = <&wgpio 0 GPIO_ACTIVE_HIGH>;
|
gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
|
||||||
default-state = "on";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -50,14 +49,6 @@
|
|||||||
linux,code = <KEY_WPS_BUTTON>;
|
linux,code = <KEY_WPS_BUTTON>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
wgpio: gpio-wifi {
|
|
||||||
compatible = "mediatek,gpio-wifi";
|
|
||||||
#address-cells = <1>;
|
|
||||||
#size-cells = <0>;
|
|
||||||
gpio-controller;
|
|
||||||
#gpio-cells = <2>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
&pinctrl {
|
&pinctrl {
|
||||||
@ -67,11 +58,6 @@
|
|||||||
ralink,function = "gpio";
|
ralink,function = "gpio";
|
||||||
};
|
};
|
||||||
|
|
||||||
perst {
|
|
||||||
ralink,group = "perst";
|
|
||||||
ralink,function = "gpio";
|
|
||||||
};
|
|
||||||
|
|
||||||
refclk {
|
refclk {
|
||||||
ralink,group = "refclk";
|
ralink,group = "refclk";
|
||||||
ralink,function = "gpio";
|
ralink,function = "gpio";
|
||||||
@ -87,14 +73,9 @@
|
|||||||
ralink,function = "gpio";
|
ralink,function = "gpio";
|
||||||
};
|
};
|
||||||
|
|
||||||
wled_kn {
|
|
||||||
ralink,group = "wled_kn";
|
|
||||||
ralink,function = "gpio";
|
|
||||||
};
|
|
||||||
|
|
||||||
wled_an {
|
wled_an {
|
||||||
ralink,group = "wled_an";
|
ralink,group = "wled_an";
|
||||||
ralink,function = "wled_an";
|
ralink,function = "gpio";
|
||||||
};
|
};
|
||||||
|
|
||||||
wdt {
|
wdt {
|
||||||
|
Loading…
Reference in New Issue
Block a user