Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpio: Add DT bindings for Gateworks PLD GPIO

This adds device tree bindings for the Gateworks PLD
GPIO chip, a simple I2C GPIO controller.

Cc: devicetree@vger.kernel.org
Cc: Imre Kaloz <kaloz@openwrt.org>
Cc: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

+20
+20
Documentation/devicetree/bindings/gpio/gateworks,pld-gpio.txt
··· 1 + Gateworks PLD GPIO controller bindings 2 + 3 + The GPIO controller should be a child node on an I2C bus, 4 + see: i2c/i2c.txt for details. 5 + 6 + Required properties: 7 + - compatible: Should be "gateworks,pld-gpio" 8 + - reg: I2C slave address 9 + - gpio-controller: Marks the device node as a GPIO controller. 10 + - #gpio-cells: Should be <2>. The first cell is the gpio number and 11 + the second cell is used to specify optional parameters. 12 + 13 + Example: 14 + 15 + pld@56 { 16 + compatible = "gateworks,pld-gpio"; 17 + reg = <0x56>; 18 + gpio-controller; 19 + #gpio-cells = <2>; 20 + };