Skip to content
Permalink
Browse files

oxnas: switch to DTS aliases for LEDs and use generic diag.sh

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
  • Loading branch information
dangowrt committed Mar 1, 2019
1 parent e882d5b commit 6b2874707a3f2458803582f48a2ef68ac7dd7b42

This file was deleted.

This file was deleted.

@@ -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>;
};
@@ -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";
@@ -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>;
};
@@ -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>;
};
@@ -0,0 +1,34 @@
--- a/arch/arm/boot/dts/ox820-cloudengines-pogoplug-series-3.dts
+++ b/arch/arm/boot/dts/ox820-cloudengines-pogoplug-series-3.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";

0 comments on commit 6b28747

Please sign in to comment.
You can’t perform that action at this time.