All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 07/11] ARM: shmobile: lager: Add GPIO LEDs
Date: Fri, 07 Jun 2013 11:39:41 +0000	[thread overview]
Message-ID: <51B1C67D.7040900@cogentembedded.com> (raw)
In-Reply-To: <1370593329-27559-8-git-send-email-horms+renesas@verge.net.au>

Hello.

On 07-06-2013 12:22, Simon Horman wrote:

> The board has 3 LEDs connected to GPIOs. Add a led-gpio device to
> support them.

> Based on "ARM: shmobile: marzen: Add GPIO LEDs" by Laurent Pinchart.

> Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
> ---
>   arch/arm/mach-shmobile/board-lager.c | 27 +++++++++++++++++++++++++++
>   1 file changed, 27 insertions(+)

> diff --git a/arch/arm/mach-shmobile/board-lager.c b/arch/arm/mach-shmobile/board-lager.c
> index 6114edd..6a1ba38 100644
> --- a/arch/arm/mach-shmobile/board-lager.c
> +++ b/arch/arm/mach-shmobile/board-lager.c
> @@ -21,13 +21,37 @@
[...]
> +static struct gpio_led_platform_data lager_leds_pdata = {

     Misses __initdata. Too late now, need another patch...

> +	.leds		= lager_leds,
> +	.num_leds	= ARRAY_SIZE(lager_leds),
> +};
> +
>   static const struct pinctrl_map lager_pinctrl_map[] = {
>   	/* SCIF0 (CN19: DEBUG SERIAL0) */
>   	PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.6", "pfc-r8a7790",
> @@ -46,6 +70,9 @@ static void __init lager_add_standard_devices(void)
>   	r8a7790_pinmux_init();
>
>   	r8a7790_add_standard_devices();
> +	platform_device_register_data(&platform_bus, "leds-gpio", -1,
> +				      &lager_leds_pdata,
> +				      sizeof(lager_leds_pdata));
>   }
>
>   static const char *lager_boards_compat_dt[] __initdata = {

WBR, Sergei


WARNING: multiple messages have this Message-ID (diff)
From: sergei.shtylyov@cogentembedded.com (Sergei Shtylyov)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 07/11] ARM: shmobile: lager: Add GPIO LEDs
Date: Fri, 07 Jun 2013 15:39:41 +0400	[thread overview]
Message-ID: <51B1C67D.7040900@cogentembedded.com> (raw)
In-Reply-To: <1370593329-27559-8-git-send-email-horms+renesas@verge.net.au>

Hello.

On 07-06-2013 12:22, Simon Horman wrote:

> The board has 3 LEDs connected to GPIOs. Add a led-gpio device to
> support them.

> Based on "ARM: shmobile: marzen: Add GPIO LEDs" by Laurent Pinchart.

> Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
> ---
>   arch/arm/mach-shmobile/board-lager.c | 27 +++++++++++++++++++++++++++
>   1 file changed, 27 insertions(+)

> diff --git a/arch/arm/mach-shmobile/board-lager.c b/arch/arm/mach-shmobile/board-lager.c
> index 6114edd..6a1ba38 100644
> --- a/arch/arm/mach-shmobile/board-lager.c
> +++ b/arch/arm/mach-shmobile/board-lager.c
> @@ -21,13 +21,37 @@
[...]
> +static struct gpio_led_platform_data lager_leds_pdata = {

     Misses __initdata. Too late now, need another patch...

> +	.leds		= lager_leds,
> +	.num_leds	= ARRAY_SIZE(lager_leds),
> +};
> +
>   static const struct pinctrl_map lager_pinctrl_map[] = {
>   	/* SCIF0 (CN19: DEBUG SERIAL0) */
>   	PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.6", "pfc-r8a7790",
> @@ -46,6 +70,9 @@ static void __init lager_add_standard_devices(void)
>   	r8a7790_pinmux_init();
>
>   	r8a7790_add_standard_devices();
> +	platform_device_register_data(&platform_bus, "leds-gpio", -1,
> +				      &lager_leds_pdata,
> +				      sizeof(lager_leds_pdata));
>   }
>
>   static const char *lager_boards_compat_dt[] __initdata = {

WBR, Sergei

  reply	other threads:[~2013-06-07 11:39 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-07  8:21 [GIT PULL 00/11] Renesas ARM-based SoC board updates for v3.11 Simon Horman
2013-06-07  8:21 ` Simon Horman
2013-06-07  8:21 ` [PATCH 01/11] ARM: shmobile: ape6evm: MP clock parent become EXTAL2 Simon Horman
2013-06-07  8:21   ` Simon Horman
2013-06-07  8:22 ` [PATCH 02/11] ARM: shmobile: bockw: define FPGA address and rename iomem variable Simon Horman
2013-06-07  8:22   ` Simon Horman
2013-06-07  8:22 ` [PATCH 03/11] ARM: shmobile: kzm9d: resigser smsc911x platform device with id -1 Simon Horman
2013-06-07  8:22   ` Simon Horman
2013-06-07  8:22 ` [PATCH 04/11] ARM: shmobile: kzm9g: add AS3711 PMIC platform data Simon Horman
2013-06-07  8:22   ` Simon Horman
2013-06-07  8:22 ` [PATCH 05/11] ARM: shmobile: bockw: add CN9 SCIF/RCAN selection dipswitch explanation Simon Horman
2013-06-07  8:22   ` Simon Horman
2013-06-07  8:22 ` [PATCH 06/11] ARM: shmobile: bockw: add dummy regulators for SMSC Simon Horman
2013-06-07  8:22   ` Simon Horman
2015-01-21 16:20   ` [PATCH 06/11] ARM: shmobile: bockw: add devices hooked up to i2c0 to DT Ulrich Hecht
2015-01-22 11:12   ` Geert Uytterhoeven
2015-01-22 12:08   ` Geert Uytterhoeven
2013-06-07  8:22 ` [PATCH 07/11] ARM: shmobile: lager: Add GPIO LEDs Simon Horman
2013-06-07  8:22   ` Simon Horman
2013-06-07 11:39   ` Sergei Shtylyov [this message]
2013-06-07 11:39     ` Sergei Shtylyov
2013-06-07  8:22 ` [PATCH 08/11] ARM: shmobile: lager: support GPIO switches Simon Horman
2013-06-07  8:22   ` Simon Horman
2013-06-07  8:22 ` [PATCH 09/11] ARM: shmobile: marzen: Use INTC External IRQ pin driver for SMSC Simon Horman
2013-06-07  8:22   ` Simon Horman
2013-06-07  8:22 ` [PATCH 10/11] ARM: shmobile: bockw: add SDHI0 support Simon Horman
2013-06-07  8:22   ` Simon Horman
2013-06-07  8:22 ` [PATCH 11/11] ARM: shmobile: marzen: keep local function as static Simon Horman
2013-06-07  8:22   ` Simon Horman

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=51B1C67D.7040900@cogentembedded.com \
    --to=sergei.shtylyov@cogentembedded.com \
    --cc=linux-arm-kernel@lists.infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.