aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaud Ebalard <arno@natisbad.org>2013-11-21 18:00:12 -0500
committerJason Cooper <jason@lakedaemon.net>2013-11-24 12:15:18 -0500
commit100a5fa9752149213204f095c37323fc4ee1b246 (patch)
treeb586d03b3d85c8aa5a5b74baecb5f13e7e63c0b8
parent0932f1499fcebc52c8764419d63cdb1a00dac08f (diff)
ARM: mvebu: Add RN104 SATA LEDs driven via NXP PCA9554 I2C to GPIO muxer
NETGEAR ReadyNAS 104 has a NXP PCA9554 I2C to GPIO chip. Among the 8 GPIO lines the chip makes available, four are used on the device to control the SATA LEDs (the four remaining ones are used for SATA disk presence). This patch adds DT entries for NXP PCA9554 and the four SATA GPIO LEDs. Signed-off-by: Arnaud Ebalard <arno@natisbad.org> Signed-off-by: Jason Cooper <jason@lakedaemon.net>
-rw-r--r--arch/arm/boot/dts/armada-370-netgear-rn104.dts32
1 files changed, 32 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/armada-370-netgear-rn104.dts b/arch/arm/boot/dts/armada-370-netgear-rn104.dts
index b0b32f5fbeb4..50b51509c330 100644
--- a/arch/arm/boot/dts/armada-370-netgear-rn104.dts
+++ b/arch/arm/boot/dts/armada-370-netgear-rn104.dts
@@ -12,6 +12,7 @@
12/dts-v1/; 12/dts-v1/;
13 13
14#include "armada-370.dtsi" 14#include "armada-370.dtsi"
15#include <dt-bindings/gpio/gpio.h>
15 16
16/ { 17/ {
17 model = "NETGEAR ReadyNAS 104"; 18 model = "NETGEAR ReadyNAS 104";
@@ -123,6 +124,13 @@
123 fan_startv = <1>; 124 fan_startv = <1>;
124 pwm_polarity = <0>; 125 pwm_polarity = <0>;
125 }; 126 };
127
128 pca9554: pca9554@23 {
129 compatible = "nxp,pca9554";
130 gpio-controller;
131 #gpio-cells = <2>;
132 reg = <0x23>;
133 };
126 }; 134 };
127 }; 135 };
128 }; 136 };
@@ -154,6 +162,30 @@
154 gpios = <&gpio2 0 1>; /* GPIO 64 Active Low */ 162 gpios = <&gpio2 0 1>; /* GPIO 64 Active Low */
155 linux,default-trigger = "keep"; 163 linux,default-trigger = "keep";
156 }; 164 };
165
166 sata1_led {
167 label = "rn104:blue:sata1";
168 gpios = <&pca9554 0 GPIO_ACTIVE_LOW>;
169 default-state = "off";
170 };
171
172 sata2_led {
173 label = "rn104:blue:sata2";
174 gpios = <&pca9554 1 GPIO_ACTIVE_LOW>;
175 default-state = "off";
176 };
177
178 sata3_led {
179 label = "rn104:blue:sata3";
180 gpios = <&pca9554 2 GPIO_ACTIVE_LOW>;
181 default-state = "off";
182 };
183
184 sata4_led {
185 label = "rn104:blue:sata4";
186 gpios = <&pca9554 3 GPIO_ACTIVE_LOW>;
187 default-state = "off";
188 };
157 }; 189 };
158 190
159 gpio_keys { 191 gpio_keys {