xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/gpio/gateworks,pld-gpio.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunGateworks PLD GPIO controller bindings
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunThe GPIO controller should be a child node on an I2C bus,
4*4882a593Smuzhiyunsee: i2c/i2c.txt for details.
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunRequired properties:
7*4882a593Smuzhiyun- compatible: Should be "gateworks,pld-gpio"
8*4882a593Smuzhiyun- reg: I2C slave address
9*4882a593Smuzhiyun- gpio-controller: Marks the device node as a GPIO controller.
10*4882a593Smuzhiyun- #gpio-cells: Should be <2>. The first cell is the gpio number and
11*4882a593Smuzhiyun  the second cell is used to specify optional parameters.
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunExample:
14*4882a593Smuzhiyun
15*4882a593Smuzhiyunpld@56 {
16*4882a593Smuzhiyun	compatible = "gateworks,pld-gpio";
17*4882a593Smuzhiyun	reg = <0x56>;
18*4882a593Smuzhiyun	gpio-controller;
19*4882a593Smuzhiyun	#gpio-cells = <2>;
20*4882a593Smuzhiyun};
21