devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: sun4i: Use red1 LED for heartbeat indication on Marsboard A10
@ 2015-12-26  9:57 Aleksei Mamlin
       [not found] ` <1451123879-7212-1-git-send-email-mamlinav-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Aleksei Mamlin @ 2015-12-26  9:57 UTC (permalink / raw)
  To: Maxime Ripard
  Cc: Aleksei Mamlin, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	devicetree, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw

Marsboard A10 have four red LEDs, the first one can be used for heartbeat indication.

Signed-off-by: Aleksei Mamlin <mamlinav-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
 arch/arm/boot/dts/sun4i-a10-marsboard.dts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/boot/dts/sun4i-a10-marsboard.dts b/arch/arm/boot/dts/sun4i-a10-marsboard.dts
index 8e50723..ff73ee1 100644
--- a/arch/arm/boot/dts/sun4i-a10-marsboard.dts
+++ b/arch/arm/boot/dts/sun4i-a10-marsboard.dts
@@ -68,6 +68,7 @@
 		red1 {
 			label = "marsboard:red1:usr";
 			gpios = <&pio 1 5 GPIO_ACTIVE_HIGH>;
+			linux,default-trigger = "heartbeat";
 		};
 
 		red2 {
-- 
2.4.10

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] ARM: dts: sun4i: Use red1 LED for heartbeat indication on Marsboard A10
       [not found] ` <1451123879-7212-1-git-send-email-mamlinav-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2015-12-27 20:51   ` Maxime Ripard
  2015-12-29 12:33     ` Hans de Goede
  2015-12-29 13:58     ` Aleksei Mamlin
  0 siblings, 2 replies; 6+ messages in thread
From: Maxime Ripard @ 2015-12-27 20:51 UTC (permalink / raw)
  To: Aleksei Mamlin, Chen-Yu Tsai, Hans de Goede
  Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree,
	linux-sunxi-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 579 bytes --]

On Sat, Dec 26, 2015 at 12:57:59PM +0300, Aleksei Mamlin wrote:
> Marsboard A10 have four red LEDs, the first one can be used for
> heartbeat indication.
> 
> Signed-off-by: Aleksei Mamlin <mamlinav-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

I'm really not sure about this one.

This is something that can easily be changed through sysfs, and it
will likely end up being a "war" on what trigger people want to use.

Hans, Chen-Yu, What's your view on this?

Thanks,
Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Re: [PATCH] ARM: dts: sun4i: Use red1 LED for heartbeat indication on Marsboard A10
  2015-12-27 20:51   ` Maxime Ripard
