]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: st: add timer nodes on stm32mp257f-ev1
authorFabrice Gasnier <fabrice.gasnier@foss.st.com>
Fri, 10 Jan 2025 09:19:22 +0000 (10:19 +0100)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Fri, 4 Jul 2025 08:53:46 +0000 (10:53 +0200)
Configure timer nodes on stm32mp257f-ev1:
- Timer3 CH2 is available on mikroBUS connector for PWM
- timer8 CH1, timer8 CH4, timer10 CH1 and timer12 CH2 are available
  on EXPANSION connector.
Timers are kept disabled by default, so the pins can be used for any
other purpose (and the timers can be assigned to any of the processors).
Arbitrary choice is to use all these timers as PWM (or counter on
internal clock signal), except for timer10 that is configured with
CH1 as an input (for capture).

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
Link: https://lore.kernel.org/r/20250110091922.980627-9-fabrice.gasnier@foss.st.com
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
arch/arm64/boot/dts/st/stm32mp257f-ev1.dts

index 2f561ad4066544445e93db78557bc4be1c27095a..836b1958ce65fb72c99d634a92af3efaf9844d76 100644 (file)
        status = "disabled";
 };
 
+&timers3 {
+       status = "disabled";
+       counter {
+               status = "okay";
+       };
+       pwm {
+               pinctrl-0 = <&pwm3_pins_a>;
+               pinctrl-1 = <&pwm3_sleep_pins_a>;
+               pinctrl-names = "default", "sleep";
+               status = "okay";
+       };
+       timer@2 {
+               status = "okay";
+       };
+};
+
+&timers8 {
+       status = "disabled";
+       counter {
+               status = "okay";
+       };
+       pwm {
+               pinctrl-0 = <&pwm8_pins_a>;
+               pinctrl-1 = <&pwm8_sleep_pins_a>;
+               pinctrl-names = "default", "sleep";
+               status = "okay";
+       };
+       timer@7 {
+               status = "okay";
+       };
+};
+
+&timers10 {
+       status = "disabled";
+       counter {
+               pinctrl-0 = <&tim10_counter_pins_a>;
+               pinctrl-1 = <&tim10_counter_sleep_pins_a>;
+               pinctrl-names = "default", "sleep";
+               status = "okay";
+       };
+};
+
+&timers12 {
+       status = "disabled";
+       counter {
+               status = "okay";
+       };
+       pwm {
+               pinctrl-0 = <&pwm12_pins_a>;
+               pinctrl-1 = <&pwm12_sleep_pins_a>;
+               pinctrl-names = "default", "sleep";
+               status = "okay";
+       };
+       timer@11 {
+               status = "okay";
+       };
+};
+
 &usart2 {
        pinctrl-names = "default", "idle", "sleep";
        pinctrl-0 = <&usart2_pins_a>;