diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> | 2022-02-15 00:21:45 +0300 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2022-02-24 17:04:45 +0300 |
commit | ef75324d91eb7b03bda0304b8c1ec26049e054ad (patch) | |
tree | f5aa3fde9d42371b92e28092d83ee961d91e800c /Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml | |
parent | a63cb1a9f9e9d556769e0e146a9c9f442570635d (diff) | |
download | linux-ef75324d91eb7b03bda0304b8c1ec26049e054ad.tar.xz |
dt-bindings: pwm: rockchip: 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>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml')
-rw-r--r-- | Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml | 74 |
1 files changed, 38 insertions, 36 deletions
diff --git a/Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml b/Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml index 81a54a4e8e3e..a336ff9364a9 100644 --- a/Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml +++ b/Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml @@ -51,42 +51,44 @@ properties: required: - compatible - reg - - "#pwm-cells" - -if: - properties: - compatible: - contains: - enum: - - rockchip,rk3328-pwm - - rockchip,rv1108-pwm - -then: - properties: - clocks: - items: - - description: Used to derive the functional clock for the device. - - description: Used as the APB bus clock. - - clock-names: - items: - - const: pwm - - const: pclk - - required: - - clocks - - clock-names - -else: - properties: - clocks: - maxItems: 1 - description: - Used both to derive the functional clock - for the device and as the bus clock. - - required: - - clocks + +allOf: + - $ref: pwm.yaml# + + - if: + properties: + compatible: + contains: + enum: + - rockchip,rk3328-pwm + - rockchip,rv1108-pwm + + then: + properties: + clocks: + items: + - description: Used to derive the functional clock for the device. + - description: Used as the APB bus clock. + + clock-names: + items: + - const: pwm + - const: pclk + + required: + - clocks + - clock-names + + else: + properties: + clocks: + maxItems: 1 + description: + Used both to derive the functional clock + for the device and as the bus clock. + + required: + - clocks additionalProperties: false |