[PATCH v4 1/3] dt-bindings: pwm: amlogic: Add bus clock for S4 like
From: Ronald Claveau via B4 Relay
Date: Thu Oct 01 2026 - 12:56:45 EST
From: Ronald Claveau <linux-kernel-dev@xxxxxxxx>
The T7, A1, C3, and S4 PWM controllers have a bus system clock in
addition to the two input clocks of channels A and B.
The channel clocks are acquired by index in the pwm driver,
where the bus clock is fetched by name, with optional get
which is silent when not provided.
Require clock-names and minimum 3 items for S4, and devices
which fallback to S4, where the PWM devices do not work
without all 3 clocks.
Acked-by: Conor Dooley <conor.dooley@xxxxxxxxxxxxx>
Signed-off-by: Ronald Claveau <linux-kernel-dev@xxxxxxxx>
---
Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml b/Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml
index c337d85da40f1..6d01adcfe897f 100644
--- a/Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml
+++ b/Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml
@@ -62,7 +62,7 @@ properties:
clock-names:
minItems: 1
- maxItems: 2
+ maxItems: 3
power-domains:
maxItems: 1
@@ -143,9 +143,15 @@ allOf:
items:
- description: input clock of PWM channel A
- description: input clock of PWM channel B
- clock-names: false
+ - description: Bus clock, gates register access to the PWM controller
+ clock-names:
+ items:
+ - const: channel-a
+ - const: channel-b
+ - const: bus
required:
- clocks
+ - clock-names
- if:
properties:
@@ -179,6 +185,7 @@ examples:
pwm@1000 {
compatible = "amlogic,meson-s4-pwm";
reg = <0x1000 0x10>;
- clocks = <&pwm_src_a>, <&pwm_src_b>;
+ clocks = <&pwm_src_a>, <&pwm_src_b>, <&pwm_src_bus>;
+ clock-names = "channel-a", "channel-b", "bus";
#pwm-cells = <3>;
};
--
2.49.0