xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/gpio/gpio-palmas.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunPalmas GPIO controller bindings
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible:
5*4882a593Smuzhiyun  - "ti,palams-gpio" for palma series of the GPIO controller
6*4882a593Smuzhiyun  - "ti,tps80036-gpio" for Palma series device TPS80036.
7*4882a593Smuzhiyun  - "ti,tps65913-gpio" for palma series device TPS65913.
8*4882a593Smuzhiyun  - "ti,tps65914-gpio" for palma series device TPS65914.
9*4882a593Smuzhiyun- #gpio-cells : Should be two.
10*4882a593Smuzhiyun  - first cell is the gpio pin number
11*4882a593Smuzhiyun  - second cell is used to specify the gpio polarity:
12*4882a593Smuzhiyun      0 = active high
13*4882a593Smuzhiyun      1 = active low
14*4882a593Smuzhiyun- gpio-controller : Marks the device node as a GPIO controller.
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunNote: This gpio node will be sub node of palmas node.
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunExample:
19*4882a593Smuzhiyun	palmas: tps65913@58 {
20*4882a593Smuzhiyun		:::::::::::
21*4882a593Smuzhiyun		palmas_gpio: palmas_gpio {
22*4882a593Smuzhiyun			compatible = "ti,palmas-gpio";
23*4882a593Smuzhiyun			gpio-controller;
24*4882a593Smuzhiyun			#gpio-cells = <2>;
25*4882a593Smuzhiyun		};
26*4882a593Smuzhiyun		:::::::::::
27*4882a593Smuzhiyun	};
28