Debian Codegraph @

dtschema/schemas/gpio/gpio-consumer.yaml

raw
1 # SPDX-License-Identifier: BSD-2-Clause
2 # Copyright 2018 Linaro Ltd.
3 $id: http://devicetree.org/schemas/gpio/gpio-consumer.yaml#
4 $schema: http://devicetree.org/meta-schemas/base.yaml#
5
6 title: GPIO Consumer Common Properties
7
8 description: Schema for GPIO consumer devicetree bindings
9
10 maintainers:
11 - Rob Herring <[email protected]>
12
13 # do not select this schema for GPIO hogs
14 select:
15 properties:
16 gpio-hog: false
17
18 properties:
19 gpios:
20 $ref: /schemas/types.yaml#/definitions/phandle-array
21
22 gpio:
23 # 'gpio' can appear as a property or node name
24 oneOf:
25 - type: object
26 - $ref: /schemas/types.yaml#/definitions/phandle-array
27
28
29 patternProperties:
30 "(?<!,nr)-gpios?$":
31 $ref: /schemas/types.yaml#/definitions/phandle-array
32
33 additionalProperties: true