treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / Documentation / devicetree / bindings / gpio / pl061-gpio.yaml
blob313b1722924758d08f8acef0432d7cbe3e27e613
1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/gpio/pl061-gpio.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: ARM PL061 GPIO controller
9 maintainers:
10   - Linus Walleij <linus.walleij@linaro.org>
11   - Rob Herring <robh@kernel.org>
13 # We need a select here so we don't match all nodes with 'arm,primecell'
14 select:
15   properties:
16     compatible:
17       contains:
18         const: arm,pl061
19   required:
20     - compatible
22 properties:
23   $nodename:
24     pattern: "^gpio@[0-9a-f]+$"
26   compatible:
27     items:
28       - const: arm,pl061
29       - const: arm,primecell
31   reg:
32     maxItems: 1
34   interrupts:
35     oneOf:
36       - maxItems: 1
37       - maxItems: 8
39   interrupt-controller: true
41   "#interrupt-cells":
42     const: 2
44   clocks:
45     maxItems: 1
47   clock-names: true
49   "#gpio-cells":
50     const: 2
52   gpio-controller: true
54   gpio-ranges:
55     maxItems: 8
57 required:
58   - compatible
59   - reg
60   - interrupts
61   - interrupt-controller
62   - "#interrupt-cells"
63   - clocks
64   - "#gpio-cells"
65   - gpio-controller
67 additionalProperties: false
69 ...