xref: /freebsd/sys/contrib/device-tree/Bindings/gpio/gpio-max77620.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotGPIO driver for MAX77620 Power management IC from Maxim Semiconductor.
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotDevice has 8 GPIO pins which can be configured as GPIO as well as the
4*c66ec88fSEmmanuel Vadotspecial IO functions.
5*c66ec88fSEmmanuel Vadot
6*c66ec88fSEmmanuel VadotRequired properties:
7*c66ec88fSEmmanuel Vadot-------------------
8*c66ec88fSEmmanuel Vadot- gpio-controller : 	Marks the device node as a gpio controller.
9*c66ec88fSEmmanuel Vadot- #gpio-cells : 	Should be two.  The first cell is the pin number and
10*c66ec88fSEmmanuel Vadot			the second cell is used to specify the gpio polarity:
11*c66ec88fSEmmanuel Vadot				0 = active high
12*c66ec88fSEmmanuel Vadot				1 = active low
13*c66ec88fSEmmanuel VadotFor more details, please refer generic GPIO DT binding document
14*c66ec88fSEmmanuel Vadot<devicetree/bindings/gpio/gpio.txt>.
15*c66ec88fSEmmanuel Vadot
16*c66ec88fSEmmanuel VadotExample:
17*c66ec88fSEmmanuel Vadot--------
18*c66ec88fSEmmanuel Vadot#include <dt-bindings/mfd/max77620.h>
19*c66ec88fSEmmanuel Vadot...
20*c66ec88fSEmmanuel Vadotmax77620@3c {
21*c66ec88fSEmmanuel Vadot	compatible = "maxim,max77620";
22*c66ec88fSEmmanuel Vadot
23*c66ec88fSEmmanuel Vadot	gpio-controller;
24*c66ec88fSEmmanuel Vadot	#gpio-cells = <2>;
25*c66ec88fSEmmanuel Vadot};
26