Skip to content

Commit

Permalink
schemas: property-units: Exclude some non-conforming properties
Browse files Browse the repository at this point in the history
There's a few properties with standard unit suffixes, but are the wrong
size. Given there's only 3 known cases, let's just list them explicitly.

Signed-off-by: Rob Herring (Arm) <[email protected]>
  • Loading branch information
robherring committed Aug 15, 2024
1 parent 8f5303c commit 449b457
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dtschema/schemas/property-units.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ patternProperties:
"-sec$":
$ref: types.yaml#/definitions/uint32-array
description: second
"-ms$":
# Really is "marvell,wakeup-gap-ms", but look-behind requires a fixed width pattern
"(?<!(rvell,wakeup-gap|refresh-interval))-ms$":
$ref: types.yaml#/definitions/uint32-array
description: millisecond
"-us$":
Expand Down Expand Up @@ -87,7 +88,7 @@ patternProperties:
"-microamp-hours$":
$ref: types.yaml#/definitions/uint32-array
description: microampere hour
"-ohms$":
"(?<!ti,[xy]-plate)-ohms$":
$ref: types.yaml#/definitions/uint32-array
description: ohm
"-micro-ohms$":
Expand Down

0 comments on commit 449b457

Please sign in to comment.