All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pwm: add support for freq_hz and duty_percent
@ 2016-03-18  9:43 wan.ahmad.zainie.wan.mohamad
  2016-03-18  9:43 ` wan.ahmad.zainie.wan.mohamad
  0 siblings, 1 reply; 4+ messages in thread
From: wan.ahmad.zainie.wan.mohamad @ 2016-03-18  9:43 UTC (permalink / raw)
  To: thierry.reding; +Cc: linux-pwm

From: Wan Ahmad Zainie <wan.ahmad.zainie.wan.mohamad@intel.com>

Hi.

This patch adds freq_hz and duty_percent parameters to the PWM framework.
The value of period and duty_cycle is calculated by the additional helper
functions. Each driver in this framework still using period and duty_cycle
as the inputs for configuration.

This patch has been tested on Minnowboard MAX via sysfs.

Best regards,
Zainie

Wan Ahmad Zainie (1):
  pwm: add support for freq_hz and duty_percent

 Documentation/ABI/testing/sysfs-class-pwm | 14 +++++
 drivers/pwm/core.c                        | 95 ++++++++++++++++++++++++++++++-
 drivers/pwm/sysfs.c                       | 70 +++++++++++++++++++++++
 include/linux/pwm.h                       | 50 ++++++++++++++++
 4 files changed, 228 insertions(+), 1 deletion(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-03-21  3:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-18  9:43 [PATCH] pwm: add support for freq_hz and duty_percent wan.ahmad.zainie.wan.mohamad
2016-03-18  9:43 ` wan.ahmad.zainie.wan.mohamad
2016-03-18  9:55   ` Vladimir Zapolskiy
2016-03-21  3:07     ` Wan Mohamad, Wan Ahmad Zainie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.