Broadcom iProc GPIO/PINCONF Controller
Schema identifier ($id): "http://devicetree.org/schemas/pinctrl/brcm,iproc-gpio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Ray Jui <rjui@broadcom.com>", "Scott Branden <sbranden@broadcom.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"brcm,cygnus-asiu-gpio","brcm,cygnus-ccm-gpio","brcm,cygnus-crmu-gpio","brcm,iproc-gpio","brcm,iproc-stingray-gpio"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"brcm,iproc-hr2-gpio","brcm,iproc-nsp-gpio"Item 2
Exact value (
const):"brcm,iproc-gpio"
reg — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
GPIO Bank registers
Item 2
IO Ctrl registers
#gpio-cells — required here #
Exact value (const): 2
gpio-controller — 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.
ngpios — 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
interrupt-controller — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "#gpio-cells", "gpio-controller", "ngpios"
Properties matching a name pattern (patternProperties) #
-pins$ — name matches this regular expression #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
Pin configuration child nodes.
All of these rules must match (
allOf)Rule 1
Shared schema rule (
$ref):pincfg-node.yaml#Rule 2
Shared schema rule (
$ref):pinmux-node.yaml#Properties not matched by properties or patternProperties in this schema (
additionalProperties)
falseNot allowed by this rule.
Properties and child nodes (
properties)
pins— required hereArray item rules (
items)String pattern (
pattern):"^gpio-"
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.
drive-strength— not listed as required here
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>
gpio@1800a000 {
compatible = "brcm,cygnus-ccm-gpio";
reg = <0x1800a000 0x50>,
<0x0301d164 0x20>;
ngpios = <24>;
#gpio-cells = <2>;
gpio-controller;
#interrupt-cells = <2>;
interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
interrupt-controller;
touch-pins {
pwr {
pins = "gpio-0";
drive-strength = <16>;
};
event {
pins = "gpio-1";
bias-pull-up;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)