Debian Codegraph @

dtschema/meta-schemas/vendor-props.yaml

raw
1 # SPDX-License-Identifier: BSD-2-Clause
2 # Copyright 2018 Linaro Ltd.
3 # Copyright 2018-2019 Arm Ltd.
4 %YAML 1.2
5 ---
6 $id: http://devicetree.org/meta-schemas/vendor-props.yaml#
7 $schema: https://json-schema.org/draft/2019-09/schema
8
9 description: Metaschema for vendor specific properties
10
11 properties:
12 adi,channels:
13 type: object
14
15 patternProperties:
16 '[\[\]*{}$\^\\]+': true # exclude regex's
17 '^[^,]*$': true
18 '^linux,.*$': true
19 '-(gpio|gpios)$': true
20 '-supply$': true
21 '^rcar_sound,': true
22 '-(bits|bps|kBps|percent|bp|db|mhz|hz|sec|ms|us|ns|ps|mm)$': true
23 '-(nanoamp|microamp|microamp-hours|ohms|micro-ohms|microwatt-hours)$': true
24 '-(microvolt|(femto|pico)farads|celsius|millicelsius|kelvin|k?pascal)$': true
25
26 ",.*-names$":
27 type: object
28 required:
29 - description
30
31 additionalProperties:
32 type: [boolean, object]
33 description: Vendor specific properties must have a type and description
34 unless they have a defined, common suffix.
35
36 properties:
37 type:
38 description: 'A vendor boolean property can use "type: boolean"'
39 const: boolean
40
41 dependentRequired:
42 type: [description]
43
44 anyOf:
45 - properties:
46 $ref:
47 description: A vendor property needs a $ref to types.yaml
48 pattern: "types.yaml#\/definitions\/"
49 dependentRequired:
50 $ref: [description]
51 - properties:
52 $ref:
53 description: A vendor property can have a $ref to a a $defs schema
54 pattern: "^#\/(definitions|\\$defs)\/"
55
56 ...