diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> | 2022-02-15 00:21:40 +0300 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2022-02-24 17:02:49 +0300 |
commit | 360e770c9c4d27cca50d17e34cf50d93a34eb457 (patch) | |
tree | fcc796017e2e76ba07eb43139e7d0629abbd0556 /Documentation | |
parent | 4d690e508a69f420b9689ce6688b6ad0eb39c703 (diff) | |
download | linux-360e770c9c4d27cca50d17e34cf50d93a34eb457.tar.xz |
dt-bindings: pwm: allwinner,sun4i-a10: 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>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml | 53 |
1 files changed, 28 insertions, 25 deletions
diff --git a/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml b/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml index 800d511502c4..e93e935564fb 100644 --- a/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml +++ b/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml @@ -52,33 +52,36 @@ properties: resets: maxItems: 1 -if: - properties: - compatible: - contains: - const: allwinner,sun50i-h6-pwm - -then: - properties: - clocks: - maxItems: 2 - - clock-names: - items: - - const: mod - - const: bus - - required: - - clock-names - - resets - -else: - properties: - clocks: - maxItems: 1 + +allOf: + - $ref: pwm.yaml# + + - if: + properties: + compatible: + contains: + const: allwinner,sun50i-h6-pwm + + then: + properties: + clocks: + maxItems: 2 + + clock-names: + items: + - const: mod + - const: bus + + required: + - clock-names + - resets + + else: + properties: + clocks: + maxItems: 1 required: - - "#pwm-cells" - compatible - reg - clocks |