1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/gpio/brcm,brcmstb-gpio.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Broadcom STB "UPG GIO" GPIO controller
10 The controller's registers are organized as sets of eight 32-bit
11 registers with each set controlling a bank of up to 32 pins. A single
12 interrupt is shared for all of the banks handled by the controller.
15 - Doug Berger <opendmb@gmail.com>
16 - Florian Fainelli <f.fainelli@gmail.com>
23 - const: brcm,brcmstb-gpio
28 Define the base and range of the I/O address space containing
29 the brcmstb GPIO controller registers
34 The first cell is the pin number (within the controller's
35 pin space), and the second is used for the following:
36 bit[0]: polarity (0 for active-high, 1 for active-low)
40 brcm,gpio-bank-widths:
41 $ref: /schemas/types.yaml#/definitions/uint32-array
43 Number of GPIO lines for each bank. Number of elements must
44 correspond to number of banks suggested by the 'reg' property.
49 The interrupt shared by all GPIO lines for this controller.
54 The first cell is the GPIO number, the second should specify
55 flags. The following subset of flags is supported:
56 - bits[3:0] trigger type and level flags
57 1 = low-to-high edge triggered
58 2 = high-to-low edge triggered
59 4 = active high level-sensitive
60 8 = active low level-sensitive
61 Valid combinations are 1, 2, 3, 4, 8.
63 interrupt-controller: true
70 GPIOs for this controller can be used as a wakeup source
77 - brcm,gpio-bank-widths
79 additionalProperties: false
83 upg_gio: gpio@f040a700 {
85 #interrupt-cells = <2>;
86 compatible = "brcm,bcm7445-gpio", "brcm,brcmstb-gpio";
89 reg = <0xf040a700 0x80>;
90 interrupt-parent = <&irq0_intc>;
92 brcm,gpio-bank-widths = <32 32 32 24>;
93 gpio-ranges = <&pinctrl 0 0 120>;
96 upg_gio_aon: gpio@f04172c0 {
98 #interrupt-cells = <2>;
99 compatible = "brcm,bcm7445-gpio", "brcm,brcmstb-gpio";
101 interrupt-controller;
102 reg = <0xf04172c0 0x40>;
103 interrupt-parent = <&irq0_aon_intc>;
106 brcm,gpio-bank-widths = <18 4>;