Xilinx Zynq GPIO controller
Schema identifier ($id): "http://devicetree.org/schemas/gpio/gpio-zynq.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michal Simek <michal.simek@amd.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "xlnx,zynq-gpio-1.0", "xlnx,zynqmp-gpio-1.0", "xlnx,versal-gpio-1.0", "xlnx,pmc-gpio-1.0"
reg — required here #
Maximum number of items (maxItems): 1
#gpio-cells — required here #
Exact value (const): 2
interrupts — required here #
Maximum number of items (maxItems): 1
gpio-controller — required here #
true — No constraints added by this property rule.
gpio-line-names — not listed as required here #
strings describing the names of each gpio line
Minimum number of items (minItems): 58
Maximum number of items (maxItems): 174
interrupt-controller — required here #
true — No constraints added by this property rule.
#interrupt-cells — required here #
Exact value (const): 2
clocks — required here #
Maximum number of items (maxItems): 1
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereWhen the condition matches (
then) #Properties and child nodes (
properties)
gpio-line-names— not listed as required hereMinimum number of items (
minItems):174Maximum number of items (
maxItems):174
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereWhen the condition matches (
then) #Properties and child nodes (
properties)
gpio-line-names— not listed as required hereMinimum number of items (
minItems):118Maximum number of items (
maxItems):118
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereWhen the condition matches (
then) #Properties and child nodes (
properties)
gpio-line-names— not listed as required hereMinimum number of items (
minItems):58Maximum number of items (
maxItems):58
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereWhen the condition matches (
then) #Properties and child nodes (
properties)
gpio-line-names— not listed as required hereMinimum number of items (
minItems):116Maximum number of items (
maxItems):116
Required in this object (required): "compatible", "reg", "#gpio-cells", "interrupts", "gpio-controller", "interrupt-controller", "#interrupt-cells", "clocks"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
gpio@e000a000 {
#gpio-cells = <2>;
compatible = "xlnx,zynq-gpio-1.0";
clocks = <&clkc 42>;
gpio-controller;
interrupt-parent = <&intc>;
interrupts = <0 20 4>;
interrupt-controller;
#interrupt-cells = <2>;
reg = <0xe000a000 0x1000>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)