Broadcom BCM2835 GPIO (and pinmux) controller

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

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

Maintainers (maintainers): "Florian Fainelli <f.fainelli@gmail.com>"

The BCM2835 GPIO module is a combined GPIO controller, (GPIO) interrupt controller, and pinmux/control device.

Properties and child nodes (properties) #

compatible — not listed as required here #

Allowed values (enum): "brcm,bcm2835-gpio", "brcm,bcm2711-gpio", "brcm,bcm7211-gpio"

reg — not listed as required here #

Maximum number of items (maxItems): 1

#gpio-cells — not listed as required here #

Exact value (const): 2

gpio-controller — not listed as required here #

true — No constraints added by this property rule.

gpio-ranges — not listed as required here #

true — No constraints added by this property rule.

gpio-line-names — not listed as required here #

true — No constraints added by this property rule.

interrupts — not listed as required here #

Interrupt outputs: one per bank, then the combined “all banks” line. BCM7211 may specify up to four per-bank wake-up lines and one combined wake-up interrupt.

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 10

#interrupt-cells — not listed as required here #

Exact value (const): 2

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

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

Exactly one of these rules must match (oneOf) #

Rule 1 #

Value type (type): "object"

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

false

Not allowed by this rule.

Properties matching a name pattern (patternProperties)

^pins?- — name matches this regular expression

Value type (type): "object"

All of these rules must match (allOf)

Rule 1

Shared schema rule ($ref): /schemas/pinctrl/pincfg-node.yaml#

Rule 2

Shared schema rule ($ref): /schemas/pinctrl/pinmux-node.yaml#

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

false

Not allowed by this rule.

Properties and child nodes (properties)

pins — required here

true — No constraints added by this property rule.

function — required here

true — No constraints added by this property rule.

bias-disable — not listed as required here

true — No constraints added by this property rule.

bias-pull-up — not listed as required here

true — No constraints added by this property rule.

bias-pull-down — not listed as required here

true — No constraints added by this property rule.

output-high — not listed as required here

true — No constraints added by this property rule.

output-low — not listed as required here

true — No constraints added by this property rule.

Required in this object (required): "pins", "function"

Rule 2 #

Value type (type): "object"

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

false

Not allowed by this rule.

Deprecated (deprecated): true

Properties and child nodes (properties)

brcm,pins — required here

GPIO pin numbers for legacy configuration.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

brcm,function — not listed as required here

Legacy mux function for the pins (0=input, 1=output, 2–7=alt functions).

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Maximum value (maximum): 7

brcm,pull — not listed as required here

Legacy pull setting for the pins (0=none, 1=pull-down, 2=pull-up).

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Maximum value (maximum): 2

Required in this object (required): "brcm,pins"

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)

Allowed values (enum): "brcm,bcm2835-gpio", "brcm,bcm2711-gpio"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Maximum number of items (maxItems): 5

Examples (examples) #

gpio@2200000 {
    compatible = "brcm,bcm2835-gpio";
    reg = <0x2200000 0xb4>;
    interrupts = <2 17>, <2 19>, <2 18>, <2 20>, <2 21>;
    #gpio-cells = <2>;
    gpio-controller;
    #interrupt-cells = <2>;
    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