[PATCH v2 3/3] arm64: dts: amlogic: t7: Add core clock to PWM controller nodes
flat view
COOLING9d
From: Ronald Claveau via B4 Relay <devnull+linux-kernel-dev.aliel.fr@kernel.org>
Date: 2026-09-25 15:14:24
Also in:
b4-sent, linux-amlogic, linux-devicetree, linux-pwm, lkml
Subsystem:
arm/amlogic meson soc support, the rest · Maintainers:
Neil Armstrong, Kevin Hilman, Linus Torvalds
From: Ronald Claveau <redacted> Describe the system clock of each PWM controller (CLKID_SYS_PWM_*) as a third clock, and add the clock-names property expected by the updated binding: "channel-a", "channel-b" and "core". Signed-off-by: Ronald Claveau <redacted> --- arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-)
diff --git a/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi
index 8f3f1c0579a0f..8a148af5ed442 100644
--- a/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi
+++ b/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi@@ -692,7 +692,9 @@ pwm_ao_ef: pwm@30000 { compatible = "amlogic,t7-pwm", "amlogic,meson-s4-pwm"; reg = <0x0 0x30000 0x0 0x24>; clocks = <&clkc_periphs CLKID_PWM_AO_E>, - <&clkc_periphs CLKID_PWM_AO_F>; + <&clkc_periphs CLKID_PWM_AO_F>, + <&clkc_periphs CLKID_SYS_PWM_AO_EF>; + clock-names = "channel-a", "channel-b", "core"; #pwm-cells = <3>; status = "disabled"; };
@@ -701,7 +703,9 @@ pwm_ao_gh: pwm@32000 { compatible = "amlogic,t7-pwm", "amlogic,meson-s4-pwm"; reg = <0x0 0x32000 0x0 0x24>; clocks = <&clkc_periphs CLKID_PWM_AO_G>, - <&clkc_periphs CLKID_PWM_AO_H>; + <&clkc_periphs CLKID_PWM_AO_H>, + <&clkc_periphs CLKID_SYS_PWM_AO_GH>; + clock-names = "channel-a", "channel-b", "core"; #pwm-cells = <3>; status = "disabled"; };
@@ -715,7 +719,9 @@ pwm_ab: pwm@58000 { compatible = "amlogic,t7-pwm", "amlogic,meson-s4-pwm"; reg = <0x0 0x58000 0x0 0x24>; clocks = <&clkc_periphs CLKID_PWM_A>, - <&clkc_periphs CLKID_PWM_B>; + <&clkc_periphs CLKID_PWM_B>, + <&clkc_periphs CLKID_SYS_PWM_AB>; + clock-names = "channel-a", "channel-b", "core"; #pwm-cells = <3>; status = "disabled"; };
@@ -724,7 +730,9 @@ pwm_cd: pwm@5a000 { compatible = "amlogic,t7-pwm", "amlogic,meson-s4-pwm"; reg = <0x0 0x5a000 0x0 0x24>; clocks = <&clkc_periphs CLKID_PWM_C>, - <&clkc_periphs CLKID_PWM_D>; + <&clkc_periphs CLKID_PWM_D>, + <&clkc_periphs CLKID_SYS_PWM_CD>; + clock-names = "channel-a", "channel-b", "core"; #pwm-cells = <3>; status = "disabled"; };
@@ -733,7 +741,9 @@ pwm_ef: pwm@5c000 { compatible = "amlogic,t7-pwm", "amlogic,meson-s4-pwm"; reg = <0x0 0x5c000 0x0 0x24>; clocks = <&clkc_periphs CLKID_PWM_E>, - <&clkc_periphs CLKID_PWM_F>; + <&clkc_periphs CLKID_PWM_F>, + <&clkc_periphs CLKID_SYS_PWM_EF>; + clock-names = "channel-a", "channel-b", "core"; #pwm-cells = <3>; status = "disabled"; };
@@ -742,7 +752,9 @@ pwm_ao_ab: pwm@5e000 { compatible = "amlogic,t7-pwm", "amlogic,meson-s4-pwm"; reg = <0x0 0x5e000 0x0 0x24>; clocks = <&clkc_periphs CLKID_PWM_AO_A>, - <&clkc_periphs CLKID_PWM_AO_B>; + <&clkc_periphs CLKID_PWM_AO_B>, + <&clkc_periphs CLKID_SYS_PWM_AO_AB>; + clock-names = "channel-a", "channel-b", "core"; #pwm-cells = <3>; status = "disabled"; };
@@ -751,7 +763,9 @@ pwm_ao_cd: pwm@60000 { compatible = "amlogic,t7-pwm", "amlogic,meson-s4-pwm"; reg = <0x0 0x60000 0x0 0x24>; clocks = <&clkc_periphs CLKID_PWM_AO_C>, - <&clkc_periphs CLKID_PWM_AO_D>; + <&clkc_periphs CLKID_PWM_AO_D>, + <&clkc_periphs CLKID_SYS_PWM_AO_CD>; + clock-names = "channel-a", "channel-b", "core"; #pwm-cells = <3>; status = "disabled"; };
--
2.49.0