Skip to content

Commit c819dbd

Browse files
mubinsyed2dlezcano
authored andcommitted
dt-bindings: timer: Add support for cadence TTC PWM
Cadence TTC can act as PWM device, it will be supported through separate PWM framework based driver. Decision to configure specific TTC device as PWM or clocksource/clockevent would be done based on presence of "#pwm-cells" property. Also, interrupt property is not required for TTC PWM driver. Update bindings to support TTC PWM configuration. Signed-off-by: Mubin Sayyed <mubin.sayyed@amd.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20240226093333.2581092-1-mubin.sayyed@amd.com
1 parent 755350b commit c819dbd

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

Documentation/devicetree/bindings/timer/cdns,ttc.yaml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,23 @@ properties:
3232
description: |
3333
Bit width of the timer, necessary if not 16.
3434
35+
"#pwm-cells":
36+
const: 3
37+
3538
required:
3639
- compatible
3740
- reg
38-
- interrupts
3941
- clocks
4042

43+
allOf:
44+
- if:
45+
not:
46+
required:
47+
- "#pwm-cells"
48+
then:
49+
required:
50+
- interrupts
51+
4152
additionalProperties: false
4253

4354
examples:
@@ -50,3 +61,12 @@ examples:
5061
clocks = <&cpu_clk 3>;
5162
timer-width = <32>;
5263
};
64+
65+
- |
66+
pwm: pwm@f8002000 {
67+
compatible = "cdns,ttc";
68+
reg = <0xf8002000 0x1000>;
69+
clocks = <&cpu_clk 3>;
70+
timer-width = <32>;
71+
#pwm-cells = <3>;
72+
};

0 commit comments

Comments
 (0)