aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/oxnas/patches-4.14/030-led-aliases-on-pogoplug-v3.patch
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/patches-4.14/030-led-aliases-on-pogoplug-v3.patch
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/patches-4.14/030-led-aliases-on-pogoplug-v3.patch')
-rw-r--r--target/linux/oxnas/patches-4.14/030-led-aliases-on-pogoplug-v3.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/target/linux/oxnas/patches-4.14/030-led-aliases-on-pogoplug-v3.patch b/target/linux/oxnas/patches-4.14/030-led-aliases-on-pogoplug-v3.patch
new file mode 100644
index 0000000000..4025ec0353
--- /dev/null
+++ b/target/linux/oxnas/patches-4.14/030-led-aliases-on-pogoplug-v3.patch
@@ -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";