Broadcom XGS iProc GPIO controller

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

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

Maintainers (maintainers): "Chris Packham <chris.packham@alliedtelesis.co.nz>"

This controller is the Chip Common A GPIO present on a number of Broadcom switch ASICs with integrated SoCs.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "brcm,iproc-gpio-cca"

reg — required here #

Array item rules (items) #

Item 1

the I/O address containing the GPIO controller registers.

Item 2

the I/O address containing the Chip Common A interrupt registers.

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

ngpios — not listed as required here #

Minimum value (minimum): 0

Maximum value (maximum): 32

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here #

Exact value (const): 2

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

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

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

false

Not allowed by this rule.

Property dependencies (dependencies) #

interrupt-controller — applies when this property is present #

Also requires: "interrupts"

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
gpio@18000060 {
    compatible = "brcm,iproc-gpio-cca";
    #gpio-cells = <2>;
    reg = <0x18000060 0x50>,
          <0x18000000 0x50>;
    ngpios = <12>;
    gpio-controller;
    interrupt-controller;
    #interrupt-cells = <2>;
    interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page