aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/oxnas/files
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2019-03-01 23:51:19 +0100
committerDaniel Golle <daniel@makrotopia.org>2019-03-01 23:51:19 +0100
commit6b2874707a3f2458803582f48a2ef68ac7dd7b42 (patch)
tree7840290b8a7c5faf3bf6ab914cae0df953e8c862 /target/linux/oxnas/files
parente882d5bf312bbc4cf672c26dda8f73df47f779f7 (diff)
downloadupstream-6b2874707a3f2458803582f48a2ef68ac7dd7b42.tar.gz
upstream-6b2874707a3f2458803582f48a2ef68ac7dd7b42.tar.bz2
upstream-6b2874707a3f2458803582f48a2ef68ac7dd7b42.zip
oxnas: switch to DTS aliases for LEDs and use generic diag.sh
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'target/linux/oxnas/files')
-rw-r--r--target/linux/oxnas/files/arch/arm/boot/dts/ox820-akitio-mycloud.dts6
-rw-r--r--target/linux/oxnas/files/arch/arm/boot/dts/ox820-cloudengines-pogoplug-pro.dts10
-rw-r--r--target/linux/oxnas/files/arch/arm/boot/dts/ox820-mitrastar-stg212.dts8
-rw-r--r--target/linux/oxnas/files/arch/arm/boot/dts/ox820-shuttle-kd20.dts8
4 files changed, 24 insertions, 8 deletions
diff --git a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-akitio-mycloud.dts b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-akitio-mycloud.dts
index f0fa928f3d..e36bc6bd70 100644
--- a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-akitio-mycloud.dts
+++ b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-akitio-mycloud.dts
@@ -23,6 +23,10 @@
serial0 = &uart0;
gpio0 = &gpio0;
gpio1 = &gpio1;
+ led-boot = &led_status;
+ led-failsafe = &led_status;
+ led-running = &led_status;
+ led-upgrade = &led_status;
};
i2c-gpio {
@@ -62,7 +66,7 @@
compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_leds>;
- status {
+ led_status: status {
label = "akitio:red:status";
gpios = <&gpio0 29 0>;
};
diff --git a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-cloudengines-pogoplug-pro.dts b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-cloudengines-pogoplug-pro.dts
index 999276e5ad..19533930ef 100644
--- a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-cloudengines-pogoplug-pro.dts
+++ b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-cloudengines-pogoplug-pro.dts
@@ -28,24 +28,28 @@
serial0 = &uart0;
gpio0 = &gpio0;
gpio1 = &gpio1;
+ led-boot = &led_status;
+ led-failsafe = &led_warn;
+ led-running = &led_act;
+ led-upgrade = &led_warn;
};
leds {
compatible = "gpio-leds";
- blue {
+ led_status: blue {
label = "pogoplug:blue";
gpios = <&gpio0 2 0>;
default-state = "keep";
};
- orange {
+ led_warn: orange {
label = "pogoplug:orange";
gpios = <&gpio1 16 1>;
default-state = "keep";
};
- green {
+ led_act: green {
label = "pogoplug:green";
gpios = <&gpio1 17 1>;
default-state = "keep";
diff --git a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-mitrastar-stg212.dts b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-mitrastar-stg212.dts
index b3282acc72..4610aab883 100644
--- a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-mitrastar-stg212.dts
+++ b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-mitrastar-stg212.dts
@@ -23,6 +23,10 @@
serial0 = &uart0;
gpio0 = &gpio0;
gpio1 = &gpio1;
+ led-boot = &led_status;
+ led-failsafe = &led_warn;
+ led-running = &led_status;
+ led-upgrade = &led_warn;
};
keys {
@@ -45,11 +49,11 @@
leds {
compatible = "gpio-leds";
- status {
+ led_status: status {
label = "zyxel:blue:status";
gpios = <&gpio1 5 0>;
};
- status2 {
+ led_warn: status2 {
label = "zyxel:red:status";
gpios = <&gpio1 6 1>;
};
diff --git a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-shuttle-kd20.dts b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-shuttle-kd20.dts
index 1984e446b2..40960d0f3d 100644
--- a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-shuttle-kd20.dts
+++ b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-shuttle-kd20.dts
@@ -23,6 +23,10 @@
serial0 = &uart0;
gpio0 = &gpio0;
gpio1 = &gpio1;
+ led-boot = &led_status;
+ led-failsafe = &led_warn;
+ led-running = &led_status;
+ led-upgrade = &led_warn;
};
i2c-gpio {
@@ -67,11 +71,11 @@
leds {
compatible = "gpio-leds";
- status {
+ led_status: status {
label = "kd20:blue:status";
gpios = <&gpio1 16 0>;
};
- status2 {
+ led_warn: status2 {
label = "kd20:red:status";
gpios = <&gpio1 17 0>;
};