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