]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: amlogic: t7: Add PWM controller nodes
authorRonald Claveau <linux-kernel-dev@aliel.fr>
Thu, 26 Mar 2026 09:59:16 +0000 (10:59 +0100)
committerNeil Armstrong <neil.armstrong@linaro.org>
Tue, 2 Jun 2026 07:49:45 +0000 (09:49 +0200)
Add device tree nodes for the seven PWM controllers available
on the Amlogic T7 SoC, using amlogic,meson-s4-pwm as fallback compatible.
All nodes are disabled by default and should be
enabled in the board-specific DTS file.

Co-developed-by: Nick Xie <nick@khadas.com>
Signed-off-by: Nick Xie <nick@khadas.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Ronald Claveau <linux-kernel-dev@aliel.fr>
Link: https://patch.msgid.link/20260326-add-emmc-t7-vim4-v5-5-d3f182b48e9d@aliel.fr
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi

index d45f360e3d671d5e9edc5b01088d21ac7950432d..fc23f409fe1d1e85d6ff961588f780af9711a604 100644 (file)
                                amlogic,has-chip-id;
                        };
 
+                       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>;
+                               #pwm-cells = <3>;
+                               status = "disabled";
+                       };
+
+                       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>;
+                               #pwm-cells = <3>;
+                               status = "disabled";
+                       };
+
+                       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>;
+                               #pwm-cells = <3>;
+                               status = "disabled";
+                       };
+
+                       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>;
+                               #pwm-cells = <3>;
+                               status = "disabled";
+                       };
+
+                       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>;
+                               #pwm-cells = <3>;
+                               status = "disabled";
+                       };
+
+                       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>;
+                               #pwm-cells = <3>;
+                               status = "disabled";
+                       };
+
+                       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>;
+                               #pwm-cells = <3>;
+                               status = "disabled";
+                       };
+
                        sd_emmc_a: mmc@88000 {
                                compatible = "amlogic,t7-mmc", "amlogic,meson-axg-mmc";
                                reg = <0x0 0x88000 0x0 0x800>;