xref: /linux/Documentation/devicetree/bindings/gpio/gateworks,pld-gpio.txt (revision 79790b6818e96c58fe2bffee1b418c16e64e7b80)
135b21b6eSLinus WalleijGateworks PLD GPIO controller bindings
235b21b6eSLinus Walleij
3*c5839535SRob HerringThe GPIO controller should be a child node on an I2C bus.
435b21b6eSLinus Walleij
535b21b6eSLinus WalleijRequired properties:
635b21b6eSLinus Walleij- compatible: Should be "gateworks,pld-gpio"
735b21b6eSLinus Walleij- reg: I2C slave address
835b21b6eSLinus Walleij- gpio-controller: Marks the device node as a GPIO controller.
935b21b6eSLinus Walleij- #gpio-cells: Should be <2>. The first cell is the gpio number and
1035b21b6eSLinus Walleij  the second cell is used to specify optional parameters.
1135b21b6eSLinus Walleij
1235b21b6eSLinus WalleijExample:
1335b21b6eSLinus Walleij
1435b21b6eSLinus Walleijpld@56 {
1535b21b6eSLinus Walleij	compatible = "gateworks,pld-gpio";
1635b21b6eSLinus Walleij	reg = <0x56>;
1735b21b6eSLinus Walleij	gpio-controller;
1835b21b6eSLinus Walleij	#gpio-cells = <2>;
1935b21b6eSLinus Walleij};
20