1*c66ec88fSEmmanuel Vadot* General Purpose Input Output (GPIO) bus. 2*c66ec88fSEmmanuel Vadot 3*c66ec88fSEmmanuel VadotProperties: 4*c66ec88fSEmmanuel Vadot- compatible: "cavium,octeon-3860-gpio" 5*c66ec88fSEmmanuel Vadot 6*c66ec88fSEmmanuel Vadot Compatibility with all cn3XXX, cn5XXX and cn6XXX SOCs. 7*c66ec88fSEmmanuel Vadot 8*c66ec88fSEmmanuel Vadot- reg: The base address of the GPIO unit's register bank. 9*c66ec88fSEmmanuel Vadot 10*c66ec88fSEmmanuel Vadot- gpio-controller: This is a GPIO controller. 11*c66ec88fSEmmanuel Vadot 12*c66ec88fSEmmanuel Vadot- #gpio-cells: Must be <2>. The first cell is the GPIO pin. 13*c66ec88fSEmmanuel Vadot 14*c66ec88fSEmmanuel Vadot- interrupt-controller: The GPIO controller is also an interrupt 15*c66ec88fSEmmanuel Vadot controller, many of its pins may be configured as an interrupt 16*c66ec88fSEmmanuel Vadot source. 17*c66ec88fSEmmanuel Vadot 18*c66ec88fSEmmanuel Vadot- #interrupt-cells: Must be <2>. The first cell is the GPIO pin 19*c66ec88fSEmmanuel Vadot connected to the interrupt source. The second cell is the interrupt 20*c66ec88fSEmmanuel Vadot triggering protocol and may have one of four values: 21*c66ec88fSEmmanuel Vadot 1 - edge triggered on the rising edge. 22*c66ec88fSEmmanuel Vadot 2 - edge triggered on the falling edge 23*c66ec88fSEmmanuel Vadot 4 - level triggered active high. 24*c66ec88fSEmmanuel Vadot 8 - level triggered active low. 25*c66ec88fSEmmanuel Vadot 26*c66ec88fSEmmanuel Vadot- interrupts: Interrupt routing for each pin. 27*c66ec88fSEmmanuel Vadot 28*c66ec88fSEmmanuel VadotExample: 29*c66ec88fSEmmanuel Vadot 30*c66ec88fSEmmanuel Vadot gpio-controller@1070000000800 { 31*c66ec88fSEmmanuel Vadot #gpio-cells = <2>; 32*c66ec88fSEmmanuel Vadot compatible = "cavium,octeon-3860-gpio"; 33*c66ec88fSEmmanuel Vadot reg = <0x10700 0x00000800 0x0 0x100>; 34*c66ec88fSEmmanuel Vadot gpio-controller; 35*c66ec88fSEmmanuel Vadot /* Interrupts are specified by two parts: 36*c66ec88fSEmmanuel Vadot * 1) GPIO pin number (0..15) 37*c66ec88fSEmmanuel Vadot * 2) Triggering (1 - edge rising 38*c66ec88fSEmmanuel Vadot * 2 - edge falling 39*c66ec88fSEmmanuel Vadot * 4 - level active high 40*c66ec88fSEmmanuel Vadot * 8 - level active low) 41*c66ec88fSEmmanuel Vadot */ 42*c66ec88fSEmmanuel Vadot interrupt-controller; 43*c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 44*c66ec88fSEmmanuel Vadot /* The GPIO pin connect to 16 consecutive CUI bits */ 45*c66ec88fSEmmanuel Vadot interrupts = <0 16>, <0 17>, <0 18>, <0 19>, 46*c66ec88fSEmmanuel Vadot <0 20>, <0 21>, <0 22>, <0 23>, 47*c66ec88fSEmmanuel Vadot <0 24>, <0 25>, <0 26>, <0 27>, 48*c66ec88fSEmmanuel Vadot <0 28>, <0 29>, <0 30>, <0 31>; 49*c66ec88fSEmmanuel Vadot }; 50