@@ -14,6 +14,13 @@ properties:
"#pwm-cells":
const: 3
+ "#clock-cells":
+ const: 1
+ description:
+ The cell selects the PWM channel whose hardware bypass path is exported
+ as a clock. Its rate follows the selected shared pair source and divider;
+ the PWM period, duty-cycle and polarity logic is bypassed.
+
compatible:
oneOf:
- const: allwinner,sun4i-a10-pwm
@@ -36,6 +43,7 @@ properties:
- const: allwinner,sun50i-h5-pwm
- const: allwinner,sun5i-a13-pwm
- const: allwinner,sun50i-h6-pwm
+ - const: allwinner,sun50i-h616-pwm
reg:
maxItems: 1
@@ -62,7 +70,9 @@ allOf:
properties:
compatible:
contains:
- const: allwinner,sun50i-h6-pwm
+ enum:
+ - allwinner,sun50i-h6-pwm
+ - allwinner,sun50i-h616-pwm
then:
properties:
@@ -83,6 +93,27 @@ allOf:
clocks:
maxItems: 1
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: allwinner,sun50i-h616-pwm
+
+ then:
+ properties:
+ clocks:
+ minItems: 2
+
+ clock-names:
+ minItems: 2
+
+ required:
+ - "#clock-cells"
+
+ else:
+ properties:
+ "#clock-cells": false
+
required:
- compatible
- reg