kirkwood: add diag LEDs for ZyXEL NSA325
This device has had no diag LEDs set up so far, so let's just add them. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
parent
ae67f5ffae
commit
b6db230183
30
target/linux/kirkwood/patches-4.14/107-03-nsa325.patch
Normal file
30
target/linux/kirkwood/patches-4.14/107-03-nsa325.patch
Normal file
@ -0,0 +1,30 @@
|
||||
--- a/arch/arm/boot/dts/kirkwood-nsa325.dts
|
||||
+++ b/arch/arm/boot/dts/kirkwood-nsa325.dts
|
||||
@@ -18,6 +18,13 @@
|
||||
model = "ZyXEL NSA325";
|
||||
compatible = "zyxel,nsa325", "marvell,kirkwood-88f6282", "marvell,kirkwood";
|
||||
|
||||
+ aliases {
|
||||
+ led-boot = &led_green_sys;
|
||||
+ led-failsafe = &led_orange_sys;
|
||||
+ led-running = &led_green_sys;
|
||||
+ led-upgrade = &led_orange_sys;
|
||||
+ };
|
||||
+
|
||||
memory {
|
||||
device_type = "memory";
|
||||
reg = <0x00000000 0x20000000>;
|
||||
@@ -165,11 +172,11 @@
|
||||
&pmx_led_hdd1_green &pmx_led_hdd1_red>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
- green-sys {
|
||||
+ led_green_sys: green-sys {
|
||||
label = "nsa325:green:sys";
|
||||
gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
- orange-sys {
|
||||
+ led_orange_sys: orange-sys {
|
||||
label = "nsa325:orange:sys";
|
||||
gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
|
||||
};
|
30
target/linux/kirkwood/patches-4.19/107-03-nsa325.patch
Normal file
30
target/linux/kirkwood/patches-4.19/107-03-nsa325.patch
Normal file
@ -0,0 +1,30 @@
|
||||
--- a/arch/arm/boot/dts/kirkwood-nsa325.dts
|
||||
+++ b/arch/arm/boot/dts/kirkwood-nsa325.dts
|
||||
@@ -15,6 +15,13 @@
|
||||
model = "ZyXEL NSA325";
|
||||
compatible = "zyxel,nsa325", "marvell,kirkwood-88f6282", "marvell,kirkwood";
|
||||
|
||||
+ aliases {
|
||||
+ led-boot = &led_green_sys;
|
||||
+ led-failsafe = &led_orange_sys;
|
||||
+ led-running = &led_green_sys;
|
||||
+ led-upgrade = &led_orange_sys;
|
||||
+ };
|
||||
+
|
||||
memory {
|
||||
device_type = "memory";
|
||||
reg = <0x00000000 0x20000000>;
|
||||
@@ -162,11 +169,11 @@
|
||||
&pmx_led_hdd1_green &pmx_led_hdd1_red>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
- green-sys {
|
||||
+ led_green_sys: green-sys {
|
||||
label = "nsa325:green:sys";
|
||||
gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
- orange-sys {
|
||||
+ led_orange_sys: orange-sys {
|
||||
label = "nsa325:orange:sys";
|
||||
gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
|
||||
};
|
Loading…
Reference in New Issue
Block a user