public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Philip, Avinash" <avinashphilip@ti.com>
To: <thierry.reding@avionic-design.de>
Cc: <linux-kernel@vger.kernel.org>, <nsekhar@ti.com>,
	<vaibhav.bedia@ti.com>, <gururaja.hebbar@ti.com>,
	"Philip, Avinash" <avinashphilip@ti.com>
Subject: [PATCH v2 0/2] PWM driver support for EHRPWM & ECAP
Date: Wed, 25 Jul 2012 16:58:17 +0530	[thread overview]
Message-ID: <1343215699-4575-1-git-send-email-avinashphilip@ti.com> (raw)

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


             reply	other threads:[~2012-07-25 11:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-25 11:28 Philip, Avinash [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1343215699-4575-1-git-send-email-avinashphilip@ti.com \
    --to=avinashphilip@ti.com \
    --cc=gururaja.hebbar@ti.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nsekhar@ti.com \
    --cc=thierry.reding@avionic-design.de \
    --cc=vaibhav.bedia@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox