[source] mvebu: add default sata trigger
LEDE Commits
lede-commits at lists.infradead.org
Wed Mar 8 10:06:41 PST 2017
mkresin pushed a commit to source.git, branch master:
https://git.lede-project.org/2261c9cc7715e6d590952989ebef96e08cc019fc
commit 2261c9cc7715e6d590952989ebef96e08cc019fc
Author: Ansuel Smith <ansuelsmth at gmail.com>
AuthorDate: Tue Mar 7 18:44:29 2017 +0100
mvebu: add default sata trigger
Change dts file to add default sata trigger to sata led.
Backport upstream accepted patch to add sata trigger to device tree
source files already upstreamed.
Signed-off-by: Ansuel Smith <ansuelsmth at gmail.com>
[backport upstream accepted patch]
Signed-off-by: Mathias Kresin <dev at kresin.me>
---
.../arch/arm/boot/dts/armada-385-linksys-rango.dts | 1 +
.../arm/boot/dts/armada-385-linksys-shelby.dts | 1 +
.../004-add_sata_disk_activity_trigger.patch | 58 ++++++++++++++++++++++
3 files changed, 60 insertions(+)
diff --git a/target/linux/mvebu/files/arch/arm/boot/dts/armada-385-linksys-rango.dts b/target/linux/mvebu/files/arch/arm/boot/dts/armada-385-linksys-rango.dts
index 804ba0d..61f4592 100644
--- a/target/linux/mvebu/files/arch/arm/boot/dts/armada-385-linksys-rango.dts
+++ b/target/linux/mvebu/files/arch/arm/boot/dts/armada-385-linksys-rango.dts
@@ -326,6 +326,7 @@
sata {
label = "rango:white:sata";
gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
+ linux,default-trigger = "disk-activity";
};
wlan_2g {
diff --git a/target/linux/mvebu/files/arch/arm/boot/dts/armada-385-linksys-shelby.dts b/target/linux/mvebu/files/arch/arm/boot/dts/armada-385-linksys-shelby.dts
index c7a8ddd..f8dd193 100644
--- a/target/linux/mvebu/files/arch/arm/boot/dts/armada-385-linksys-shelby.dts
+++ b/target/linux/mvebu/files/arch/arm/boot/dts/armada-385-linksys-shelby.dts
@@ -109,6 +109,7 @@
sata {
label = "shelby:white:sata";
+ linux,default-trigger = "disk-activity";
};
};
};
diff --git a/target/linux/mvebu/patches-4.9/004-add_sata_disk_activity_trigger.patch b/target/linux/mvebu/patches-4.9/004-add_sata_disk_activity_trigger.patch
new file mode 100644
index 0000000..8a18cfa
--- /dev/null
+++ b/target/linux/mvebu/patches-4.9/004-add_sata_disk_activity_trigger.patch
@@ -0,0 +1,58 @@
+From 172230195068703b78ad5733a09492f5d6814c09 Mon Sep 17 00:00:00 2001
+From: Ansuel Smith <ansuelsmth at gmail.com>
+Date: Tue, 28 Feb 2017 14:15:50 +0100
+Subject: [PATCH] ARM: dts: armada: Add default trigger for sata led
+
+In others board we have the sata led set to function
+with the sata led trigger by default.
+This patch makes the same for these board that have sata
+led but get disabled by not associating it to any trigger.
+
+Signed-off-by: Ansuel Smith <ansuelsmth at gmail.com>
+Acked-by: Jason Cooper <jason at lakedaemon.net>
+Signed-off-by: Gregory CLEMENT <gregory.clement at free-electrons.com>
+---
+ arch/arm/boot/dts/armada-385-linksys-caiman.dts | 1 +
+ arch/arm/boot/dts/armada-385-linksys-cobra.dts | 1 +
+ arch/arm/boot/dts/armada-xp-linksys-mamba.dts | 1 +
+ 3 files changed, 3 insertions(+)
+
+diff --git a/arch/arm/boot/dts/armada-385-linksys-caiman.dts b/arch/arm/boot/dts/armada-385-linksys-caiman.dts
+index f3cee91..a1b6e68 100644
+--- a/arch/arm/boot/dts/armada-385-linksys-caiman.dts
++++ b/arch/arm/boot/dts/armada-385-linksys-caiman.dts
+@@ -315,6 +315,7 @@
+
+ sata {
+ label = "caiman:white:sata";
++ linux,default-trigger = "disk-activity";
+ };
+ };
+ };
+diff --git a/arch/arm/boot/dts/armada-385-linksys-cobra.dts b/arch/arm/boot/dts/armada-385-linksys-cobra.dts
+index 1110718..a1a75af 100644
+--- a/arch/arm/boot/dts/armada-385-linksys-cobra.dts
++++ b/arch/arm/boot/dts/armada-385-linksys-cobra.dts
+@@ -315,6 +315,7 @@
+
+ sata {
+ label = "cobra:white:sata";
++ linux,default-trigger = "disk-activity";
+ };
+ };
+ };
+diff --git a/arch/arm/boot/dts/armada-xp-linksys-mamba.dts b/arch/arm/boot/dts/armada-xp-linksys-mamba.dts
+index 42ea876..3744ba3 100644
+--- a/arch/arm/boot/dts/armada-xp-linksys-mamba.dts
++++ b/arch/arm/boot/dts/armada-xp-linksys-mamba.dts
+@@ -266,6 +266,7 @@
+ esata at 4 {
+ label = "mamba:white:esata";
+ reg = <0x4>;
++ linux,default-trigger = "disk-activity";
+ };
+
+ usb2 at 5 {
+--
+2.9.3
+
More information about the lede-commits
mailing list