diff mbox

ARM: dts: sun4i: Use red1 LED for heartbeat indication on Marsboard A10

Message ID 1451123879-7212-1-git-send-email-mamlinav@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Aleksei Mamlin Dec. 26, 2015, 9:57 a.m. UTC
Marsboard A10 have four red LEDs, the first one can be used for heartbeat indication.

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

Comments

Maxime Ripard Dec. 27, 2015, 8:51 p.m. UTC | #1
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@gmail.com>

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
Hans de Goede Dec. 29, 2015, 12:33 p.m. UTC | #2
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@gmail.com>
>
> 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
Chen-Yu Tsai Dec. 29, 2015, 12:42 p.m. UTC | #3
On Tue, Dec 29, 2015 at 8:33 PM, Hans de Goede <hdegoede@redhat.com> 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@gmail.com>
>>
>>
>> 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
Aleksei Mamlin Dec. 29, 2015, 1:58 p.m. UTC | #4
On Sun, 27 Dec 2015 21:51:51 +0100
Maxime Ripard <maxime.ripard@free-electrons.com> 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@gmail.com>
> 
> 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
Maxime Ripard Jan. 6, 2016, 9:01 p.m. UTC | #5
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@free-electrons.com> 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@gmail.com>
> > 
> > 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
diff mbox

Patch

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 {