1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/gpio/xlnx,gpio-xilinx.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Xilinx AXI GPIO controller
10 - Neeli Srinivas <srinivas.neeli@amd.com>
13 The AXI GPIO design provides a general purpose input/output interface
14 to an AXI4-Lite interface. The AXI GPIO can be configured as either
15 a single or a dual-channel device. The width of each channel is
16 independently configurable. The channels can be configured to
17 generate an interrupt when a transition on any of their inputs occurs.
22 - xlnx,xps-gpio-1.00.a
36 description: strings describing the names of each gpio line
40 interrupt-controller: true
51 $ref: /schemas/types.yaml#/definitions/uint32
52 description: This option sets this GPIO channel1 bits in input mode.
55 $ref: /schemas/types.yaml#/definitions/uint32
56 description: This option sets this GPIO channel2 bits in input mode.
59 $ref: /schemas/types.yaml#/definitions/uint32
60 description: This option sets this GPIO channel1 bits in output mode.
63 $ref: /schemas/types.yaml#/definitions/uint32
64 description: This option sets this GPIO channel2 bits in output mode.
67 $ref: /schemas/types.yaml#/definitions/uint32
68 description: Sets the default value of all the enabled bits of
73 $ref: /schemas/types.yaml#/definitions/uint32
74 description: Sets the default value of all the enabled bits of
79 $ref: /schemas/types.yaml#/definitions/uint32
80 description: The value defines the bit width of the GPIO channel1.
86 $ref: /schemas/types.yaml#/definitions/uint32
87 description: The value defines the bit width of the GPIO channel2.
92 xlnx,interrupt-present:
93 $ref: /schemas/types.yaml#/definitions/uint32
94 description: This parameter enables interrupt control logic
95 and interrupt registers in GPIO module.
101 $ref: /schemas/types.yaml#/definitions/uint32
102 description: This parameter enables a second GPIO channel (GPIO2).
108 $ref: /schemas/types.yaml#/definitions/uint32
109 description: This value configures the input or output mode
110 of each bit of GPIO channel1.
113 $ref: /schemas/types.yaml#/definitions/uint32
114 description: This value configures the input or output mode
115 of each bit of GPIO channel2.
123 unevaluatedProperties: false
127 #include <dt-bindings/interrupt-controller/arm-gic.h>
130 compatible = "xlnx,xps-gpio-1.00.a";
131 reg = <0xa0020000 0x10000>;
133 #interrupt-cells = <0x2>;
134 clocks = <&zynqmp_clk 71>;
136 interrupt-controller;
137 interrupt-names = "ip2intc_irpt";
138 interrupt-parent = <&gic>;
139 interrupts = <0 89 4>;
140 xlnx,all-inputs = <0x0>;
141 xlnx,all-inputs-2 = <0x0>;
142 xlnx,all-outputs = <0x0>;
143 xlnx,all-outputs-2 = <0x0>;
144 xlnx,dout-default = <0x0>;
145 xlnx,dout-default-2 = <0x0>;
146 xlnx,gpio-width = <0x20>;
147 xlnx,gpio2-width = <0x20>;
148 xlnx,interrupt-present = <0x1>;
149 xlnx,is-dual = <0x1>;
150 xlnx,tri-default = <0xFFFFFFFF>;
151 xlnx,tri-default-2 = <0xFFFFFFFF>;