Skip to content

Commit 1d0fec6

Browse files
lopsided98Alexandre Torgue
authored andcommitted
ARM: dts: stm32: add low power timer on STM32F746
Add device tree node for the low power timer on the STM32F746. Signed-off-by: Ben Wolsieffer <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Torgue <[email protected]>
1 parent 9358c00 commit 1d0fec6

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

arch/arm/boot/dts/st/stm32f746.dtsi

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
#include "../armv7-m.dtsi"
4444
#include <dt-bindings/clock/stm32fx-clock.h>
4545
#include <dt-bindings/mfd/stm32f7-rcc.h>
46+
#include <dt-bindings/interrupt-controller/irq.h>
4647

4748
/ {
4849
#address-cells = <1>;
@@ -245,6 +246,39 @@
245246
};
246247
};
247248

249+
lptimer1: timer@40002400 {
250+
#address-cells = <1>;
251+
#size-cells = <0>;
252+
compatible = "st,stm32-lptimer";
253+
reg = <0x40002400 0x400>;
254+
interrupts-extended = <&exti 23 IRQ_TYPE_EDGE_RISING>;
255+
clocks = <&rcc 1 CLK_LPTIMER>;
256+
clock-names = "mux";
257+
status = "disabled";
258+
259+
pwm {
260+
compatible = "st,stm32-pwm-lp";
261+
#pwm-cells = <3>;
262+
status = "disabled";
263+
};
264+
265+
trigger@0 {
266+
compatible = "st,stm32-lptimer-trigger";
267+
reg = <0>;
268+
status = "disabled";
269+
};
270+
271+
counter {
272+
compatible = "st,stm32-lptimer-counter";
273+
status = "disabled";
274+
};
275+
276+
timer {
277+
compatible = "st,stm32-lptimer-timer";
278+
status = "disabled";
279+
};
280+
};
281+
248282
rtc: rtc@40002800 {
249283
compatible = "st,stm32-rtc";
250284
reg = <0x40002800 0x400>;

0 commit comments

Comments
 (0)