diff options
author | Mathias Kresin <dev@kresin.me> | 2018-08-18 12:22:25 +0200 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2018-08-29 09:24:49 +0200 |
commit | 56e6ebdea42aab76d6ef54e0296c6bf946956684 (patch) | |
tree | 51b9e02821ba37614b84478e85974d2a39d4e2b7 /target/linux/ramips/dts | |
parent | fe1e90deb4cacbac4841507b9bf2a85eb275a823 (diff) | |
download | upstream-56e6ebdea42aab76d6ef54e0296c6bf946956684.tar.gz upstream-56e6ebdea42aab76d6ef54e0296c6bf946956684.tar.bz2 upstream-56e6ebdea42aab76d6ef54e0296c6bf946956684.zip |
ramips: fix multi colour led handling
All boards either have a multi colour led or a single lightpipe. It
makes it impossible to handle the LEDs individual. Change the LED
config for these boards to take it into account.
Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ramips/dts')
-rw-r--r-- | target/linux/ramips/dts/MIWIFI-MINI.dts | 3 | ||||
-rw-r--r-- | target/linux/ramips/dts/Newifi-D1.dts | 3 | ||||
-rw-r--r-- | target/linux/ramips/dts/PSG1218A.dts | 5 | ||||
-rw-r--r-- | target/linux/ramips/dts/PSG1218B.dts | 5 |
4 files changed, 14 insertions, 2 deletions
diff --git a/target/linux/ramips/dts/MIWIFI-MINI.dts b/target/linux/ramips/dts/MIWIFI-MINI.dts index 0223b7cd58..89a688bfee 100644 --- a/target/linux/ramips/dts/MIWIFI-MINI.dts +++ b/target/linux/ramips/dts/MIWIFI-MINI.dts @@ -23,16 +23,19 @@ led_blue: blue { label = "miwifi-mini:blue:status"; gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; + default-state = "on"; }; yellow { label = "miwifi-mini:yellow:status"; gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; + default-state = "off"; }; red { label = "miwifi-mini:red:status"; gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + default-state = "off"; }; }; diff --git a/target/linux/ramips/dts/Newifi-D1.dts b/target/linux/ramips/dts/Newifi-D1.dts index 9fe0ea3b6a..1aebc1b7f6 100644 --- a/target/linux/ramips/dts/Newifi-D1.dts +++ b/target/linux/ramips/dts/Newifi-D1.dts @@ -28,16 +28,19 @@ status-red { label = "newifi-d1:red:status"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + default-state = "off"; }; status-green { label = "newifi-d1:green:status"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + default-state = "off"; }; led_blue: status-blue { label = "newifi-d1:blue:status"; gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; + default-state = "on"; }; }; diff --git a/target/linux/ramips/dts/PSG1218A.dts b/target/linux/ramips/dts/PSG1218A.dts index f48ac1deb6..5065b79462 100644 --- a/target/linux/ramips/dts/PSG1218A.dts +++ b/target/linux/ramips/dts/PSG1218A.dts @@ -15,16 +15,19 @@ led_blue: blue { label = "psg1218a:blue:status"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + default-state = "on"; }; yellow { label = "psg1218a:yellow:status"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + default-state = "off"; }; red { label = "psg1218a:red:status"; - gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; + gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; + default-state = "off"; }; }; }; diff --git a/target/linux/ramips/dts/PSG1218B.dts b/target/linux/ramips/dts/PSG1218B.dts index 86b1194b7a..3278a51bf3 100644 --- a/target/linux/ramips/dts/PSG1218B.dts +++ b/target/linux/ramips/dts/PSG1218B.dts @@ -15,16 +15,19 @@ led_blue: blue { label = "psg1218b:blue:status"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + default-state = "on"; }; yellow { label = "psg1218b:yellow:status"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + default-state = "off"; }; red { label = "psg1218b:red:status"; - gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; + gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; + default-state = "off"; }; }; }; |