Debian Codegraph @

dtschema/schemas/property-units.yaml

raw
1 # SPDX-License-Identifier: BSD-2-Clause
2 # Copyright 2018 Linaro Ltd.
3 %YAML 1.2
4 ---
5 $id: http://devicetree.org/schemas/property-units.yaml#
6 $schema: http://devicetree.org/meta-schemas/base.yaml#
7
8 title: Standard Unit Suffixes for Property names
9
10 maintainers:
11 - Devicetree Specification Mailing List <[email protected]>
12
13 description:
14 Properties which have a unit of measure are recommended to have a unit
15 suffix appended to the property name. The list below contains the
16 recommended suffixes. Other variations exist in bindings, but should not
17 be used in new bindings or added here. The inconsistency in the unit
18 prefixes is due to selecting the most commonly used variants.
19
20 It is also recommended to use the units listed here and not add additional
21 unit prefixes.
22
23 select: true
24
25 # Special case(s) which don't follow the standard type.
26 # Please don't add to this.
27 properties:
28 opp-hz:
29 $ref: types.yaml#/definitions/uint64-matrix
30
31 patternProperties:
32 "-bits$":
33 $ref: types.yaml#/definitions/uint32-array
34 description: number of bits
35
36 "-bps$":
37 $ref: types.yaml#/definitions/uint32
38 description: bits per second
39
40 "-kBps$":
41 $ref: types.yaml#/definitions/uint32-array
42 description: kilobytes per second
43
44 "-percent$":
45 $ref: types.yaml#/definitions/int32-array
46 description: percentage
47
48 "-bp$":
49 $ref: types.yaml#/definitions/int32-array
50 description: basis points (1/100 of a percent)
51
52 "-db$":
53 $ref: types.yaml#/definitions/int32-array
54 description: decibels
55
56 # Time/Frequency
57 "-mhz$":
58 $ref: types.yaml#/definitions/uint32-array
59 description: megahertz
60 "(^(?!opp)).*-hz$":
61 $ref: types.yaml#/definitions/uint32-matrix
62 description: hertz (preferred)
63 "-sec$":
64 $ref: types.yaml#/definitions/uint32-array
65 description: second
66 # Really is "marvell,wakeup-gap-ms", but look-behind requires a fixed width pattern
67 "(?<!(rvell,wakeup-gap|refresh-interval))-ms$":
68 $ref: types.yaml#/definitions/uint32-array
69 description: millisecond
70 "-us$":
71 $ref: types.yaml#/definitions/uint32-array
72 description: microsecond
73 "-ns$":
74 $ref: types.yaml#/definitions/uint32-array
75 description: nanosecond
76 "-ps$":
77 $ref: types.yaml#/definitions/uint32-array
78 description: picosecond
79
80 # Distance
81 "-mm$":
82 $ref: types.yaml#/definitions/uint32-array
83 description: millimeter
84
85 # Electricity
86 "-microamp$":
87 $ref: types.yaml#/definitions/uint32-array
88 description: microampere
89 "-nanoamp$":
90 $ref: types.yaml#/definitions/uint32-array
91 description: nanoampere
92 "-picoamp$":
93 $ref: types.yaml#/definitions/uint32-array
94 description: picoampere
95 "-microamp-hours$":
96 $ref: types.yaml#/definitions/uint32-array
97 description: microampere hour
98 "(?<!ti,[xy]-plate)-ohms$":
99 $ref: types.yaml#/definitions/uint32-array
100 description: ohm
101 "-micro-ohms$":
102 $ref: types.yaml#/definitions/uint32-array
103 description: microohm
104 "-microwatt$":
105 $ref: types.yaml#/definitions/uint32-array
106 description: microwatt
107 "-milliwatt$":
108 $ref: types.yaml#/definitions/uint32-array
109 description: milliwatt
110 "-microwatt-hours$":
111 $ref: types.yaml#/definitions/uint32-array
112 description: microwatt hour
113 "-microvolt$":
114 $ref: types.yaml#/definitions/int32-matrix
115 description: microvolt
116 "-picofarads$":
117 $ref: types.yaml#/definitions/uint32-array
118 description: picofarad
119 "-femtofarads$":
120 $ref: types.yaml#/definitions/uint32-array
121 description: femtofarad
122
123 # Temperature
124 "-celsius$":
125 $ref: types.yaml#/definitions/int32-array
126 description: degree Celsius
127 "-millicelsius$":
128 $ref: types.yaml#/definitions/int32-array
129 description: millidegree Celsius
130 "-kelvin$":
131 $ref: types.yaml#/definitions/uint32-array
132 description: SI unit of thermodynamic temperature
133
134 # Pressure
135 "-pascal$":
136 $ref: types.yaml#/definitions/int32-array
137 description: pascal
138 "-kpascal$":
139 $ref: types.yaml#/definitions/int32-array
140 description: kilopascal
141
142 additionalProperties: true