Skip to content

Commit 97f08ce

Browse files
rclaveau-techsuperna9999
authored andcommitted
arm64: dts: amlogic: t7: Add PWM controller nodes
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>
1 parent bd3454d commit 97f08ce

1 file changed

Lines changed: 63 additions & 0 deletions

File tree

arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,69 @@
646646
amlogic,has-chip-id;
647647
};
648648

649+
pwm_ao_ef: pwm@30000 {
650+
compatible = "amlogic,t7-pwm", "amlogic,meson-s4-pwm";
651+
reg = <0x0 0x30000 0x0 0x24>;
652+
clocks = <&clkc_periphs CLKID_PWM_AO_E>,
653+
<&clkc_periphs CLKID_PWM_AO_F>;
654+
#pwm-cells = <3>;
655+
status = "disabled";
656+
};
657+
658+
pwm_ao_gh: pwm@32000 {
659+
compatible = "amlogic,t7-pwm", "amlogic,meson-s4-pwm";
660+
reg = <0x0 0x32000 0x0 0x24>;
661+
clocks = <&clkc_periphs CLKID_PWM_AO_G>,
662+
<&clkc_periphs CLKID_PWM_AO_H>;
663+
#pwm-cells = <3>;
664+
status = "disabled";
665+
};
666+
667+
pwm_ab: pwm@58000 {
668+
compatible = "amlogic,t7-pwm", "amlogic,meson-s4-pwm";
669+
reg = <0x0 0x58000 0x0 0x24>;
670+
clocks = <&clkc_periphs CLKID_PWM_A>,
671+
<&clkc_periphs CLKID_PWM_B>;
672+
#pwm-cells = <3>;
673+
status = "disabled";
674+
};
675+
676+
pwm_cd: pwm@5a000 {
677+
compatible = "amlogic,t7-pwm", "amlogic,meson-s4-pwm";
678+
reg = <0x0 0x5a000 0x0 0x24>;
679+
clocks = <&clkc_periphs CLKID_PWM_C>,
680+
<&clkc_periphs CLKID_PWM_D>;
681+
#pwm-cells = <3>;
682+
status = "disabled";
683+
};
684+
685+
pwm_ef: pwm@5c000 {
686+
compatible = "amlogic,t7-pwm", "amlogic,meson-s4-pwm";
687+
reg = <0x0 0x5c000 0x0 0x24>;
688+
clocks = <&clkc_periphs CLKID_PWM_E>,
689+
<&clkc_periphs CLKID_PWM_F>;
690+
#pwm-cells = <3>;
691+
status = "disabled";
692+
};
693+
694+
pwm_ao_ab: pwm@5e000 {
695+
compatible = "amlogic,t7-pwm", "amlogic,meson-s4-pwm";
696+
reg = <0x0 0x5e000 0x0 0x24>;
697+
clocks = <&clkc_periphs CLKID_PWM_AO_A>,
698+
<&clkc_periphs CLKID_PWM_AO_B>;
699+
#pwm-cells = <3>;
700+
status = "disabled";
701+
};
702+
703+
pwm_ao_cd: pwm@60000 {
704+
compatible = "amlogic,t7-pwm", "amlogic,meson-s4-pwm";
705+
reg = <0x0 0x60000 0x0 0x24>;
706+
clocks = <&clkc_periphs CLKID_PWM_AO_C>,
707+
<&clkc_periphs CLKID_PWM_AO_D>;
708+
#pwm-cells = <3>;
709+
status = "disabled";
710+
};
711+
649712
sd_emmc_a: mmc@88000 {
650713
compatible = "amlogic,t7-mmc", "amlogic,meson-axg-mmc";
651714
reg = <0x0 0x88000 0x0 0x800>;

0 commit comments

Comments
 (0)