* [PATCH] ARM: dts: stm32: add low power timer on STM32F746
@ 2025-04-04 14:35 Ben Wolsieffer
2025-04-30 6:39 ` Alexandre TORGUE
0 siblings, 1 reply; 2+ messages in thread
From: Ben Wolsieffer @ 2025-04-04 14:35 UTC (permalink / raw)
To: linux-arm-kernel, linux-stm32, linux-kernel, devicetree
Cc: Maxime Coquelin, Alexandre Torgue, Conor Dooley,
Krzysztof Kozlowski, Rob Herring, Ben Wolsieffer
Add device tree node for the low power timer on the STM32F746.
Signed-off-by: Ben Wolsieffer <ben.wolsieffer@hefring.com>
---
arch/arm/boot/dts/st/stm32f746.dtsi | 34 +++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/arch/arm/boot/dts/st/stm32f746.dtsi b/arch/arm/boot/dts/st/stm32f746.dtsi
index 2537b3d47e6f..208f8c6dfc9d 100644
--- a/arch/arm/boot/dts/st/stm32f746.dtsi
+++ b/arch/arm/boot/dts/st/stm32f746.dtsi
@@ -43,6 +43,7 @@
#include "../armv7-m.dtsi"
#include <dt-bindings/clock/stm32fx-clock.h>
#include <dt-bindings/mfd/stm32f7-rcc.h>
+#include <dt-bindings/interrupt-controller/irq.h>
/ {
#address-cells = <1>;
@@ -245,6 +246,39 @@ pwm {
};
};
+ lptimer1: timer@40002400 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "st,stm32-lptimer";
+ reg = <0x40002400 0x400>;
+ interrupts-extended = <&exti 23 IRQ_TYPE_EDGE_RISING>;
+ clocks = <&rcc 1 CLK_LPTIMER>;
+ clock-names = "mux";
+ status = "disabled";
+
+ pwm {
+ compatible = "st,stm32-pwm-lp";
+ #pwm-cells = <3>;
+ status = "disabled";
+ };
+
+ trigger@0 {
+ compatible = "st,stm32-lptimer-trigger";
+ reg = <0>;
+ status = "disabled";
+ };
+
+ counter {
+ compatible = "st,stm32-lptimer-counter";
+ status = "disabled";
+ };
+
+ timer {
+ compatible = "st,stm32-lptimer-timer";
+ status = "disabled";
+ };
+ };
+
rtc: rtc@40002800 {
compatible = "st,stm32-rtc";
reg = <0x40002800 0x400>;
--
2.48.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ARM: dts: stm32: add low power timer on STM32F746
2025-04-04 14:35 [PATCH] ARM: dts: stm32: add low power timer on STM32F746 Ben Wolsieffer
@ 2025-04-30 6:39 ` Alexandre TORGUE
0 siblings, 0 replies; 2+ messages in thread
From: Alexandre TORGUE @ 2025-04-30 6:39 UTC (permalink / raw)
To: Ben Wolsieffer, linux-arm-kernel, linux-stm32, linux-kernel,
devicetree
Cc: Maxime Coquelin, Conor Dooley, Krzysztof Kozlowski, Rob Herring
Hi Ben
On 4/4/25 16:35, Ben Wolsieffer wrote:
> Add device tree node for the low power timer on the STM32F746.
>
> Signed-off-by: Ben Wolsieffer <ben.wolsieffer@hefring.com>
> ---
> arch/arm/boot/dts/st/stm32f746.dtsi | 34 +++++++++++++++++++++++++++++
> 1 file changed, 34 insertions(+)
>
> diff --git a/arch/arm/boot/dts/st/stm32f746.dtsi b/arch/arm/boot/dts/st/stm32f746.dtsi
> index 2537b3d47e6f..208f8c6dfc9d 100644
> --- a/arch/arm/boot/dts/st/stm32f746.dtsi
> +++ b/arch/arm/boot/dts/st/stm32f746.dtsi
> @@ -43,6 +43,7 @@
> #include "../armv7-m.dtsi"
> #include <dt-bindings/clock/stm32fx-clock.h>
> #include <dt-bindings/mfd/stm32f7-rcc.h>
> +#include <dt-bindings/interrupt-controller/irq.h>
>
> / {
> #address-cells = <1>;
> @@ -245,6 +246,39 @@ pwm {
> };
> };
>
> + lptimer1: timer@40002400 {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + compatible = "st,stm32-lptimer";
> + reg = <0x40002400 0x400>;
> + interrupts-extended = <&exti 23 IRQ_TYPE_EDGE_RISING>;
> + clocks = <&rcc 1 CLK_LPTIMER>;
> + clock-names = "mux";
> + status = "disabled";
> +
> + pwm {
> + compatible = "st,stm32-pwm-lp";
> + #pwm-cells = <3>;
> + status = "disabled";
> + };
> +
> + trigger@0 {
> + compatible = "st,stm32-lptimer-trigger";
> + reg = <0>;
> + status = "disabled";
> + };
> +
> + counter {
> + compatible = "st,stm32-lptimer-counter";
> + status = "disabled";
> + };
> +
> + timer {
> + compatible = "st,stm32-lptimer-timer";
> + status = "disabled";
> + };
> + };
> +
> rtc: rtc@40002800 {
> compatible = "st,stm32-rtc";
> reg = <0x40002800 0x400>;
Applied on stm32-next.
Thanks
Alex
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-04-30 6:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-04 14:35 [PATCH] ARM: dts: stm32: add low power timer on STM32F746 Ben Wolsieffer
2025-04-30 6:39 ` Alexandre TORGUE
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).