Path: blob/main/sys/contrib/device-tree/Bindings/gpio/brcm,kona-gpio.txt
48377 views
Broadcom Kona Family GPIO1=========================23This GPIO driver is used in the following Broadcom SoCs:4BCM11130, BCM11140, BCM11351, BCM28145, BCM2815556The Broadcom GPIO Controller IP can be configured prior to synthesis to7support up to 8 banks of 32 GPIOs where each bank has its own IRQ. The8GPIO controller only supports edge, not level, triggering of interrupts.910Required properties11-------------------1213- compatible: "brcm,bcm11351-gpio", "brcm,kona-gpio"14- reg: Physical base address and length of the controller's registers.15- interrupts: The interrupt outputs from the controller. There is one GPIO16interrupt per GPIO bank. The number of interrupts listed depends on the17number of GPIO banks on the SoC. The interrupts must be ordered by bank,18starting with bank 0. There is always a 1:1 mapping between banks and19IRQs.20- #gpio-cells: Should be <2>. The first cell is the pin number, the second21cell is used to specify optional parameters:22- bit 0 specifies polarity (0 for normal, 1 for inverted)23See also "gpio-specifier" in .../devicetree/bindings/gpio/gpio.txt.24- #interrupt-cells: Should be <2>. The first cell is the GPIO number. The25second cell is used to specify flags. The following subset of flags is26supported:27- trigger type (bits[1:0]):281 = low-to-high edge triggered.292 = high-to-low edge triggered.303 = low-to-high or high-to-low edge triggered31Valid values are 1, 2, 332See also .../devicetree/bindings/interrupt-controller/interrupts.txt.33- gpio-controller: Marks the device node as a GPIO controller.34- interrupt-controller: Marks the device node as an interrupt controller.3536Example:37gpio: gpio@35003000 {38compatible = "brcm,bcm11351-gpio", "brcm,kona-gpio";39reg = <0x35003000 0x800>;40interrupts =41<GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH42GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH43GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH44GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH45GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH46GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>;47#gpio-cells = <2>;48#interrupt-cells = <2>;49gpio-controller;50interrupt-controller;51};525354