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