xref: /freebsd/sys/contrib/device-tree/Bindings/gpio/gpio-thunderx.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotCavium ThunderX/OCTEON-TX GPIO controller bindings
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired Properties:
4*c66ec88fSEmmanuel Vadot- reg: The controller bus address.
5*c66ec88fSEmmanuel Vadot- gpio-controller: Marks the device node as a GPIO controller.
6*c66ec88fSEmmanuel Vadot- #gpio-cells: Must be 2.
7*c66ec88fSEmmanuel Vadot  - First cell is the GPIO pin number relative to the controller.
8*c66ec88fSEmmanuel Vadot  - Second cell is a standard generic flag bitfield as described in gpio.txt.
9*c66ec88fSEmmanuel Vadot
10*c66ec88fSEmmanuel VadotOptional Properties:
11*c66ec88fSEmmanuel Vadot- compatible: "cavium,thunder-8890-gpio", unused as PCI driver binding is used.
12*c66ec88fSEmmanuel Vadot- interrupt-controller: Marks the device node as an interrupt controller.
13*c66ec88fSEmmanuel Vadot- #interrupt-cells: Must be present and have value of 2 if
14*c66ec88fSEmmanuel Vadot                    "interrupt-controller" is present.
15*c66ec88fSEmmanuel Vadot  - First cell is the GPIO pin number relative to the controller.
16*c66ec88fSEmmanuel Vadot  - Second cell is triggering flags as defined in interrupts.txt.
17*c66ec88fSEmmanuel Vadot
18*c66ec88fSEmmanuel VadotExample:
19*c66ec88fSEmmanuel Vadot
20*c66ec88fSEmmanuel Vadotgpio_6_0: gpio@6,0 {
21*c66ec88fSEmmanuel Vadot	compatible = "cavium,thunder-8890-gpio";
22*c66ec88fSEmmanuel Vadot	reg = <0x3000 0 0 0 0>; /*  DEVFN = 0x30 (6:0) */
23*c66ec88fSEmmanuel Vadot	gpio-controller;
24*c66ec88fSEmmanuel Vadot	#gpio-cells = <2>;
25*c66ec88fSEmmanuel Vadot	interrupt-controller;
26*c66ec88fSEmmanuel Vadot	#interrupt-cells = <2>;
27*c66ec88fSEmmanuel Vadot};
28