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