public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] PWM driver support for EHRPWM & ECAP
@ 2012-07-25 11:28 Philip, Avinash
  2012-07-25 11:28 ` [PATCH v2 1/2] pwm: pwm-tiecap: PWM driver support for ECAP APWM Philip, Avinash
  2012-07-25 11:28 ` [PATCH v2 2/2] pwm: pwm-tiehrpwm: PWM driver support for EHRPWM Philip, Avinash
  0 siblings, 2 replies; 5+ messages in thread
From: Philip, Avinash @ 2012-07-25 11:28 UTC (permalink / raw)
  To: thierry.reding
  Cc: linux-kernel, nsekhar, vaibhav.bedia, gururaja.hebbar,
	Philip, Avinash

This patch series adds support for PWM driver support for EHRPWM
and ECAP modules which has been present on AM335x SOC. AM335X SOC has 3
instances of ECAP & EHRPWM.

EHRPWM device can be used to generate PWM waveforms. It has 2 channels
of PWM output and each can be configured for different duty cycle and
polarity.

ECAP device can be used as either Capture or APWM mode. In APWM mode,
ECAP can generate PWM waveform.

Patch #1 adds Generic PWM driver support for simple APWM functionality
of ECAP ECAP hardware.

Patch #2 adds  PWM driver support for EHRPWM device.

This patch series is based on new PWM framework maintained at [1].

1. https://gitorious.org/linux-pwm/linux-pwm/trees/for-next

Since v1:
	- Alphabetically placed in Kconfig and Makefile
	- Removes unused MACROS
	- Starts using TI prefix for ecap & ehrpwm modules to avoid
	  confusion.
	- Starts using platform_get_resource() instead of
	  platform_get_resource_byname()
	- Removes dev_info messages of PWM device Initialized.
	- Add const qualifier on struct pwm_ops definition.
	- Removes platform_drvdata check on platform_driver_remove.
	- Starts checking pwmchip_remove() return value.
	- Kept back MACRO definitions which are related to give more
	  readability

Philip, Avinash (2):
  pwm: pwm-tiecap: PWM driver support for ECAP APWM
  pwm: pwm-tiehrpwm: PWM driver support for EHRPWM

 drivers/pwm/Kconfig        |   22 +++
 drivers/pwm/Makefile       |    2 +
 drivers/pwm/pwm-tiecap.c   |  232 +++++++++++++++++++++++++
 drivers/pwm/pwm-tiehrpwm.c |  411 ++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 667 insertions(+), 0 deletions(-)
 create mode 100644 drivers/pwm/pwm-tiecap.c
 create mode 100644 drivers/pwm/pwm-tiehrpwm.c


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

end of thread, other threads:[~2012-07-26  7:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-25 11:28 [PATCH v2 0/2] PWM driver support for EHRPWM & ECAP Philip, Avinash
2012-07-25 11:28 ` [PATCH v2 1/2] pwm: pwm-tiecap: PWM driver support for ECAP APWM Philip, Avinash
2012-07-26  7:18   ` Thierry Reding
2012-07-25 11:28 ` [PATCH v2 2/2] pwm: pwm-tiehrpwm: PWM driver support for EHRPWM Philip, Avinash
2012-07-26  7:19   ` Thierry Reding

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox