Xilinx AXI GPIO controller
Schema identifier ($id): "http://devicetree.org/schemas/gpio/xlnx,gpio-xilinx.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Neeli Srinivas <srinivas.neeli@amd.com>"
The AXI GPIO design provides a general purpose input/output interface to an AXI4-Lite interface. The AXI GPIO can be configured as either a single or a dual-channel device. The width of each channel is independently configurable. The channels can be configured to generate an interrupt when a transition on any of their inputs occurs.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "xlnx,xps-gpio-1.00.a"
reg — required here #
Maximum number of items (maxItems): 1
#gpio-cells — required here #
Exact value (const): 2
interrupts — not listed as 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): 1
Maximum number of items (maxItems): 64
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
clocks — required here #
Maximum number of items (maxItems): 1
interrupt-names — not listed as required here #
true — No constraints added by this property rule.
xlnx,all-inputs — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
This option sets this GPIO channel1 bits in input mode.
xlnx,all-inputs-2 — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
This option sets this GPIO channel2 bits in input mode.
xlnx,all-outputs — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
This option sets this GPIO channel1 bits in output mode.
xlnx,all-outputs-2 — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
This option sets this GPIO channel2 bits in output mode.
xlnx,dout-default — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Sets the default value of all the enabled bits of channel1.
Default value (default): 0
xlnx,dout-default-2 — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Sets the default value of all the enabled bits of channel2.
Default value (default): 0
xlnx,gpio-width — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
The value defines the bit width of the GPIO channel1.
Minimum value (minimum): 1
Maximum value (maximum): 32
Default value (default): 32
xlnx,gpio2-width — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
The value defines the bit width of the GPIO channel2.
Minimum value (minimum): 1
Maximum value (maximum): 32
Default value (default): 32
xlnx,interrupt-present — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
This parameter enables interrupt control logic and interrupt registers in GPIO module.
Minimum value (minimum): 0
Maximum value (maximum): 1
Default value (default): 0
xlnx,is-dual — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
This parameter enables a second GPIO channel (GPIO2).
Minimum value (minimum): 0
Maximum value (maximum): 1
Default value (default): 0
xlnx,tri-default — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
This value configures the input or output mode of each bit of GPIO channel1.
xlnx,tri-default-2 — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
This value configures the input or output mode of each bit of GPIO channel2.
Required in this object (required): "reg", "compatible", "clocks", "gpio-controller", "#gpio-cells"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
gpio@a0020000 {
compatible = "xlnx,xps-gpio-1.00.a";
reg = <0xa0020000 0x10000>;
#gpio-cells = <2>;
#interrupt-cells = <0x2>;
clocks = <&zynqmp_clk 71>;
gpio-controller;
interrupt-controller;
interrupt-names = "ip2intc_irpt";
interrupt-parent = <&gic>;
interrupts = <0 89 4>;
xlnx,all-inputs = <0x0>;
xlnx,all-inputs-2 = <0x0>;
xlnx,all-outputs = <0x0>;
xlnx,all-outputs-2 = <0x0>;
xlnx,dout-default = <0x0>;
xlnx,dout-default-2 = <0x0>;
xlnx,gpio-width = <0x20>;
xlnx,gpio2-width = <0x20>;
xlnx,interrupt-present = <0x1>;
xlnx,is-dual = <0x1>;
xlnx,tri-default = <0xFFFFFFFF>;
xlnx,tri-default-2 = <0xFFFFFFFF>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)