Debian Codegraph @

dtschema/meta-schemas/gpios.yaml

raw
1 # SPDX-License-Identifier: BSD-2-Clause
2 # Copyright 2018 Linaro Ltd.
3 # Copyright 2018 Arm Ltd.
4 %YAML 1.2
5 ---
6 $id: http://devicetree.org/meta-schemas/gpios.yaml#
7 $schema: https://json-schema.org/draft/2019-09/schema
8
9 properties:
10 gpio-controller:
11 $ref: boolean.yaml
12 gpio-line-names:
13 $ref: string-array.yaml
14 ngpios:
15 $ref: cell.yaml#/single
16 gpio-ranges:
17 $ref: cell.yaml#/array
18 gpios:
19 $ref: cell.yaml#/array
20
21 patternProperties:
22 '(?<!,nr)-gpios?$':
23 $ref: cell.yaml#/array
24
25 dependentRequired:
26 gpio-controller: ['#gpio-cells']
27 '#gpio-cells': [gpio-controller]
28 gpio-ranges: [gpio-controller]
29 ngpios: [gpio-controller]