linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc/85xx: Activate Cyrus disk-activity LED
@ 2019-02-09 23:14 Darren Stevens
  2019-02-12 21:35 ` Scott Wood
  0 siblings, 1 reply; 2+ messages in thread
From: Darren Stevens @ 2019-02-09 23:14 UTC (permalink / raw)
  To: linuxppc-dev, oss; +Cc: chzigotzky

The disk activity LED on the Cyrus board is attached to a gpio pin,
add the required device-tree node for the kernel driver to use.

Signed-off-by: Darren Stevens <darren@stevens-zone.net>

---

diff --git a/arch/powerpc/boot/dts/fsl/cyrus_p5020.dts b/arch/powerpc/boot/dts/fsl/cyrus_p5020.dts
index 15e8440..348cfdb 100644
--- a/arch/powerpc/boot/dts/fsl/cyrus_p5020.dts
+++ b/arch/powerpc/boot/dts/fsl/cyrus_p5020.dts
@@ -82,6 +82,15 @@
            gpios = <&gpio0 2 1>;
        };
 
+       leds {
+           compatible = "gpio-leds";
+
+           hdd {
+               label = "Disk Activity";
+               gpios = <&gpio0 5 0>;
+               linux,default-trigger = "disk-activity";
+           };
+       };
    };
 
    rio: rapidio@ffe0c0000 {


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

* Re: [PATCH] powerpc/85xx: Activate Cyrus disk-activity LED
  2019-02-09 23:14 [PATCH] powerpc/85xx: Activate Cyrus disk-activity LED Darren Stevens
@ 2019-02-12 21:35 ` Scott Wood
  0 siblings, 0 replies; 2+ messages in thread
From: Scott Wood @ 2019-02-12 21:35 UTC (permalink / raw)
  To: Darren Stevens, linuxppc-dev; +Cc: chzigotzky

On Sat, 2019-02-09 at 23:14 +0000, Darren Stevens wrote:
> The disk activity LED on the Cyrus board is attached to a gpio pin,
> add the required device-tree node for the kernel driver to use.
> 
> Signed-off-by: Darren Stevens <darren@stevens-zone.net>
> 
> ---
> 
> diff --git a/arch/powerpc/boot/dts/fsl/cyrus_p5020.dts
> b/arch/powerpc/boot/dts/fsl/cyrus_p5020.dts
> index 15e8440..348cfdb 100644
> --- a/arch/powerpc/boot/dts/fsl/cyrus_p5020.dts
> +++ b/arch/powerpc/boot/dts/fsl/cyrus_p5020.dts
> @@ -82,6 +82,15 @@
>             gpios = <&gpio0 2 1>;
>         };
>  
> +       leds {
> +           compatible = "gpio-leds";
> +
> +           hdd {
> +               label = "Disk Activity";
> +               gpios = <&gpio0 5 0>;
> +               linux,default-trigger = "disk-activity";
> +           };
> +       };
>     };

This patch is whitespace-mangled (as is your other one).  Could you try
sending with git send-email?

-Scott



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

end of thread, other threads:[~2019-02-12 22:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-09 23:14 [PATCH] powerpc/85xx: Activate Cyrus disk-activity LED Darren Stevens
2019-02-12 21:35 ` Scott Wood

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