linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: "Vincent Stehlé" <v-stehle@ti.com>
Cc: linux-omap@vger.kernel.org, gemini.tran@ti.com, "Cousson,
	Benoit" <b-cousson@ti.com>
Subject: Re: [PATCH, RFC, RFT] ARM/dts: omap4-panda: Add pinmux configuration for status leds
Date: Mon, 8 Apr 2013 17:12:30 -0700	[thread overview]
Message-ID: <20130409001230.GG10155@atomide.com> (raw)
In-Reply-To: <1365181395-23838-1-git-send-email-v-stehle@ti.com>

* Vincent Stehlé <v-stehle@ti.com> [130405 10:08]:
> Add pinmux configuration for the OMAP4 PandaBoard & ES status leds. We need to
> introduce an empty leds_core_pins section in the "shared" omap4-panda.dts for
> this, which is only used in the -es case.
> 
> While at it, fix the heartbeat led for PandaBoard ES, which is gpio_110.
> 
> Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
> Reported-by: Gemini Tran <gemini.tran@ti.com>
> ---
> 
> Hi,
> 
> Here is a patch to repair the OMAP4 PandaBoard status leds muxing. Could you
> please give me your feedback on this?

Added Benoit to cc also.
 
> This is tested on PandaBoard ES only for the moment; so I would appreciate any
> test report on PandaBoard Ax!
> 
> Note: the empty leds_core_pins / pinmux_leds_core_pins section does not seem to
> be a problem, but maybe there is a more elegant way?

How about move the common entries to omap4-panda-common.dtsi that Benoit
has queued up as "ARM: dts: omap4-panda: move generic sections to
panda-common"?

That way you can define the muxes in the board specifc .dts files without
having to add the empty entries.

Regards,

Tony
 
>  arch/arm/boot/dts/omap4-panda-es.dts | 21 ++++++++++++++++++++-
>  arch/arm/boot/dts/omap4-panda.dts    | 22 ++++++++++++++++++++--
>  2 files changed, 40 insertions(+), 3 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/omap4-panda-es.dts b/arch/arm/boot/dts/omap4-panda-es.dts
> index 73bc1a6..c1d6c0b 100644
> --- a/arch/arm/boot/dts/omap4-panda-es.dts
> +++ b/arch/arm/boot/dts/omap4-panda-es.dts
> @@ -1,5 +1,5 @@
>  /*
> - * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
> + * Copyright (C) 2012-2013 Texas Instruments Incorporated - http://www.ti.com/
>   *
>   * This program is free software; you can redistribute it and/or modify
>   * it under the terms of the GNU General Public License version 2 as
> @@ -31,3 +31,22 @@
>  		0x5e 0x100	/* hdmi_sda.hdmi_sda INPUT | MODE 0 */
>  		>;
>  };
> +
> +/* PandaboardES has "half" different status leds gpios compared to PandaBoard4430. */
> +&heartbeat {
> +	label = "pandaboard::status1";
> +	gpios = <&gpio4 14 0>;	/* gpio_110 */
> +	linux,default-trigger = "heartbeat";
> +};
> +
> +&leds_core_pins {
> +	pinctrl-single,pins = <
> +		0xb6 0x3	/* abe_mcbsp2_clkx.gpio_110 OUTPUT | MODE3 */
> +	>;
> +};
> +
> +&leds_wkup_pins {
> +	pinctrl-single,pins = <
> +		0x1c 0x3	/* fref_clk4_out.gpio_wk8 OUTPUT | MODE3 */
> +	>;
> +};
> diff --git a/arch/arm/boot/dts/omap4-panda.dts b/arch/arm/boot/dts/omap4-panda.dts
> index 4122efe..e645c4e 100644
> --- a/arch/arm/boot/dts/omap4-panda.dts
> +++ b/arch/arm/boot/dts/omap4-panda.dts
> @@ -1,5 +1,5 @@
>  /*
> - * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
> + * Copyright (C) 2011-2013 Texas Instruments Incorporated - http://www.ti.com/
>   *
>   * This program is free software; you can redistribute it and/or modify
>   * it under the terms of the GNU General Public License version 2 as
> @@ -21,7 +21,7 @@
>  
>  	leds {
>  		compatible = "gpio-leds";
> -		heartbeat {
> +		heartbeat: heartbeat {
>  			label = "pandaboard::status1";
>  			gpios = <&gpio1 7 0>;
>  			linux,default-trigger = "heartbeat";
> @@ -67,6 +67,7 @@
>  			&mcbsp1_pins
>  			&dss_hdmi_pins
>  			&tpd12s015_pins
> +			&leds_core_pins
>  	>;
>  
>  	twl6040_pins: pinmux_twl6040_pins {
> @@ -110,6 +111,23 @@
>  			0x58 0x10b	/* hdmi_hpd.gpio_63 INPUT PULLDOWN | MODE3 */
>  		>;
>  	};
> +
> +	leds_core_pins: pinmux_leds_core_pins {
> +	};
> +};
> +
> +&omap4_pmx_wkup {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <
> +			&leds_wkup_pins
> +	>;
> +
> +	leds_wkup_pins: pinmux_leds_wkup_pins {
> +		pinctrl-single,pins = <
> +			0x1a 0x3	/* fref_clk4_req.gpio_wk7 OUTPUT | MODE3 */
> +			0x1c 0x3	/* fref_clk4_out.gpio_wk8 OUTPUT | MODE3 */
> +		>;
> +	};
>  };
>  
>  &i2c1 {
> -- 
> 1.8.1.2
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      parent reply	other threads:[~2013-04-09  0:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1365181395-23838-1-git-send-email-v-stehle@ti.com>
2013-04-08 10:39 ` [PATCH, RFC, RFT] ARM/dts: omap4-panda: Add pinmux configuration for status leds Vincent Stehlé
2013-04-09  0:12 ` Tony Lindgren [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=20130409001230.GG10155@atomide.com \
    --to=tony@atomide.com \
    --cc=b-cousson@ti.com \
    --cc=gemini.tran@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=v-stehle@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;
as well as URLs for NNTP newsgroup(s).