From: Shawn Guo <shawn.guo@linaro.org>
To: "Vincent Stehlé" <vincent.stehle@freescale.com>
Cc: Sascha Hauer <kernel@pengutronix.de>,
<linux-arm-kernel@lists.infradead.org>,
<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
Russell King <linux@arm.linux.org.uk>
Subject: Re: [PATCH v2] ARM: dts: imx6qdl-sabresd.dtsi: Add red led
Date: Wed, 5 Mar 2014 19:42:28 +0800 [thread overview]
Message-ID: <20140305114223.GN8784@S2101-09.ap.freescale.net> (raw)
In-Reply-To: <1394007383-21874-1-git-send-email-vincent.stehle@freescale.com>
On Wed, Mar 05, 2014 at 09:16:23AM +0100, Vincent Stehlé wrote:
> Make the red gpio led available to the user.
>
> This can be toggled with the sysfs for example, or used as a heartbeat or mmc
> activity light by changing the trigger.
>
> Signed-off-by: Vincent Stehlé <vincent.stehle@freescale.com>
> Cc: Shawn Guo <shawn.guo@linaro.org>
> Cc: Sascha Hauer <kernel@pengutronix.de>
>
> ---
>
> Hi Shawn,
>
> Thanks for your feedback.
>
> If you don't want to make the led a heartbeat by default, here is v2 of the
> patch, which only makes the led available to the user. One is then free to use
> it as a heartbeat, or something else. Do you prefer it this way?
>
> Best regards,
>
> V.
>
>
> Changes since v1:
> - Do not make it a heartbeat by default.
>
> arch/arm/boot/dts/imx6qdl-sabresd.dtsi | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/arch/arm/boot/dts/imx6qdl-sabresd.dtsi b/arch/arm/boot/dts/imx6qdl-sabresd.dtsi
> index e75e11b..210a8df 100644
> --- a/arch/arm/boot/dts/imx6qdl-sabresd.dtsi
> +++ b/arch/arm/boot/dts/imx6qdl-sabresd.dtsi
> @@ -88,6 +88,16 @@
> default-brightness-level = <7>;
> status = "okay";
> };
> +
> + leds {
> + compatible = "gpio-leds";
> +
> + red {
> + gpios = <&gpio1 2 0>;
> + linux,default-trigger = "none";
Per Documentation/devicetree/bindings/leds/common.txt, 'none' is not a
valid value of property 'linux,default-trigger'. I suggest you simply
drop the property.
> + default-state = "on";
> + };
> + };
> };
>
> &audmux {
> @@ -182,6 +192,7 @@
> MX6QDL_PAD_ENET_TXD1__GPIO1_IO29 0x80000000
> MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x80000000
> MX6QDL_PAD_ENET_CRS_DV__GPIO1_IO25 0x80000000
> + MX6QDL_PAD_GPIO_2__GPIO1_IO02 0x80000000
It's not a hog pin, so shouldn't be added here. (Right, most of the
existing pins shouldn't be here from the beginning)
The patch from Liu Ying [1] could be a good example on this regard.
Shawn
[1] http://www.spinics.net/lists/arm-kernel/msg308999.html
> >;
> };
> };
> --
> 1.9.0
>
>
next prev parent reply other threads:[~2014-03-05 11:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1393943685-32579-1-git-send-email-vincent.stehle@freescale.com>
2014-03-05 6:22 ` [PATCH] ARM: dts: imx6qdl-sabresd.dtsi: Add heartbeat led Shawn Guo
[not found] ` <1394007383-21874-1-git-send-email-vincent.stehle@freescale.com>
2014-03-05 11:42 ` Shawn Guo [this message]
2014-03-05 19:39 ` [PATCH v2] ARM: dts: imx6qdl-sabresd.dtsi: Add red led Russell King - ARM Linux
2014-03-06 2:05 ` Shawn Guo
2014-03-06 10:13 ` Sascha Hauer
[not found] ` <1394045919-1375-1-git-send-email-vincent.stehle@freescale.com>
2014-03-06 2:39 ` [PATCH v3] " Shawn Guo
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=20140305114223.GN8784@S2101-09.ap.freescale.net \
--to=shawn.guo@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=vincent.stehle@freescale.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
all inboxes | Powered by JetHome®