brintos

brintos / linux-shallow public Read only

0
0
Text · 2.0 KiB · 5e24963 Raw
117 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/gpio/gpio-zynq.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Xilinx Zynq GPIO controller8 9maintainers:10  - Michal Simek <michal.simek@amd.com>11 12properties:13  compatible:14    enum:15      - xlnx,zynq-gpio-1.016      - xlnx,zynqmp-gpio-1.017      - xlnx,versal-gpio-1.018      - xlnx,pmc-gpio-1.019 20  reg:21    maxItems: 122 23  "#gpio-cells":24    const: 225 26  interrupts:27    maxItems: 128 29  gpio-controller: true30 31  gpio-line-names:32    description: strings describing the names of each gpio line33    minItems: 5834    maxItems: 17435 36  interrupt-controller: true37 38  "#interrupt-cells":39    const: 240 41  clocks:42    maxItems: 143 44  power-domains:45    maxItems: 146 47allOf:48  - if:49      properties:50        compatible:51          enum:52            - xlnx,zynqmp-gpio-1.053    then:54      properties:55        gpio-line-names:56          minItems: 17457          maxItems: 17458 59  - if:60      properties:61        compatible:62          enum:63            - xlnx,zynq-gpio-1.064    then:65      properties:66        gpio-line-names:67          minItems: 11868          maxItems: 11869 70  - if:71      properties:72        compatible:73          enum:74            - xlnx,versal-gpio-1.075    then:76      properties:77        gpio-line-names:78          minItems: 5879          maxItems: 5880 81  - if:82      properties:83        compatible:84          enum:85            - xlnx,pmc-gpio-1.086    then:87      properties:88        gpio-line-names:89          minItems: 11690          maxItems: 11691 92required:93  - compatible94  - reg95  - "#gpio-cells"96  - interrupts97  - gpio-controller98  - interrupt-controller99  - "#interrupt-cells"100  - clocks101 102additionalProperties: false103 104examples:105  - |106    gpio@e000a000 {107      #gpio-cells = <2>;108      compatible = "xlnx,zynq-gpio-1.0";109      clocks = <&clkc 42>;110      gpio-controller;111      interrupt-parent = <&intc>;112      interrupts = <0 20 4>;113      interrupt-controller;114      #interrupt-cells = <2>;115      reg = <0xe000a000 0x1000>;116    };117