About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog

Documentation / devicetree / bindings / mfd / stm32-lptimer.txt


Based on kernel version 4.16.1. Page generated on 2018-04-09 11:52 EST.

1	STMicroelectronics STM32 Low-Power Timer
2	
3	The STM32 Low-Power Timer (LPTIM) is a 16-bit timer that provides several
4	functions:
5	- PWM output (with programmable prescaler, configurable polarity)
6	- Quadrature encoder, counter
7	- Trigger source for STM32 ADC/DAC (LPTIM_OUT)
8	
9	Required properties:
10	- compatible:		Must be "st,stm32-lptimer".
11	- reg:			Offset and length of the device's register set.
12	- clocks:		Phandle to the clock used by the LP Timer module.
13	- clock-names:		Must be "mux".
14	- #address-cells:	Should be '<1>'.
15	- #size-cells:		Should be '<0>'.
16	
17	Optional subnodes:
18	- pwm:			See ../pwm/pwm-stm32-lp.txt
19	- counter:		See ../iio/timer/stm32-lptimer-cnt.txt
20	- trigger:		See ../iio/timer/stm32-lptimer-trigger.txt
21	
22	Example:
23	
24		timer@40002400 {
25			compatible = "st,stm32-lptimer";
26			reg = <0x40002400 0x400>;
27			clocks = <&timer_clk>;
28			clock-names = "mux";
29			#address-cells = <1>;
30			#size-cells = <0>;
31	
32			pwm {
33				compatible = "st,stm32-pwm-lp";
34				pinctrl-names = "default";
35				pinctrl-0 = <&lppwm1_pins>;
36			};
37	
38			trigger@0 {
39				compatible = "st,stm32-lptimer-trigger";
40				reg = <0>;
41			};
42	
43			counter {
44				compatible = "st,stm32-lptimer-counter";
45				pinctrl-names = "default";
46				pinctrl-0 = <&lptim1_in_pins>;
47			};
48		};
Hide Line Numbers


About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog