Skip to content

Commit

Permalink
dt-bindings: mfd: stm32-timers: Move fixed string node names under 'p…
Browse files Browse the repository at this point in the history
…roperties'

Fixed string node names should be under 'properties' rather than
'patternProperties'. Additionally, without beginning and end of line
anchors, any prefix or suffix is allowed on the specified node name.

Move the stm32 timers 'counter' and 'timer' nodes to the 'properties'
section.

Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20220706211934.567432-1-robh@kernel.org
  • Loading branch information
robherring authored and lag-linaro committed Jul 22, 2022
1 parent 596f2d3 commit ae4ccae
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
28 changes: 14 additions & 14 deletions Documentation/devicetree/bindings/mfd/st,stm32-lptimer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,43 +58,43 @@ properties:
- "#pwm-cells"
- compatible

patternProperties:
"^trigger@[0-9]+$":
counter:
type: object

properties:
compatible:
const: st,stm32-lptimer-trigger

reg:
description: Identify trigger hardware block.
items:
minimum: 0
maximum: 2
const: st,stm32-lptimer-counter

required:
- compatible
- reg

counter:
timer:
type: object

properties:
compatible:
const: st,stm32-lptimer-counter
const: st,stm32-lptimer-timer

required:
- compatible

timer:
patternProperties:
"^trigger@[0-9]+$":
type: object

properties:
compatible:
const: st,stm32-lptimer-timer
const: st,stm32-lptimer-trigger

reg:
description: Identify trigger hardware block.
items:
minimum: 0
maximum: 2

required:
- compatible
- reg

required:
- "#address-cells"
Expand Down
20 changes: 10 additions & 10 deletions Documentation/devicetree/bindings/mfd/st,stm32-timers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ properties:
- "#pwm-cells"
- compatible

counter:
type: object

properties:
compatible:
const: st,stm32-timer-counter

required:
- compatible

patternProperties:
"^timer@[0-9]+$":
type: object
Expand All @@ -122,16 +132,6 @@ patternProperties:
- compatible
- reg

counter:
type: object

properties:
compatible:
const: st,stm32-timer-counter

required:
- compatible

required:
- compatible
- reg
Expand Down

0 comments on commit ae4ccae

Please sign in to comment.