Broadcom Kona family GPIO controller

Schema identifier ($id): "http://devicetree.org/schemas/gpio/brcm,kona-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The Broadcom GPIO Controller IP can be configured prior to synthesis to support up to 8 banks of 32 GPIOs where each bank has its own IRQ. The GPIO controller only supports edge, not level, triggering of interrupts.

Maintainers (maintainers): "Ray Jui <rjui@broadcom.com>"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "brcm,bcm11351-gpio", "brcm,bcm21664-gpio", "brcm,bcm23550-gpio"

Item 2

Exact value (const): "brcm,kona-gpio"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 6

The interrupt outputs from the controller. There is one GPIO interrupt per GPIO bank. The number of interrupts listed depends on the number of GPIO banks on the SoC. The interrupts must be ordered by bank, starting with bank 0. There is always a 1:1 mapping between banks and IRQs.

#gpio-cells — required here #

Exact value (const): 2

#interrupt-cells — required here #

Exact value (const): 2

gpio-controller — required here #

true — No constraints added by this property rule.

interrupt-controller — required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "reg", "interrupts", "#gpio-cells", "#interrupt-cells", "gpio-controller", "interrupt-controller"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "brcm,bcm11351-gpio"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 6

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "brcm,bcm21664-gpio", "brcm,bcm23550-gpio"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Maximum number of items (maxItems): 4

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>

gpio@35003000 {
    compatible = "brcm,bcm11351-gpio", "brcm,kona-gpio";
    reg = <0x35003000 0x800>;
    interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>;
    #gpio-cells = <2>;
    #interrupt-cells = <2>;
    gpio-controller;
    interrupt-controller;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Edit this page