ARM: dts: stm32: populate all timer counter nodes on stm32mp13
authorFabrice Gasnier <fabrice.gasnier@foss.st.com>
Mon, 16 Dec 2024 15:39:04 +0000 (16:39 +0100)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Fri, 20 Dec 2024 07:20:25 +0000 (08:20 +0100)
Counter driver originally had support limited to quadrature interface
and simple counter. It has been improved[1], so add the remaining
stm32 timer counter nodes.

[1] https://lore.kernel.org/linux-arm-kernel/20240307133306.383045-1-fabrice.gasnier@foss.st.com/

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
arch/arm/boot/dts/st/stm32mp131.dtsi

index e1a764d269d27338bc88e942f183a2e03226735c..0019d12c3d3ddc0f039f39861b3a0a93eafbac91 100644 (file)
                        dma-names = "up";
                        status = "disabled";
 
+                       counter {
+                               compatible = "st,stm32-timer-counter";
+                               status = "disabled";
+                       };
+
                        timer@5 {
                                compatible = "st,stm32h7-timer-trigger";
                                reg = <5>;
                        dma-names = "up";
                        status = "disabled";
 
+                       counter {
+                               compatible = "st,stm32-timer-counter";
+                               status = "disabled";
+                       };
+
                        timer@6 {
                                compatible = "st,stm32h7-timer-trigger";
                                reg = <6>;
                                access-controllers = <&etzpc 23>;
                                status = "disabled";
 
+                               counter {
+                                       compatible = "st,stm32-timer-counter";
+                                       status = "disabled";
+                               };
+
                                pwm {
                                        compatible = "st,stm32-pwm";
                                        #pwm-cells = <3>;
                                access-controllers = <&etzpc 24>;
                                status = "disabled";
 
+                               counter {
+                                       compatible = "st,stm32-timer-counter";
+                                       status = "disabled";
+                               };
+
                                pwm {
                                        compatible = "st,stm32-pwm";
                                        #pwm-cells = <3>;
                                access-controllers = <&etzpc 25>;
                                status = "disabled";
 
+                               counter {
+                                       compatible = "st,stm32-timer-counter";
+                                       status = "disabled";
+                               };
+
                                pwm {
                                        compatible = "st,stm32-pwm";
                                        #pwm-cells = <3>;
                                access-controllers = <&etzpc 26>;
                                status = "disabled";
 
+                               counter {
+                                       compatible = "st,stm32-timer-counter";
+                                       status = "disabled";
+                               };
+
                                pwm {
                                        compatible = "st,stm32-pwm";
                                        #pwm-cells = <3>;
                                access-controllers = <&etzpc 27>;
                                status = "disabled";
 
+                               counter {
+                                       compatible = "st,stm32-timer-counter";
+                                       status = "disabled";
+                               };
+
                                pwm {
                                        compatible = "st,stm32-pwm";
                                        #pwm-cells = <3>;
                                access-controllers = <&etzpc 28>;
                                status = "disabled";
 
+                               counter {
+                                       compatible = "st,stm32-timer-counter";
+                                       status = "disabled";
+                               };
+
                                pwm {
                                        compatible = "st,stm32-pwm";
                                        #pwm-cells = <3>;