From: Kevin Hilman <khilman@baylibre.com>
To: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Cc: mark.rutland@arm.com, devicetree@vger.kernel.org,
catalin.marinas@arm.com, linus.walleij@linaro.org,
will.deacon@arm.com, linux-gpio@vger.kernel.org,
robh+dt@kernel.org, carlo@caione.org,
linux-amlogic@lists.infradead.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 0/3] meson-gx: add pwm_AO_ab
Date: Fri, 27 Jan 2017 11:02:15 -0800 [thread overview]
Message-ID: <m27f5guy14.fsf@baylibre.com> (raw)
In-Reply-To: <20170122210528.892-1-martin.blumenstingl@googlemail.com> (Martin Blumenstingl's message of "Sun, 22 Jan 2017 22:05:25 +0100")
Martin Blumenstingl <martin.blumenstingl@googlemail.com> writes:
> This adds support for the PWM controller in the AO domain.
Patches 1,3 applied to Amlogic v4.11/dt64 branch.
Kevin
> pinctrl support for GXBB already exists (in both, pinctrl-meson-gxbb.c
> and meson-gxbb.dtsi). This patch adds at least the pwm_ao_b pin for
> GXL and GXM - these are not documented in Amlogic's kernel, so I had
> to borrow the magic numbers from the Khadas VIM kernel (released under
> the GPL): [0]
>
> The bits for pwm_AO_a_pins are unknown at the time of writing, but these
> can still be added later.
>
> I have successfully tested this on my GXL S905X based Khadas VIM board
> with the following .dts snippets (the PWM LED can simply be dimmed
> through sysfs):
> &pwm_AO_ab {
> status = "okay";
> pinctrl-0 = <&pwm_ao_b_pins>;
> pinctrl-names = "default";
> clocks = <&clkc CLKID_FCLK_DIV4>;
> clock-names = "clkin0";
> };
>
> pwmleds {
> compatible = "pwm-leds";
>
> power {
> label = "vim:red:power";
> pwms = <&pwm_AO_ab 1 7812500 0>;
> max-brightness = <255>;
> };
> };
>
> (if anyone is interested in more of my Khadas VIM patches - these are
> still work-in-progress, which is why I have not sent them yet - can
> take a look at this: [1])
>
> NOTE: The .dts changes from this series are based on top of my SAR ADC
> patches.
>
> [0] https://github.com/khadas/linux/blob/94602ef5562978a8d8b5c7770c113074a714dbdb/drivers/amlogic/led/led_trigger_breathe.c#L75
> [1] https://github.com/xdarklight/linux/commits/meson-gx-integration-4.11-20170122
>
> Martin Blumenstingl (3):
> ARM64: dts: meson-gx: add the missing pwm_AO_ab node
> pinctrl: meson: meson-gxl: add the pwm_ao_b pin
> ARM64: dts: meson-gxl: add the pwm_ao_b pin
>
> arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 7 +++++++
> arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 7 +++++++
> drivers/pinctrl/meson/pinctrl-meson-gxl.c | 8 ++++++++
> 3 files changed, 22 insertions(+)
prev parent reply other threads:[~2017-01-27 19:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-22 21:05 [PATCH 0/3] meson-gx: add pwm_AO_ab Martin Blumenstingl
2017-01-22 21:05 ` [PATCH 1/3] ARM64: dts: meson-gx: add the missing pwm_AO_ab node Martin Blumenstingl
2017-01-22 21:05 ` [PATCH 2/3] pinctrl: meson: meson-gxl: add the pwm_ao_b pin Martin Blumenstingl
[not found] ` <20170122210528.892-3-martin.blumenstingl-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2017-01-23 19:10 ` Kevin Hilman
2017-01-23 19:12 ` Kevin Hilman
2017-01-26 14:41 ` Linus Walleij
2017-01-22 21:05 ` [PATCH 3/3] ARM64: dts: " Martin Blumenstingl
2017-01-27 19:02 ` Kevin Hilman [this message]
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=m27f5guy14.fsf@baylibre.com \
--to=khilman@baylibre.com \
--cc=carlo@caione.org \
--cc=catalin.marinas@arm.com \
--cc=devicetree@vger.kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=martin.blumenstingl@googlemail.com \
--cc=robh+dt@kernel.org \
--cc=will.deacon@arm.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).