From: Rob Herring <robherring2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Thierry Reding
<thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
Sascha Hauer <s.hauer-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>,
Colin Cross <ccross-z5hGa2qSFaRBDgjK7y7TUQ@public.gmane.org>,
Rob Herring <rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org>,
Richard Purdie <rpurdie-Fm38FmjxZ/leoWH0uzbU5w@public.gmane.org>,
Matthias Kaehlcke
<matthias-RprLehDfhQ3k1uMJSBkQmQ@public.gmane.org>,
linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Kurt Van Dijck <kurt.van.dijck-/BeEPy95v10@public.gmane.org>
Subject: Re: [RFC 0/7] Add PWM device-tree support.
Date: Tue, 20 Dec 2011 07:24:46 -0600 [thread overview]
Message-ID: <4EF08C9E.9020302@gmail.com> (raw)
In-Reply-To: <1324377138-32129-1-git-send-email-thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
On 12/20/2011 04:32 AM, Thierry Reding wrote:
> This patch series adds very rudimentary device-tree support for PWM devices.
> I fully realize that this is early work and it should not be merged as is.
> However I wanted to post these patches for review to make sure I'm not on a
> wild-goose chase.
>
> 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-backlight 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 takes from Sascha's branch,
> while the second patch enables each PWM chip to provide multiple PWM devices
> (none of the drivers in Sascha's branch are converted yet).
>
> Patch 3 adds some code to lookup a PWM chip given its device-tree handle. This
> code will be used later on by the pwm-backlight driver to find the PWM device
> that it should be using. I did not include any binding documentation yet since
> I wasn't sure the DT binding was at all sensible.
>
> Patch 4 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.
>
> Patch 5 cleans up the clock registration for Tegra2 because patch 6 will only
> instantiate one device for the PWFM controller instead of four.
>
> Patch 6 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.
>
> Patch 7 implements DT-based probing in the pwm-backlight driver. Note that
> this code only handles the "pwm" property (by looking up the PWM device via
> the new PWM DT binding) and the "default-" and "max-brightness" properties.
> Switching power to the backlight via GPIOs is not supported yet.
>
> [0]: http://git.pengutronix.de/?p=imx/linux-2.6.git;a=shortlog;h=refs/heads/pwmlib
>
> Sascha Hauer (1):
> PWM: add pwm framework support
>
> Simon Que (1):
> arm: tegra: Fix PWM clock programming
>
> Thierry Reding (5):
> pwm: Allow chips to support multiple PWMs.
> of: Add PWM support.
> arm: tegra: Provide clock for only one PWM controller.
> pwm: Add Tegra2 SoC support
> pwm-backlight: Add rudimentary device-tree support
>
> .../bindings/video/backlight/pwm-backlight | 16 +
> Documentation/pwm.txt | 56 ++++
> MAINTAINERS | 6 +
> arch/arm/boot/dts/tegra20.dtsi | 6 +
> arch/arm/mach-tegra/board-dt.c | 1 +
> arch/arm/mach-tegra/clock.h | 1 +
> arch/arm/mach-tegra/devices.c | 15 +
> arch/arm/mach-tegra/devices.h | 1 +
> arch/arm/mach-tegra/tegra2_clocks.c | 33 ++-
> drivers/Kconfig | 2 +
> drivers/Makefile | 1 +
> drivers/of/Kconfig | 6 +
> drivers/of/Makefile | 1 +
> drivers/of/pwm.c | 88 ++++++
> drivers/pwm/Kconfig | 17 ++
> drivers/pwm/Makefile | 2 +
> drivers/pwm/core.c | 301 ++++++++++++++++++++
> drivers/pwm/pwm-tegra.c | 274 ++++++++++++++++++
> drivers/video/backlight/Kconfig | 2 +-
> drivers/video/backlight/pwm_bl.c | 70 +++++-
> include/linux/of_pwm.h | 41 +++
> include/linux/pwm.h | 49 ++++
> 22 files changed, 976 insertions(+), 13 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/video/backlight/pwm-backlight
> create mode 100644 Documentation/pwm.txt
> create mode 100644 drivers/of/pwm.c
> create mode 100644 drivers/pwm/Kconfig
> create mode 100644 drivers/pwm/Makefile
> create mode 100644 drivers/pwm/core.c
> create mode 100644 drivers/pwm/pwm-tegra.c
> create mode 100644 include/linux/of_pwm.h
You need binding documentation for the pwm portion.
Rob
next prev parent reply other threads:[~2011-12-20 13:24 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-20 10:32 [RFC 0/7] Add PWM device-tree support Thierry Reding
[not found] ` <1324377138-32129-1-git-send-email-thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
2011-12-20 10:32 ` [RFC 1/7] PWM: add pwm framework support Thierry Reding
[not found] ` <1324377138-32129-2-git-send-email-thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
2011-12-20 22:13 ` Stephen Warren
[not found] ` <74CDBE0F657A3D45AFBB94109FB122FF176BE92E50-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-12-21 0:54 ` Mark Brown
2011-12-20 10:32 ` [RFC 2/7] pwm: Allow chips to support multiple PWMs Thierry Reding
[not found] ` <1324377138-32129-3-git-send-email-thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
2011-12-20 22:32 ` Stephen Warren
[not found] ` <74CDBE0F657A3D45AFBB94109FB122FF176BE92E67-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-12-21 7:51 ` Thierry Reding
[not found] ` <20111221075141.GB542-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org>
2011-12-21 14:09 ` Thierry Reding
[not found] ` <20111221140944.GA30666-RM9K5IK7kjIyiCvfTdI0JKcOhU4Rzj621B7CTYaBSLdn68oJJulU0Q@public.gmane.org>
2011-12-21 16:55 ` Stephen Warren
[not found] ` <74CDBE0F657A3D45AFBB94109FB122FF176BE92FEC-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-12-22 6:57 ` Thierry Reding
2011-12-20 10:32 ` [RFC 3/7] of: Add PWM support Thierry Reding
[not found] ` <1324377138-32129-4-git-send-email-thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
2011-12-20 22:45 ` Stephen Warren
[not found] ` <74CDBE0F657A3D45AFBB94109FB122FF176BE92E6A-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-12-21 8:09 ` Thierry Reding
2011-12-20 10:32 ` [RFC 4/7] arm: tegra: Fix PWM clock programming Thierry Reding
[not found] ` <1324377138-32129-5-git-send-email-thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
2011-12-20 22:57 ` Stephen Warren
[not found] ` <74CDBE0F657A3D45AFBB94109FB122FF176BE92E7E-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-12-21 9:12 ` Thierry Reding
[not found] ` <20111221091227.GE542-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org>
2011-12-21 16:44 ` Stephen Warren
2011-12-20 10:32 ` [RFC 5/7] arm: tegra: Provide clock for only one PWM controller Thierry Reding
[not found] ` <1324377138-32129-6-git-send-email-thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
2011-12-20 22:57 ` Stephen Warren
2011-12-20 10:32 ` [RFC 6/7] pwm: Add Tegra2 SoC support Thierry Reding
[not found] ` <1324377138-32129-7-git-send-email-thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
2011-12-20 22:29 ` Olof Johansson
[not found] ` <CAOesGMibzg80rpeUMt-RTyz=0cffHtZmUe09XDdODNKwZmsX2A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-12-21 7:19 ` Thierry Reding
2011-12-20 23:23 ` Stephen Warren
2011-12-20 10:32 ` [RFC 7/7] pwm-backlight: Add rudimentary device-tree support Thierry Reding
[not found] ` <1324377138-32129-8-git-send-email-thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
2011-12-20 23:33 ` Stephen Warren
[not found] ` <74CDBE0F657A3D45AFBB94109FB122FF176BE92EBE-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-12-21 9:32 ` Thierry Reding
[not found] ` <20111221093257.GF542-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org>
2011-12-21 18:20 ` Stephen Warren
[not found] ` <74CDBE0F657A3D45AFBB94109FB122FF176BE9302E-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-12-21 19:04 ` Mitch Bradley
[not found] ` <4EF22DCB.10502-D5eQfiDGL7eakBO8gow8eQ@public.gmane.org>
2011-12-22 7:45 ` Thierry Reding
2011-12-20 13:24 ` Rob Herring [this message]
[not found] ` <4EF08C9E.9020302-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2011-12-20 13:41 ` [RFC 0/7] Add PWM " 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=4EF08C9E.9020302@gmail.com \
--to=robherring2-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=ccross-z5hGa2qSFaRBDgjK7y7TUQ@public.gmane.org \
--cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
--cc=kurt.van.dijck-/BeEPy95v10@public.gmane.org \
--cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=matthias-RprLehDfhQ3k1uMJSBkQmQ@public.gmane.org \
--cc=rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org \
--cc=rpurdie-Fm38FmjxZ/leoWH0uzbU5w@public.gmane.org \
--cc=s.hauer-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org \
--cc=thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org \
/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).