Skip to content

Commit cf80205

Browse files
sarthsmartgalak
authored andcommitted
dts: arm: STM32: Enable PWM support for stm32l5 in dtsi
This commit adds PWM support in dtsi for stm32l5 series. Adding other timer nodes for different stm32l5 series PWM capability. Signed-off-by: Sidhdharth Yadav <[email protected]>
1 parent 13416c5 commit cf80205

File tree

1 file changed

+162
-0
lines changed

1 file changed

+162
-0
lines changed

dts/arm/st/l5/stm32l5.dtsi

Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,168 @@
289289
status = "disabled";
290290
label = "RNG";
291291
};
292+
293+
timers1: timers@40012c00 {
294+
compatible = "st,stm32-timers";
295+
reg = <0x40012c00 0x400>;
296+
clocks = <&rcc STM32_CLOCK_BUS_APB2 0x00000800>;
297+
interrupts = <41 0>, <42 0>, <43 0>, <44 0>;
298+
interrupt-names = "brk", "up", "trgcom", "cc";
299+
status = "disabled";
300+
label = "TIMERS_1";
301+
302+
pwm {
303+
compatible = "st,stm32-pwm";
304+
status = "disabled";
305+
st,prescaler = <0>;
306+
label = "PWM_1";
307+
#pwm-cells = <3>;
308+
};
309+
};
310+
311+
timers2: timers@40000000 {
312+
compatible = "st,stm32-timers";
313+
reg = <0x40000000 0x400>;
314+
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00000001>;
315+
interrupts = <45 0>;
316+
interrupt-names = "global";
317+
status = "disabled";
318+
label = "TIMERS_2";
319+
320+
pwm {
321+
compatible = "st,stm32-pwm";
322+
status = "disabled";
323+
st,prescaler = <0>;
324+
label = "PWM_2";
325+
#pwm-cells = <3>;
326+
};
327+
};
328+
329+
timers3: timers@40000400 {
330+
compatible = "st,stm32-timers";
331+
reg = <0x40000400 0x400>;
332+
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00000002>;
333+
interrupts = <46 0>;
334+
interrupt-names = "global";
335+
status = "disabled";
336+
label = "TIMERS_3";
337+
338+
pwm {
339+
compatible = "st,stm32-pwm";
340+
status = "disabled";
341+
st,prescaler = <0>;
342+
label = "PWM_3";
343+
#pwm-cells = <3>;
344+
};
345+
};
346+
347+
timers4: timers@40000800 {
348+
compatible = "st,stm32-timers";
349+
reg = <0x40000800 0x400>;
350+
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00000004>;
351+
interrupts = <47 0>;
352+
interrupt-names = "global";
353+
status = "disabled";
354+
label = "TIMERS_4";
355+
356+
pwm {
357+
compatible = "st,stm32-pwm";
358+
status = "disabled";
359+
st,prescaler = <0>;
360+
label = "PWM_4";
361+
#pwm-cells = <3>;
362+
};
363+
};
364+
365+
timers5: timers@40000c00 {
366+
compatible = "st,stm32-timers";
367+
reg = <0x40000c00 0x400>;
368+
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00000008>;
369+
interrupts = <48 0>;
370+
interrupt-names = "global";
371+
status = "disabled";
372+
label = "TIMERS_5";
373+
374+
pwm {
375+
compatible = "st,stm32-pwm";
376+
status = "disabled";
377+
st,prescaler = <0>;
378+
label = "PWM_5";
379+
#pwm-cells = <3>;
380+
};
381+
};
382+
383+
timers8: timers@40013400 {
384+
compatible = "st,stm32-timers";
385+
reg = <0x40013400 0x400>;
386+
clocks = <&rcc STM32_CLOCK_BUS_APB2 0x00002000>;
387+
interrupts = <51 0>, <52 0>, <53 0>, <54 0>;
388+
interrupt-names = "brk", "up", "trgcom", "cc";
389+
status = "disabled";
390+
label = "TIMERS_8";
391+
392+
pwm {
393+
compatible = "st,stm32-pwm";
394+
status = "disabled";
395+
st,prescaler = <0>;
396+
label = "PWM_8";
397+
#pwm-cells = <3>;
398+
};
399+
};
400+
401+
timers15: timers@40014000 {
402+
compatible = "st,stm32-timers";
403+
reg = <0x40014000 0x400>;
404+
clocks = <&rcc STM32_CLOCK_BUS_APB2 0x00010000>;
405+
interrupts = <69 0>;
406+
interrupt-names = "global";
407+
status = "disabled";
408+
label = "TIMERS_15";
409+
410+
pwm {
411+
compatible = "st,stm32-pwm";
412+
status = "disabled";
413+
st,prescaler = <0>;
414+
label = "PWM_15";
415+
#pwm-cells = <3>;
416+
};
417+
};
418+
419+
timers16: timers@40014400 {
420+
compatible = "st,stm32-timers";
421+
reg = <0x40014400 0x400>;
422+
clocks = <&rcc STM32_CLOCK_BUS_APB2 0x00020000>;
423+
interrupts = <70 0>;
424+
interrupt-names = "global";
425+
status = "disabled";
426+
label = "TIMERS_16";
427+
428+
pwm {
429+
compatible = "st,stm32-pwm";
430+
status = "disabled";
431+
st,prescaler = <0>;
432+
label = "PWM_16";
433+
#pwm-cells = <3>;
434+
};
435+
};
436+
437+
timers17: timers@40014800 {
438+
compatible = "st,stm32-timers";
439+
reg = <0x40014800 0x400>;
440+
clocks = <&rcc STM32_CLOCK_BUS_APB2 0x00040000>;
441+
interrupts = <71 0>;
442+
interrupt-names = "global";
443+
status = "disabled";
444+
label = "TIMERS_17";
445+
446+
pwm {
447+
compatible = "st,stm32-pwm";
448+
status = "disabled";
449+
st,prescaler = <0>;
450+
label = "PWM_17";
451+
#pwm-cells = <3>;
452+
};
453+
};
292454
};
293455
};
294456

0 commit comments

Comments
 (0)