Skip to content

Commit e766d5b

Browse files
krzkthierryreding
authored andcommitted
dt-bindings: pwm: imx: Include generic PWM schema
Include generic pwm.yaml schema, which enforces PWM node naming and brings pwm-cells requirement. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
1 parent 360e770 commit e766d5b

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

Documentation/devicetree/bindings/pwm/imx-pwm.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ title: Freescale i.MX PWM controller
99
maintainers:
1010
- Philipp Zabel <p.zabel@pengutronix.de>
1111

12+
allOf:
13+
- $ref: pwm.yaml#
14+
1215
properties:
1316
"#pwm-cells":
1417
description: |
@@ -59,7 +62,6 @@ properties:
5962
maxItems: 1
6063

6164
required:
62-
- "#pwm-cells"
6365
- compatible
6466
- reg
6567
- clocks

Documentation/devicetree/bindings/pwm/imx-tpm-pwm.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ description: |
1313
The TPM counter and period counter are shared between multiple
1414
channels, so all channels should use same period setting.
1515
16+
allOf:
17+
- $ref: pwm.yaml#
18+
1619
properties:
1720
"#pwm-cells":
1821
const: 3
@@ -34,7 +37,6 @@ properties:
3437
maxItems: 1
3538

3639
required:
37-
- "#pwm-cells"
3840
- compatible
3941
- reg
4042
- clocks

0 commit comments

Comments
 (0)