aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/gpio
diff options
context:
space:
mode:
authorSimon Guinot <simon.guinot@sequanux.org>2015-02-25 12:58:19 -0500
committerGuenter Roeck <linux@roeck-us.net>2015-03-09 12:59:36 -0400
commit73ef85f42da2df8b567fea109c67ed53db937bcc (patch)
tree0b72ae38e8aeb5d432827e753b690438bae1244d /Documentation/devicetree/bindings/gpio
parent6552f327cab8eb6c773ba4f702cf6a371d1dc467 (diff)
hwmon: (gpio-fan) allow to use alarm support alone from DT
On some boards, such as the LaCie 2Big Network v2 or 2Big NAS (based on Marvell Kirkwood SoCs), an I2C fan controller is used but the alarm signal is wired to a separate GPIO. Unfortunately, the gpio-fan driver can't be used to handle GPIO alarm alone from DT: an error is returned if the "gpios" DT property is missing. This patch allows to use the gpio-fan driver even if the "alarm-gpios" DT property is defined alone. Signed-off-by: Simon Guinot <simon.guinot@sequanux.org> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'Documentation/devicetree/bindings/gpio')
-rw-r--r--Documentation/devicetree/bindings/gpio/gpio-fan.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/Documentation/devicetree/bindings/gpio/gpio-fan.txt b/Documentation/devicetree/bindings/gpio/gpio-fan.txt
index 2dd457a3469a..f996d428f132 100644
--- a/Documentation/devicetree/bindings/gpio/gpio-fan.txt
+++ b/Documentation/devicetree/bindings/gpio/gpio-fan.txt
@@ -2,16 +2,18 @@ Bindings for fan connected to GPIO lines
2 2
3Required properties: 3Required properties:
4- compatible : "gpio-fan" 4- compatible : "gpio-fan"
5
6Optional properties:
5- gpios: Specifies the pins that map to bits in the control value, 7- gpios: Specifies the pins that map to bits in the control value,
6 ordered MSB-->LSB. 8 ordered MSB-->LSB.
7- gpio-fan,speed-map: A mapping of possible fan RPM speeds and the 9- gpio-fan,speed-map: A mapping of possible fan RPM speeds and the
8 control value that should be set to achieve them. This array 10 control value that should be set to achieve them. This array
9 must have the RPM values in ascending order. 11 must have the RPM values in ascending order.
10
11Optional properties:
12- alarm-gpios: This pin going active indicates something is wrong with 12- alarm-gpios: This pin going active indicates something is wrong with
13 the fan, and a udev event will be fired. 13 the fan, and a udev event will be fired.
14 14
15Note: At least one the "gpios" or "alarm-gpios" properties must be set.
16
15Examples: 17Examples:
16 18
17 gpio_fan { 19 gpio_fan {