ARM: dts: stm32: add timers counter support on stm32mp157c
authorFabrice Gasnier <fabrice.gasnier@st.com>
Wed, 6 Nov 2019 09:11:24 +0000 (10:11 +0100)
committerAlexandre Torgue <alexandre.torgue@st.com>
Mon, 9 Dec 2019 08:19:15 +0000 (09:19 +0100)
Add counter support on stm32mp157c that provides quadrature encoder on
timers 1, 2, 3, 4, 5 and 8.

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

index ed8b258256d789b8c9ff2f647b06ebfe10074509..901db8a4abf4261e1070f468bd540c113216c5b6 100644 (file)
                                reg = <1>;
                                status = "disabled";
                        };
+
+                       counter {
+                               compatible = "st,stm32-timer-counter";
+                               status = "disabled";
+                       };
                };
 
                timers3: timer@40001000 {
                                reg = <2>;
                                status = "disabled";
                        };
+
+                       counter {
+                               compatible = "st,stm32-timer-counter";
+                               status = "disabled";
+                       };
                };
 
                timers4: timer@40002000 {
                                reg = <3>;
                                status = "disabled";
                        };
+
+                       counter {
+                               compatible = "st,stm32-timer-counter";
+                               status = "disabled";
+                       };
                };
 
                timers5: timer@40003000 {
                                reg = <4>;
                                status = "disabled";
                        };
+
+                       counter {
+                               compatible = "st,stm32-timer-counter";
+                               status = "disabled";
+                       };
                };
 
                timers6: timer@40004000 {
                                reg = <0>;
                                status = "disabled";
                        };
+
+                       counter {
+                               compatible = "st,stm32-timer-counter";
+                               status = "disabled";
+                       };
                };
 
                timers8: timer@44001000 {
                                reg = <7>;
                                status = "disabled";
                        };
+
+                       counter {
+                               compatible = "st,stm32-timer-counter";
+                               status = "disabled";
+                       };
                };
 
                usart6: serial@44003000 {