mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-01 08:48:08 +00:00
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>
This commit is contained in:
parent
373f446049
commit
bbe7124945
@ -16,16 +16,6 @@ case "$board" in
|
|||||||
"linksys,viper")
|
"linksys,viper")
|
||||||
ucidef_set_led_default "pulse" "pulse" "viper:white:pulse" "1"
|
ucidef_set_led_default "pulse" "pulse" "viper:white:pulse" "1"
|
||||||
;;
|
;;
|
||||||
"zyxel,nsa310b")
|
|
||||||
ucidef_set_led_usbhost "usb" "USB" "nsa310:green:usb"
|
|
||||||
ucidef_set_led_ataport "hdd" "HDD" "nsa310:green:hdd" "1"
|
|
||||||
ucidef_set_led_ataport "esata" "eSata" "nsa310:green:esata" "2"
|
|
||||||
;;
|
|
||||||
"zyxel,nsa325")
|
|
||||||
ucidef_set_led_usbhost "usb" "USB" "nsa325:green:usb"
|
|
||||||
ucidef_set_led_ataport "hdd1" "HDD1" "nsa325:green:hdd1" "1"
|
|
||||||
ucidef_set_led_ataport "hdd2" "HDD2" "nsa325:green:hdd2" "2"
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
board_config_flush
|
board_config_flush
|
||||||
|
@ -101,6 +101,7 @@
|
|||||||
green-hdd {
|
green-hdd {
|
||||||
label = "nsa310:green:hdd";
|
label = "nsa310:green:hdd";
|
||||||
gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
|
gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
|
||||||
|
linux,default-trigger = "ata1";
|
||||||
};
|
};
|
||||||
|
|
||||||
red-hdd {
|
red-hdd {
|
||||||
@ -111,6 +112,7 @@
|
|||||||
green-esata {
|
green-esata {
|
||||||
label = "nsa310:green:esata";
|
label = "nsa310:green:esata";
|
||||||
gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
|
gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
|
||||||
|
linux,default-trigger = "ata2";
|
||||||
};
|
};
|
||||||
|
|
||||||
red-esata {
|
red-esata {
|
||||||
@ -121,6 +123,7 @@
|
|||||||
green-usb {
|
green-usb {
|
||||||
label = "nsa310:green:usb";
|
label = "nsa310:green:usb";
|
||||||
gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
|
gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
|
||||||
|
linux,default-trigger = "usb-host";
|
||||||
};
|
};
|
||||||
|
|
||||||
red-usb {
|
red-usb {
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
memory {
|
memory {
|
||||||
device_type = "memory";
|
device_type = "memory";
|
||||||
reg = <0x00000000 0x20000000>;
|
reg = <0x00000000 0x20000000>;
|
||||||
@@ -162,11 +169,12 @@
|
@@ -162,17 +169,19 @@
|
||||||
&pmx_led_hdd1_green &pmx_led_hdd1_red>;
|
&pmx_led_hdd1_green &pmx_led_hdd1_red>;
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
|
|
||||||
@ -29,3 +29,26 @@
|
|||||||
label = "nsa325:orange:sys";
|
label = "nsa325:orange:sys";
|
||||||
gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
|
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";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user