Path: blob/main/sys/contrib/device-tree/Bindings/gpio/cavium-octeon-gpio.txt
48375 views
* General Purpose Input Output (GPIO) bus.12Properties:3- compatible: "cavium,octeon-3860-gpio"45Compatibility with all cn3XXX, cn5XXX and cn6XXX SOCs.67- reg: The base address of the GPIO unit's register bank.89- gpio-controller: This is a GPIO controller.1011- #gpio-cells: Must be <2>. The first cell is the GPIO pin.1213- interrupt-controller: The GPIO controller is also an interrupt14controller, many of its pins may be configured as an interrupt15source.1617- #interrupt-cells: Must be <2>. The first cell is the GPIO pin18connected to the interrupt source. The second cell is the interrupt19triggering protocol and may have one of four values:201 - edge triggered on the rising edge.212 - edge triggered on the falling edge224 - level triggered active high.238 - level triggered active low.2425- interrupts: Interrupt routing for each pin.2627Example:2829gpio-controller@1070000000800 {30#gpio-cells = <2>;31compatible = "cavium,octeon-3860-gpio";32reg = <0x10700 0x00000800 0x0 0x100>;33gpio-controller;34/* Interrupts are specified by two parts:35* 1) GPIO pin number (0..15)36* 2) Triggering (1 - edge rising37* 2 - edge falling38* 4 - level active high39* 8 - level active low)40*/41interrupt-controller;42#interrupt-cells = <2>;43/* The GPIO pin connect to 16 consecutive CUI bits */44interrupts = <0 16>, <0 17>, <0 18>, <0 19>,45<0 20>, <0 21>, <0 22>, <0 23>,46<0 24>, <0 25>, <0 26>, <0 27>,47<0 28>, <0 29>, <0 30>, <0 31>;48};495051