diff options
Diffstat (limited to 'Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml')
-rw-r--r-- | Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml | 47 |
1 files changed, 25 insertions, 22 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..4cc3cc7c50be 100644 --- a/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml +++ b/Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml @@ -4,7 +4,7 @@ $id: http://devicetree.org/schemas/pwm/allwinner,sun4i-a10-pwm.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: Allwinner A10 PWM Device Tree Bindings +title: Allwinner A10 PWM maintainers: - Chen-Yu Tsai <wens@csie.org> @@ -52,33 +52,36 @@ properties: resets: maxItems: 1 -if: - properties: - compatible: - contains: - const: allwinner,sun50i-h6-pwm -then: - properties: - clocks: - maxItems: 2 +allOf: + - $ref: pwm.yaml# - clock-names: - items: - - const: mod - - const: bus + - if: + properties: + compatible: + contains: + const: allwinner,sun50i-h6-pwm - required: - - clock-names - - resets + then: + properties: + clocks: + maxItems: 2 -else: - properties: - clocks: - maxItems: 1 + clock-names: + items: + - const: mod + - const: bus + + required: + - clock-names + - resets + + else: + properties: + clocks: + maxItems: 1 required: - - "#pwm-cells" - compatible - reg - clocks |