# 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 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 "-bps$": $ref: types.yaml#/definitions/uint32 description: bits per second "-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) "-db$": $ref: types.yaml#/definitions/int32-array description: decibels # 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 # Really is "marvell,wakeup-gap-ms", but look-behind requires a fixed width pattern "(?