diff options
author | Pawel Dembicki <paweldembicki@gmail.com> | 2020-05-01 21:16:58 +0200 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-06-14 21:16:20 +0200 |
commit | bbe712494596cc4a7c317b73ffdf800f04641912 (patch) | |
tree | eb4e299932f124c5427ac86bda41e35fbbcfe91d /target/linux/kirkwood/patches-5.4/107-03-nsa325.patch | |
parent | 373f4460497bad899bb97e7af00aad157ab0922a (diff) | |
download | upstream-bbe712494596cc4a7c317b73ffdf800f04641912.tar.gz upstream-bbe712494596cc4a7c317b73ffdf800f04641912.tar.bz2 upstream-bbe712494596cc4a7c317b73ffdf800f04641912.zip |
kirkwood: move led triggers to dts
This patch moves led trigger settings from 01_leds file to dts.
Now "linux,default-trigger" property is used.
Tested-by: Alberto Bursi <bobafetthotmail@gmail.com> [nsa310,nsa325]
Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Diffstat (limited to 'target/linux/kirkwood/patches-5.4/107-03-nsa325.patch')
-rw-r--r-- | target/linux/kirkwood/patches-5.4/107-03-nsa325.patch | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/target/linux/kirkwood/patches-5.4/107-03-nsa325.patch b/target/linux/kirkwood/patches-5.4/107-03-nsa325.patch index 36c77cd44a..374c0895a9 100644 --- a/target/linux/kirkwood/patches-5.4/107-03-nsa325.patch +++ b/target/linux/kirkwood/patches-5.4/107-03-nsa325.patch @@ -14,7 +14,7 @@ memory { device_type = "memory"; reg = <0x00000000 0x20000000>; -@@ -162,11 +169,12 @@ +@@ -162,17 +169,19 @@ &pmx_led_hdd1_green &pmx_led_hdd1_red>; pinctrl-names = "default"; @@ -29,3 +29,26 @@ label = "nsa325:orange:sys"; gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>; }; + green-hdd1 { + label = "nsa325:green:hdd1"; + gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>; ++ linux,default-trigger = "ata1"; + }; + red-hdd1 { + label = "nsa325:red:hdd1"; +@@ -181,6 +190,7 @@ + green-hdd2 { + label = "nsa325:green:hdd2"; + gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; ++ linux,default-trigger = "ata2"; + }; + red-hdd2 { + label = "nsa325:red:hdd2"; +@@ -189,6 +199,7 @@ + green-usb { + label = "nsa325:green:usb"; + gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>; ++ linux,default-trigger = "usb-host"; + }; + green-copy { + label = "nsa325:green:copy"; |