aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/SKW92A.dts
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2018-11-26 12:34:48 +0100
committerMathias Kresin <dev@kresin.me>2018-11-26 15:54:22 +0100
commit8ec1a66c34d85bdd13754e4171333a763aaf0a00 (patch)
tree2a33da3086bcb5c086af201bb7adec64a2cd92fc /target/linux/ramips/dts/SKW92A.dts
parent533f7673ae08a71269cd1f7728f8e8e1983bbd9c (diff)
downloadupstream-8ec1a66c34d85bdd13754e4171333a763aaf0a00.tar.gz
upstream-8ec1a66c34d85bdd13754e4171333a763aaf0a00.tar.bz2
upstream-8ec1a66c34d85bdd13754e4171333a763aaf0a00.zip
ramips: improve Skylab SKW92A support
Use the generic board detection instead of the target specific one as all recent additions are doing. Add the wireless led according the gpio number from the datasheet. Rename the board part of the leds to match the name used for the compatible string. Finally, do not hijack the wps led for boot status indication longer than necessary. Merge userspace config into existing cases. Include the manufacture Name in the dts model string. Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ramips/dts/SKW92A.dts')
-rw-r--r--target/linux/ramips/dts/SKW92A.dts16
1 files changed, 9 insertions, 7 deletions
diff --git a/target/linux/ramips/dts/SKW92A.dts b/target/linux/ramips/dts/SKW92A.dts
index c43f9e53ea..5aaf3ce161 100644
--- a/target/linux/ramips/dts/SKW92A.dts
+++ b/target/linux/ramips/dts/SKW92A.dts
@@ -8,13 +8,11 @@
/{
compatible = "skylab,skw92a", "mediatek,mt7628an-soc";
- model = "SKW92A";
+ model = "SKYLAB SKW92A";
aliases {
led-boot = &led_power;
led-failsafe = &led_power;
- led-running = &led_power;
- led-upgrade = &led_power;
};
chosen {
@@ -30,9 +28,14 @@
compatible = "gpio-leds";
led_power: wps {
- label = "skw92:green:wps";
+ label = "skw92a:green:wps";
gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
};
+
+ wlan {
+ label = "skw92a:green:wlan";
+ gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
+ };
};
gpio-keys {
@@ -44,14 +47,13 @@
gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
-
};
};
&pinctrl {
state_default: pinctrl0 {
gpio {
- ralink,group = "wdt", "refclk", "gpio";
+ ralink,group = "wdt", "refclk", "wled_an";
ralink,function = "gpio";
};
};
@@ -69,7 +71,7 @@
&spi0 {
status = "okay";
- m25p80@0 {
+ flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <10000000>;