Freescale VF610 PORT/GPIO module
Schema identifier ($id): "http://devicetree.org/schemas/gpio/gpio-vf610.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Stefan Agner <stefan@agner.ch>"
The Freescale PORT/GPIO modules are two adjacent modules providing GPIO functionality. Each pair serves 32 GPIOs. The VF610 has 5 instances of each, and each PORT module has its own interrupt.
Note: Each GPIO port should have an alias correctly numbered in "aliases" node.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"fsl,imx8ulp-gpio"
Rule 2
Exact value (
const):"fsl,vf610-gpio"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"fsl,imx7ulp-gpio"Item 2
Exact value (
const):"fsl,vf610-gpio"
Rule 4
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,imx93-gpio","fsl,imx94-gpio","fsl,imx95-gpio"Item 2
Exact value (
const):"fsl,imx8ulp-gpio"
reg — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
interrupts — required here #
Array item rules (items) #
Item 1
GPIO Trustzone non-secure interrupt number
Item 2
GPIO Trustzone secure interrupt number
Minimum number of items (minItems): 1
interrupt-controller — required here #
true — No constraints added by this property rule.
#interrupt-cells — required here #
Exact value (const): 2
#gpio-cells — required here #
Exact value (const): 2
gpio-controller — required here #
true — No constraints added by this property rule.
gpio-line-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 32
clocks — not listed as required here #
Array item rules (items) #
Item 1
SoC GPIO clock
Item 2
SoC PORT clock
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"gpio"
Item 2
Exact value (
const):"port"
gpio-ranges — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
gpio-reserved-ranges — not listed as required here #
true — No constraints added by this property rule.
ngpios — not listed as required here #
Minimum value (minimum): 1
Maximum value (maximum): 32
Default value (default): 32
Properties matching a name pattern (patternProperties) #
^.+-hog(-[0-9]+)?$ — name matches this regular expression #
Value type (type): "object"
Required in this object (required): "gpio-hog"
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-controller", "#interrupt-cells", "#gpio-cells", "gpio-controller"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMaximum number of items (
maxItems):1
reg— not listed as required hereArray item rules (
items)Item 1
PORT register base address
Item 2
GPIO register base address
When the condition does not match (
else) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):2
reg— not listed as required hereArray item rules (
items)Item 1
GPIO register base address
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>
gpio1: gpio@40049000 {
compatible = "fsl,vf610-gpio";
reg = <0x40049000 0x1000>, <0x400ff000 0x40>;
interrupts = <0 107 IRQ_TYPE_LEVEL_HIGH>;
gpio-controller;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
gpio-ranges = <&iomuxc 0 0 32>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)