summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/kirkwood-ns2.dts
diff options
context:
space:
mode:
authorVincent Donnefort <vdonnefort@gmail.com>2015-07-02 19:56:41 +0200
committerJacek Anaszewski <j.anaszewski@samsung.com>2015-08-28 14:06:16 +0200
commit4fc5af86837d983d7b1dd4edad245454e1874fa0 (patch)
tree2d954ae8a904c7df8825a332746baf540e705c20 /arch/arm/boot/dts/kirkwood-ns2.dts
parentf3a2a097a37acfb7c28da171248d15b9bb2e657b (diff)
ARM: Kirkwood: add modes-map property to ns2-leds nodes
Since the LED modes mapping is no longer hardcoded inside the leds-ns2 driver, then it must be provided through the modes-map property in the ns2-leds nodes. Signed-off-by: Vincent Donnefort <vdonnefort@gmail.com> Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com> Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Diffstat (limited to 'arch/arm/boot/dts/kirkwood-ns2.dts')
-rw-r--r--arch/arm/boot/dts/kirkwood-ns2.dts5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/kirkwood-ns2.dts b/arch/arm/boot/dts/kirkwood-ns2.dts
index 53368d1022cc..190189d235e6 100644
--- a/arch/arm/boot/dts/kirkwood-ns2.dts
+++ b/arch/arm/boot/dts/kirkwood-ns2.dts
@@ -1,5 +1,6 @@
/dts-v1/;
+#include <dt-bindings/leds/leds-ns2.h>
#include "kirkwood-ns2-common.dtsi"
/ {
@@ -27,6 +28,10 @@
label = "ns2:blue:sata";
slow-gpio = <&gpio0 29 0>;
cmd-gpio = <&gpio0 30 0>;
+ modes-map = <NS_V2_LED_OFF 1 0
+ NS_V2_LED_ON 0 1
+ NS_V2_LED_ON 1 1
+ NS_V2_LED_SATA 0 0>;
};
};
};