From: "Eric Bénard" <eric@eukrea.com>
To: Thierry Reding <thierry.reding@avionic-design.de>
Cc: Lars-Peter Clausen <lars@metafoo.de>,
Mike Frysinger <vapier@gentoo.org>,
Ryan Mallon <rmallon@gmail.com>, Arnd Bergmann <arnd@arndb.de>,
Stephen Warren <swarren@wwwdotorg.org>,
linux-tegra@vger.kernel.org, devicetree-discuss@lists.ozlabs.org,
Mark Brown <broonie@opensource.wolfsonmicro.com>,
Matthias Kaehlcke <matthias@kaehlcke.net>,
Rob Herring <rob.herring@calxeda.com>,
Grant Likely <grant.likely@secretlab.ca>,
Olof Johansson <olof@lixom.net>,
Bernhard Walle <walle@corscience.de>,
Richard Purdie <rpurdie@rpsys.net>,
Colin Cross <ccross@android.com>,
Mitch Bradley <wmb@firmworks.com>,
Eric Miao <eric.y.miao@gmail.com>,
Shawn Guo <shawn.guo@linaro.org>,
Sascha Hauer <s.hauer@pengutronix.de>,
linux-arm-kernel@lists.infradead.org,
Kurt Van Dijck <kurt.van.dijck@eia.be>
Subject: Re: [PATCH v6 00/17] Add PWM framework and device tree support
Date: Sun, 29 Apr 2012 17:40:37 +0200 [thread overview]
Message-ID: <20120429174037.59c0de8d@eb-e6520> (raw)
In-Reply-To: <1334070400-25013-1-git-send-email-thierry.reding@avionic-design.de>
Hi Thierry,
Le Tue, 10 Apr 2012 17:06:23 +0200,
Thierry Reding <thierry.reding@avionic-design.de> a écrit :
> This patch series adds very rudimentary device-tree support for PWM
> devices. With all of these patches applied (plus one board-specific
> patch that is not included), I'm able to control the backlight on the
> device I'm working on using the sysfs interface provided by the pwm-bl
> driver and the backlight class.
>
> This series is based on Sascha Hauer's series of patches[0] to add a
> generic PWM framework. The first patch in this series is taken from
> Sascha's branch, while the second patch enables each PWM chip to provide
> multiple PWM devices (the Blackfin and PXA drivers have been ported to
> the framework for reference). Currently a global namespace is still
> provided to keep backwards-compatibility with the legacy PWM API. In
> order to achieve this, the number of global PWM devices is limited to
> 1024. However, patch 2 introduces per-chip indexing of PWM devices in
> the core and patch 4 adds an API to request a PWM device using a lookup
> table registered by board setup code. They are supposed to eventually
> replace pwm_request() and allow to get rid of the global namespace. The
> device tree support code does not use the global namespace.
>
> Patch 3 adds a debugfs interface.
>
> Patch 5 adds some code to lookup a PWM chip given its device-tree
> handle. This code will be used later on by the pwm-bl driver to find the
> PWM device that it should be using. If the no corresponding PWM chip is
> available yet, the code returns EPROBE_DEFER to have users automatically
> probed again later when the PWM provider may have become available.
> Device tree binding documentation is also provided.
>
> Patch 6 was taken from the Chromium tree and is required to provide
> proper clocking of the Tegra2 PWFM controller. All Chromium-specific
> tags have been removed from the commit message. Some cleanup of the
> clock registration for Tegra is done in patch 7 because a subsequent
> patch will instantiate one PWFM controller device instead of four.
>
> Patch 8 adds a generic PWM framework driver for the Tegra2 PWFM
> controller. The code is taken from the Chromium tree with some
> adjustments to integrate it with the PWM framework. Device tree based
> probing of the driver is implemented in patch 9.
>
> Patches 10 and 11 are ports of the Blackfin PWM and the PXA PWM drivers
> to the PWM framework. These are only compile-tested as I do not have any
> hardware to test them on.
>
> Patches 12, 13 and 14 move the i.MX, Samsung and VT8500 drivers over to
> the framework. These are originally by Sascha Hauer and were updated to
> take advantage of the multiple PWM devices per chip feature. Patch 15
> adds support for Freescale MXS by Shawn Guo.
>
> Patch 16 implements DT-based probing in the pwm-backlight driver. Note
> that this code only handles the "pwms" property (by looking up the PWM
> device via the new PWM DT binding). Switching power to the backlight via
> GPIOs is not supported yet. The DT binding also deviates from the
> platform data in that it requires a list of brightness levels to be
> specified instead of assuming a linearily spaced range from 0 to a given
> maximum brightness.
>
> Finally, patch 17 makes me the new maintainer of the PWM subsystem.
>
> The whole series is based on the linux-next tree from 20120405. I think
> I've addressed all of the concerns raised in the first five versions. I
> have also pushed this version of the series to the PWM subsystem
> repository[1].
>
> Thierry
>
> [0]: http://git.pengutronix.de/?p=imx/linux-2.6.git;a=shortlog;h=refs/heads/pwmlib
> [1]: http://gitorious.org/linux-pwm/linux-pwm/trees/pwm-v6
>
> Sascha Hauer (4):
> pwm: Add PWM framework support
> ARM i.MX: Move i.MX pwm driver to pwm framework
> ARM Samsung: Move s3c pwm driver to pwm framework
> ARM vt8500: Move vt8500 pwm driver to pwm framework
>
> Shawn Guo (1):
> pwm: add pwm-mxs support
>
> Simon Que (1):
> ARM: tegra: Fix PWM clock programming
>
> Thierry Reding (11):
> pwm: Allow chips to support multiple PWMs
> pwm: Add debugfs interface
> pwm: Add table-based lookup for static mappings
> pwm: Add device tree support
> ARM: tegra: Provide clock for only one PWM controller
> pwm: Add NVIDIA Tegra SoC support
> pwm: tegra: Add device tree support
> pwm: Move Blackfin PWM driver to PWM framework
> pwm: Move PXA PWM driver to PWM framework
> pwm-backlight: Add rudimentary device tree support
> pwm: Take over maintainership of the PWM subsystem
>
for pwm-core & pwm-imx (with the 3 patches I sent a few minutes ago) :
Tested-by: Eric Bénard <eric@eukrea.com>
Thanks !
Eric
next prev parent reply other threads:[~2012-04-29 15:40 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-10 15:06 [PATCH v6 00/17] Add PWM framework and device tree support Thierry Reding
2012-04-29 15:40 ` Eric Bénard [this message]
[not found] ` <1334070400-25013-1-git-send-email-thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
2012-04-10 15:06 ` [PATCH v6 01/17] pwm: Add PWM framework support Thierry Reding
2012-04-10 15:06 ` [PATCH v6 02/17] pwm: Allow chips to support multiple PWMs Thierry Reding
2012-04-10 15:06 ` [PATCH v6 03/17] pwm: Add debugfs interface Thierry Reding
[not found] ` <1334070400-25013-4-git-send-email-thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
2012-04-11 12:33 ` Shawn Guo
[not found] ` <20120411123352.GA2445-rvtDTF3kK1ictlrPMvKcciBecyulp+rMXqFh9Ls21Oc@public.gmane.org>
2012-04-11 12:38 ` Thierry Reding
2012-04-11 15:11 ` Mark Brown
2012-04-10 15:06 ` [PATCH v6 04/17] pwm: Add table-based lookup for static mappings Thierry Reding
[not found] ` <1334070400-25013-5-git-send-email-thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
2012-04-11 12:38 ` Shawn Guo
[not found] ` <20120411123815.GB2445-rvtDTF3kK1ictlrPMvKcciBecyulp+rMXqFh9Ls21Oc@public.gmane.org>
2012-04-11 12:51 ` Thierry Reding
2012-04-13 9:47 ` Mark Brown
2012-04-10 15:06 ` [PATCH v6 05/17] pwm: Add device tree support Thierry Reding
[not found] ` <1334070400-25013-6-git-send-email-thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
2012-04-11 13:02 ` Shawn Guo
[not found] ` <20120411130208.GC2445-rvtDTF3kK1ictlrPMvKcciBecyulp+rMXqFh9Ls21Oc@public.gmane.org>
2012-04-11 13:14 ` Thierry Reding
2012-04-10 15:06 ` [PATCH v6 06/17] ARM: tegra: Fix PWM clock programming Thierry Reding
2012-04-10 15:06 ` [PATCH v6 07/17] ARM: tegra: Provide clock for only one PWM controller Thierry Reding
2012-04-10 15:06 ` [PATCH v6 08/17] pwm: Add NVIDIA Tegra SoC support Thierry Reding
2012-04-10 15:06 ` [PATCH v6 09/17] pwm: tegra: Add device tree support Thierry Reding
2012-04-10 15:06 ` [PATCH v6 10/17] pwm: Move Blackfin PWM driver to PWM framework Thierry Reding
2012-04-10 15:06 ` [PATCH v6 11/17] pwm: Move PXA " Thierry Reding
2012-04-10 15:06 ` [PATCH v6 12/17] ARM i.MX: Move i.MX pwm driver to pwm framework Thierry Reding
2012-04-10 15:06 ` [PATCH v6 13/17] ARM Samsung: Move s3c " Thierry Reding
2012-04-10 15:06 ` [PATCH v6 14/17] ARM vt8500: Move vt8500 " Thierry Reding
2012-04-10 15:06 ` [PATCH v6 15/17] pwm: add pwm-mxs support Thierry Reding
2012-04-10 15:06 ` [PATCH v6 16/17] pwm-backlight: Add rudimentary device tree support Thierry Reding
[not found] ` <1334070400-25013-17-git-send-email-thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
2012-04-11 13:28 ` Shawn Guo
2012-04-13 9:48 ` Mark Brown
2012-04-10 15:06 ` [PATCH v6 17/17] pwm: Take over maintainership of the PWM subsystem Thierry Reding
[not found] ` <1334070400-25013-18-git-send-email-thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
2012-04-10 19:51 ` Arnd Bergmann
[not found] ` <201204101951.44198.arnd-r2nGTMty4D4@public.gmane.org>
2012-04-12 7:22 ` Thierry Reding
[not found] ` <20120412072206.GB18252-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org>
2012-04-12 11:34 ` Arnd Bergmann
[not found] ` <201204121134.24892.arnd-r2nGTMty4D4@public.gmane.org>
2012-04-12 12:27 ` Thierry Reding
[not found] ` <20120412122740.GB5353-RM9K5IK7kjIyiCvfTdI0JKcOhU4Rzj621B7CTYaBSLdn68oJJulU0Q@public.gmane.org>
2012-04-16 5:50 ` Thierry Reding
[not found] ` <20120416055012.GA3037-RM9K5IK7kjIyiCvfTdI0JKcOhU4Rzj621B7CTYaBSLdn68oJJulU0Q@public.gmane.org>
2012-04-16 15:02 ` Arnd Bergmann
2012-04-10 20:58 ` Sascha Hauer
2012-06-14 12:47 ` [PATCH v6 00/17] Add PWM framework and device tree support Hebbar, Gururaja
[not found] ` <1BAFE6F6C881BF42822005164F1491C33EA21A9F-Er742YJ7I/eIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2012-06-14 12:53 ` Thierry Reding
2012-06-14 13:36 ` Hebbar, Gururaja
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=20120429174037.59c0de8d@eb-e6520 \
--to=eric@eukrea.com \
--cc=arnd@arndb.de \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=ccross@android.com \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=eric.y.miao@gmail.com \
--cc=grant.likely@secretlab.ca \
--cc=kurt.van.dijck@eia.be \
--cc=lars@metafoo.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-tegra@vger.kernel.org \
--cc=matthias@kaehlcke.net \
--cc=olof@lixom.net \
--cc=rmallon@gmail.com \
--cc=rob.herring@calxeda.com \
--cc=rpurdie@rpsys.net \
--cc=s.hauer@pengutronix.de \
--cc=shawn.guo@linaro.org \
--cc=swarren@wwwdotorg.org \
--cc=thierry.reding@avionic-design.de \
--cc=vapier@gentoo.org \
--cc=walle@corscience.de \
--cc=wmb@firmworks.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;
as well as URLs for NNTP newsgroup(s).