Re: [PATCH v2 4/4] Documentation: dt: bindings: add LP3943 bindings

From: Lee Jones
Date: Wed Jul 31 2013 - 07:09:41 EST


On Tue, 30 Jul 2013, Kim, Milo wrote:

> Bindings for LP3943 MFD, GPIO and PWM controller are added.
>
> Cc: devicetree@xxxxxxxxxxxxxxx
> Cc: Lee Jones <lee.jones@xxxxxxxxxx>
> Cc: Linus Walleij <linus.walleij@xxxxxxxxxx>
> Cc: Samuel Ortiz <sameo@xxxxxxxxxxxxxxx>
> Cc: Thierry Reding <thierry.reding@xxxxxxxxx>
> Signed-off-by: Milo Kim <milo.kim@xxxxxx>
> ---
> .../devicetree/bindings/gpio/gpio-lp3943.txt | 42 +++++++++++++
> Documentation/devicetree/bindings/mfd/lp3943.txt | 33 ++++++++++
> .../devicetree/bindings/pwm/pwm-lp3943.txt | 65 ++++++++++++++++++++
> 3 files changed, 140 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/gpio/gpio-lp3943.txt
> create mode 100644 Documentation/devicetree/bindings/mfd/lp3943.txt
> create mode 100644 Documentation/devicetree/bindings/pwm/pwm-lp3943.txt
>
> diff --git a/Documentation/devicetree/bindings/gpio/gpio-lp3943.txt b/Documentation/devicetree/bindings/gpio/gpio-lp3943.txt
> new file mode 100644
> index 0000000..952fefd
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/gpio/gpio-lp3943.txt
> @@ -0,0 +1,42 @@
> +TI/National Semiconductor LP3943 GPIO controller
> +
> +Required properties:
> + - compatible: "ti,lp3943-gpio"
> + - gpio-controller: device node as a GPIO controller
> + - #gpio-cells: Should be two.
> + 1) pin number offset
> + 2) GPIO polarity
> + 0 = active high, 1 = active low

Please use the defines instead on '0' and '1':
include/dt-bindings/gpio/gpio.h

> + gpios = <&gpioex 9 1>; /* active-low */

> + gpios = <&gpioex 10 1>; /* active-low */

--
Lee Jones
Linaro ST-Ericsson Landing Team Lead
Linaro.org â Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/