Skip to content

Commit

Permalink
gpio: Add DT bindings for Gateworks PLD GPIO
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Linus Walleij committed Feb 8, 2019
1 parent 001aca0 commit 35b21b6
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Documentation/devicetree/bindings/gpio/gateworks,pld-gpio.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Gateworks PLD GPIO controller bindings

The GPIO controller should be a child node on an I2C bus,
see: i2c/i2c.txt for details.

Required properties:
- compatible: Should be "gateworks,pld-gpio"
- reg: I2C slave address
- gpio-controller: Marks the device node as a GPIO controller.
- #gpio-cells: Should be <2>. The first cell is the gpio number and
the second cell is used to specify optional parameters.

Example:

pld@56 {
compatible = "gateworks,pld-gpio";
reg = <0x56>;
gpio-controller;
#gpio-cells = <2>;
};

0 comments on commit 35b21b6

Please sign in to comment.