xref: /freebsd/sys/contrib/device-tree/Bindings/pwm/pwm-omap-dmtimer.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot* OMAP PWM for dual-mode timers
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired properties:
4*c66ec88fSEmmanuel Vadot- compatible: Shall contain "ti,omap-dmtimer-pwm".
5*c66ec88fSEmmanuel Vadot- ti,timers: phandle to PWM capable OMAP timer. See timer/ti,timer.txt for info
6*c66ec88fSEmmanuel Vadot  about these timers.
7*c66ec88fSEmmanuel Vadot- #pwm-cells: Should be 3. See pwm.yaml in this directory for a description of
8*c66ec88fSEmmanuel Vadot  the cells format.
9*c66ec88fSEmmanuel Vadot
10*c66ec88fSEmmanuel VadotOptional properties:
11*c66ec88fSEmmanuel Vadot- ti,prescaler: Should be a value between 0 and 7, see the timers datasheet
12*c66ec88fSEmmanuel Vadot- ti,clock-source: Set dmtimer parent clock, values between 0 and 2:
13*c66ec88fSEmmanuel Vadot  - 0x00 - high-frequency system clock (timer_sys_ck)
14*c66ec88fSEmmanuel Vadot  - 0x01 - 32-kHz always-on clock (timer_32k_ck)
15*c66ec88fSEmmanuel Vadot  - 0x02 - external clock (timer_ext_ck, OMAP2 only)
16*c66ec88fSEmmanuel Vadot
17*c66ec88fSEmmanuel VadotExample:
18*c66ec88fSEmmanuel Vadot	pwm9: dmtimer-pwm@9 {
19*c66ec88fSEmmanuel Vadot		compatible = "ti,omap-dmtimer-pwm";
20*c66ec88fSEmmanuel Vadot		ti,timers = <&timer9>;
21*c66ec88fSEmmanuel Vadot		#pwm-cells = <3>;
22*c66ec88fSEmmanuel Vadot	};
23