Debian Codegraph @

dtschema/schemas/gpio/gpio-hog.yaml

raw
1 # SPDX-License-Identifier: BSD-2-Clause
2 # Copyright 2018 Linaro Ltd.
3 $id: http://devicetree.org/schemas/gpio/gpio-hog.yaml#
4 $schema: http://devicetree.org/meta-schemas/base.yaml#
5
6 title: GPIO Hog Nodes
7
8 description: Schema for GPIO hog devicetree bindings
9
10 maintainers:
11 - Rob Herring <[email protected]>
12
13 # select this schema for GPIO hogs
14 select:
15 properties:
16 gpio-hog: true
17
18 required:
19 - gpio-hog
20
21 properties:
22 $nodename:
23 pattern: "-hog(-[0-9]+)?$"
24
25 gpio-hog:
26 $ref: /schemas/types.yaml#/definitions/flag
27
28 gpios:
29 $ref: /schemas/types.yaml#/definitions/uint32-matrix
30
31 input:
32 $ref: /schemas/types.yaml#/definitions/flag
33
34 line-name:
35 $ref: /schemas/types.yaml#/definitions/string
36
37 output-high:
38 $ref: /schemas/types.yaml#/definitions/flag
39
40 output-low:
41 $ref: /schemas/types.yaml#/definitions/flag
42
43 required:
44 - gpio-hog
45 - gpios
46
47 oneOf:
48 - required:
49 - input
50 - required:
51 - output-high
52 - required:
53 - output-low
54
55 additionalProperties: false