0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/gpio/pl061-gpio.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: ARM PL061 GPIO controller
0008
0009 maintainers:
0010 - Linus Walleij <linus.walleij@linaro.org>
0011 - Rob Herring <robh@kernel.org>
0012
0013 # We need a select here so we don't match all nodes with 'arm,primecell'
0014 select:
0015 properties:
0016 compatible:
0017 contains:
0018 const: arm,pl061
0019 required:
0020 - compatible
0021
0022 properties:
0023 $nodename:
0024 pattern: "^gpio@[0-9a-f]+$"
0025
0026 compatible:
0027 items:
0028 - const: arm,pl061
0029 - const: arm,primecell
0030
0031 reg:
0032 maxItems: 1
0033
0034 interrupts:
0035 oneOf:
0036 - maxItems: 1
0037 - maxItems: 8
0038
0039 interrupt-controller: true
0040
0041 "#interrupt-cells":
0042 const: 2
0043
0044 clocks:
0045 maxItems: 1
0046
0047 clock-names: true
0048
0049 "#gpio-cells":
0050 const: 2
0051
0052 gpio-controller: true
0053
0054 gpio-line-names: true
0055
0056 gpio-ranges:
0057 minItems: 1
0058 maxItems: 8
0059
0060 required:
0061 - compatible
0062 - reg
0063 - interrupts
0064 - interrupt-controller
0065 - "#interrupt-cells"
0066 - clocks
0067 - "#gpio-cells"
0068 - gpio-controller
0069
0070 additionalProperties: false
0071
0072 ...