1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-C 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/gpio/gpio-z 4 $id: http://devicetree.org/schemas/gpio/gpio-zynq.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Xilinx Zynq GPIO controller 7 title: Xilinx Zynq GPIO controller 8 8 9 maintainers: 9 maintainers: 10 - Michal Simek <michal.simek@amd.com> 10 - Michal Simek <michal.simek@amd.com> 11 11 12 properties: 12 properties: 13 compatible: 13 compatible: 14 enum: 14 enum: 15 - xlnx,zynq-gpio-1.0 15 - xlnx,zynq-gpio-1.0 16 - xlnx,zynqmp-gpio-1.0 16 - xlnx,zynqmp-gpio-1.0 17 - xlnx,versal-gpio-1.0 17 - xlnx,versal-gpio-1.0 18 - xlnx,pmc-gpio-1.0 18 - xlnx,pmc-gpio-1.0 19 19 20 reg: 20 reg: 21 maxItems: 1 21 maxItems: 1 22 22 23 "#gpio-cells": 23 "#gpio-cells": 24 const: 2 24 const: 2 25 25 26 interrupts: 26 interrupts: 27 maxItems: 1 27 maxItems: 1 28 28 29 gpio-controller: true 29 gpio-controller: true 30 30 31 gpio-line-names: 31 gpio-line-names: 32 description: strings describing the names 32 description: strings describing the names of each gpio line 33 minItems: 58 33 minItems: 58 34 maxItems: 174 34 maxItems: 174 35 35 36 interrupt-controller: true 36 interrupt-controller: true 37 37 38 "#interrupt-cells": 38 "#interrupt-cells": 39 const: 2 39 const: 2 40 40 41 clocks: 41 clocks: 42 maxItems: 1 42 maxItems: 1 43 43 44 power-domains: 44 power-domains: 45 maxItems: 1 45 maxItems: 1 46 46 47 allOf: 47 allOf: 48 - if: 48 - if: 49 properties: 49 properties: 50 compatible: 50 compatible: 51 enum: 51 enum: 52 - xlnx,zynqmp-gpio-1.0 52 - xlnx,zynqmp-gpio-1.0 53 then: 53 then: 54 properties: 54 properties: 55 gpio-line-names: 55 gpio-line-names: 56 minItems: 174 56 minItems: 174 57 maxItems: 174 57 maxItems: 174 58 58 59 - if: 59 - if: 60 properties: 60 properties: 61 compatible: 61 compatible: 62 enum: 62 enum: 63 - xlnx,zynq-gpio-1.0 63 - xlnx,zynq-gpio-1.0 64 then: 64 then: 65 properties: 65 properties: 66 gpio-line-names: 66 gpio-line-names: 67 minItems: 118 67 minItems: 118 68 maxItems: 118 68 maxItems: 118 69 69 70 - if: 70 - if: 71 properties: 71 properties: 72 compatible: 72 compatible: 73 enum: 73 enum: 74 - xlnx,versal-gpio-1.0 74 - xlnx,versal-gpio-1.0 75 then: 75 then: 76 properties: 76 properties: 77 gpio-line-names: 77 gpio-line-names: 78 minItems: 58 78 minItems: 58 79 maxItems: 58 79 maxItems: 58 80 80 81 - if: 81 - if: 82 properties: 82 properties: 83 compatible: 83 compatible: 84 enum: 84 enum: 85 - xlnx,pmc-gpio-1.0 85 - xlnx,pmc-gpio-1.0 86 then: 86 then: 87 properties: 87 properties: 88 gpio-line-names: 88 gpio-line-names: 89 minItems: 116 89 minItems: 116 90 maxItems: 116 90 maxItems: 116 91 91 92 required: 92 required: 93 - compatible 93 - compatible 94 - reg 94 - reg 95 - "#gpio-cells" 95 - "#gpio-cells" 96 - interrupts 96 - interrupts 97 - gpio-controller 97 - gpio-controller 98 - interrupt-controller 98 - interrupt-controller 99 - "#interrupt-cells" 99 - "#interrupt-cells" 100 - clocks 100 - clocks 101 101 102 additionalProperties: false 102 additionalProperties: false 103 103 104 examples: 104 examples: 105 - | 105 - | 106 gpio@e000a000 { 106 gpio@e000a000 { 107 #gpio-cells = <2>; 107 #gpio-cells = <2>; 108 compatible = "xlnx,zynq-gpio-1.0"; 108 compatible = "xlnx,zynq-gpio-1.0"; 109 clocks = <&clkc 42>; 109 clocks = <&clkc 42>; 110 gpio-controller; 110 gpio-controller; 111 interrupt-parent = <&intc>; 111 interrupt-parent = <&intc>; 112 interrupts = <0 20 4>; 112 interrupts = <0 20 4>; 113 interrupt-controller; 113 interrupt-controller; 114 #interrupt-cells = <2>; 114 #interrupt-cells = <2>; 115 reg = <0xe000a000 0x1000>; 115 reg = <0xe000a000 0x1000>; 116 }; 116 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.