@ 2015-12-29 12:33     ` Hans de Goede
       [not found]       ` <56827DA2.2060006-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  2015-12-29 13:58     ` Aleksei Mamlin
  1 sibling, 1 reply; 6+ messages in thread
From: Hans de Goede @ 2015-12-29 12:33 UTC (permalink / raw)
  To: Maxime Ripard, Aleksei Mamlin, Chen-Yu Tsai
  Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree,
	linux-sunxi-/JYPxA39Uh5TLH3MbocFFw

Hi,

On 27-12-15 21:51, Maxime Ripard wrote:
> On Sat, Dec 26, 2015 at 12:57:59PM +0300, Aleksei Mamlin wrote:
>> Marsboard A10 have four red LEDs, the first one can be used for
>> heartbeat indication.
>>
>> Signed-off-by: Aleksei Mamlin <mamlinav-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
>
> I'm really not sure about this one.
>
> This is something that can easily be changed through sysfs, and it
> will likely end up being a "war" on what trigger people want to use.
>
> Hans, Chen-Yu, What's your view on this?

I would prefer to not set any (default) led triggers in the dts
files for sunxi boards.

Regards,

Hans

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Re: [PATCH] ARM: dts: sun4i: Use red1 LED for heartbeat indication on Marsboard A10
       [not found]       ` <56827DA2.2060006-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2015-12-29 12:42         ` Chen-Yu Tsai
  0 siblings, 0 replies; 6+ messages in thread
From: Chen-Yu Tsai @ 2015-12-29 12:42 UTC (permalink / raw)
  To: Hans de Goede
  Cc: Maxime Ripard, Aleksei Mamlin, Chen-Yu Tsai, linux-arm-kernel,
	devicetree, linux-sunxi

On Tue, Dec 29, 2015 at 8:33 PM, Hans de Goede <hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
> Hi,
>
> On 27-12-15 21:51, Maxime Ripard wrote:
>>
>> On Sat, Dec 26, 2015 at 12:57:59PM +0300, Aleksei Mamlin wrote:
>>>
>>> Marsboard A10 have four red LEDs, the first one can be used for
>>> heartbeat indication.
>>>
>>> Signed-off-by: Aleksei Mamlin <mamlinav-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
>>
>>
>> I'm really not sure about this one.
>>
>> This is something that can easily be changed through sysfs, and it
>> will likely end up being a "war" on what trigger people want to use.
>>
>> Hans, Chen-Yu, What's your view on this?
>
>
> I would prefer to not set any (default) led triggers in the dts
> files for sunxi boards.

+1

ChenYu

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] ARM: dts: sun4i: Use red1 LED for heartbeat indication on Marsboard A10
  2015-12-27 20:51   ` Maxime Ripard
  2015-12-29 12:33     ` Hans de Goede
@ 2015-12-29 13:58     ` Aleksei Mamlin
       [not found]       ` <20151229165819.a4c0e978aa5ebd121113cad1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  1 sibling, 1 reply; 6+ messages in thread
From: Aleksei Mamlin @ 2015-12-29 13:58 UTC (permalink / raw)
  To: Maxime Ripard
  Cc: Chen-Yu Tsai, Hans de Goede,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree,
	linux-sunxi-/JYPxA39Uh5TLH3MbocFFw

On Sun, 27 Dec 2015 21:51:51 +0100
Maxime Ripard <maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> wrote:

> On Sat, Dec 26, 2015 at 12:57:59PM +0300, Aleksei Mamlin wrote:
> > Marsboard A10 have four red LEDs, the first one can be used for
> > heartbeat indication.
> > 
> > Signed-off-by: Aleksei Mamlin <mamlinav-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> 
> I'm really not sure about this one.
> 
> This is something that can easily be changed through sysfs, and it
> will likely end up being a "war" on what trigger people want to use.
> 

If so, then Ok, please ignore this patch.

Is there any way to set led triggers through cmdline instead of sysfs?

>
> Hans, Chen-Yu, What's your view on this?
> 
> Thanks,
> Maxime
> 
> -- 
> Maxime Ripard, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com


-- 
Thanks and regards,
Aleksei Mamlin

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] ARM: dts: sun4i: Use red1 LED for heartbeat indication on Marsboard A10
       [not found]       ` <20151229165819.a4c0e978aa5ebd121113cad1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2016-01-06 21:01         ` Maxime Ripard
  0 siblings, 0 replies; 6+ messages in thread
From: Maxime Ripard @ 2016-01-06 21:01 UTC (permalink / raw)
  To: Aleksei Mamlin
  Cc: Chen-Yu Tsai, Hans de Goede,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree,
	linux-sunxi-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 933 bytes --]

On Tue, Dec 29, 2015 at 04:58:19PM +0300, Aleksei Mamlin wrote:
> On Sun, 27 Dec 2015 21:51:51 +0100
> Maxime Ripard <maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> wrote:
> 
> > On Sat, Dec 26, 2015 at 12:57:59PM +0300, Aleksei Mamlin wrote:
> > > Marsboard A10 have four red LEDs, the first one can be used for
> > > heartbeat indication.
> > > 
> > > Signed-off-by: Aleksei Mamlin <mamlinav-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> > 
> > I'm really not sure about this one.
> > 
> > This is something that can easily be changed through sysfs, and it
> > will likely end up being a "war" on what trigger people want to use.
> > 
> 
> If so, then Ok, please ignore this patch.
> 
> Is there any way to set led triggers through cmdline instead of sysfs?

Unfortunately, I don't think there's any.

Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-01-06 21:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-26  9:57 [PATCH] ARM: dts: sun4i: Use red1 LED for heartbeat indication on Marsboard A10 Aleksei Mamlin
     [not found] ` <1451123879-7212-1-git-send-email-mamlinav-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-12-27 20:51   ` Maxime Ripard
2015-12-29 12:33     ` Hans de Goede
     [not found]       ` <56827DA2.2060006-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-12-29 12:42         ` Chen-Yu Tsai
2015-12-29 13:58     ` Aleksei Mamlin
     [not found]       ` <20151229165819.a4c0e978aa5ebd121113cad1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-01-06 21:01         ` Maxime Ripard

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).