Path: blob/main/sys/contrib/device-tree/Bindings/gpio/brcm,brcmstb-gpio.txt
48375 views
Broadcom STB "UPG GIO" GPIO controller12The controller's registers are organized as sets of eight 32-bit3registers with each set controlling a bank of up to 32 pins. A single4interrupt is shared for all of the banks handled by the controller.56Required properties:78- compatible:9Must be "brcm,brcmstb-gpio"1011- reg:12Define the base and range of the I/O address space containing13the brcmstb GPIO controller registers1415- #gpio-cells:16Should be <2>. The first cell is the pin number (within the controller's17pin space), and the second is used for the following:18bit[0]: polarity (0 for active-high, 1 for active-low)1920- gpio-controller:21Specifies that the node is a GPIO controller.2223- brcm,gpio-bank-widths:24Number of GPIO lines for each bank. Number of elements must25correspond to number of banks suggested by the 'reg' property.2627Optional properties:2829- interrupts:30The interrupt shared by all GPIO lines for this controller.3132- interrupts-extended:33Alternate form of specifying interrupts and parents that allows for34multiple parents. This takes precedence over 'interrupts' and35'interrupt-parent'. Wakeup-capable GPIO controllers often route their36wakeup interrupt lines through a different interrupt controller than the37primary interrupt line, making this property necessary.3839- #interrupt-cells:40Should be <2>. The first cell is the GPIO number, the second should specify41flags. The following subset of flags is supported:42- bits[3:0] trigger type and level flags431 = low-to-high edge triggered442 = high-to-low edge triggered454 = active high level-sensitive468 = active low level-sensitive47Valid combinations are 1, 2, 3, 4, 8.48See also Documentation/devicetree/bindings/interrupt-controller/interrupts.txt4950- interrupt-controller:51Marks the device node as an interrupt controller5253- wakeup-source:54GPIOs for this controller can be used as a wakeup source5556Example:57upg_gio: gpio@f040a700 {58#gpio-cells = <2>;59#interrupt-cells = <2>;60compatible = "brcm,bcm7445-gpio", "brcm,brcmstb-gpio";61gpio-controller;62interrupt-controller;63reg = <0xf040a700 0x80>;64interrupt-parent = <&irq0_intc>;65interrupts = <0x6>;66brcm,gpio-bank-widths = <32 32 32 24>;67};6869upg_gio_aon: gpio@f04172c0 {70#gpio-cells = <2>;71#interrupt-cells = <2>;72compatible = "brcm,bcm7445-gpio", "brcm,brcmstb-gpio";73gpio-controller;74interrupt-controller;75reg = <0xf04172c0 0x40>;76interrupt-parent = <&irq0_aon_intc>;77interrupts = <0x6>;78interrupts-extended = <&irq0_aon_intc 0x6>,79<&aon_pm_l2_intc 0x5>;80wakeup-source;81brcm,gpio-bank-widths = <18 4>;82};838485