pwm-samsung.txt 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. * Samsung PWM timers
  2. Samsung SoCs contain PWM timer blocks which can be used for system clock source
  3. and clock event timers, as well as to drive SoC outputs with PWM signal. Each
  4. PWM timer block provides 5 PWM channels (not all of them can drive physical
  5. outputs - see SoC and board manual).
  6. Be aware that the clocksource driver supports only uniprocessor systems.
  7. Required properties:
  8. - compatible : should be one of following:
  9. samsung,s3c2410-pwm - for 16-bit timers present on S3C24xx SoCs
  10. samsung,s3c6400-pwm - for 32-bit timers present on S3C64xx SoCs
  11. samsung,s5p6440-pwm - for 32-bit timers present on S5P64x0 SoCs
  12. samsung,s5pc100-pwm - for 32-bit timers present on S5PC100, S5PV210,
  13. Exynos4210 rev0 SoCs
  14. samsung,exynos4210-pwm - for 32-bit timers present on Exynos4210,
  15. Exynos4x12 and Exynos5250 SoCs
  16. - reg: base address and size of register area
  17. - interrupts: list of timer interrupts (one interrupt per timer, starting at
  18. timer 0)
  19. - #pwm-cells: number of cells used for PWM specifier - must be 3
  20. the specifier format is as follows:
  21. - phandle to PWM controller node
  22. - index of PWM channel (from 0 to 4)
  23. - PWM signal period in nanoseconds
  24. - bitmask of optional PWM flags:
  25. 0x1 - invert PWM signal
  26. Optional properties:
  27. - samsung,pwm-outputs: list of PWM channels used as PWM outputs on particular
  28. platform - an array of up to 5 elements being indices of PWM channels
  29. (from 0 to 4), the order does not matter.
  30. Example:
  31. pwm@7f006000 {
  32. compatible = "samsung,s3c6400-pwm";
  33. reg = <0x7f006000 0x1000>;
  34. interrupt-parent = <&vic0>;
  35. interrupts = <23>, <24>, <25>, <27>, <28>;
  36. samsung,pwm-outputs = <0>, <1>;
  37. #pwm-cells = <3>;
  38. }