devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Emil Renner Berthing <emil.renner.berthing@canonical.com>
To: FUKAUMI Naoki <naoki@milkv.io>,
	Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
	 devicetree@vger.kernel.org, linux-riscv@lists.infradead.org,
	kernel@esmil.dk
Subject: Re: [PATCH 2/2] riscv: dts: starfive: enable heartbeat LED for Milk-V Mars
Date: Mon, 24 Jun 2024 02:44:59 -0700	[thread overview]
Message-ID: <CAJM55Z_ORHP2P01CqTN192TBmgfj93aLNhrw4cz4b-itnn5TBw@mail.gmail.com> (raw)
In-Reply-To: <2C13D76B7FA9727D+6cf7c812-5cf9-4fd6-a79b-8f2899c7c3de@milkv.io>

FUKAUMI Naoki wrote:
> Hi,
>
> On 6/21/24 10:02, FUKAUMI Naoki wrote:
> > Hi,
> >
> > On 6/21/24 08:13, Heinrich Schuchardt wrote:
> >> On 6/13/24 04:48, FUKAUMI Naoki wrote:
> >>> Milk-V Mars has a green LED to show system load. This patch enables
> >>> a green LED as a heartbeat LED.
> >>>
> >>> Signed-off-by: FUKAUMI Naoki <naoki@milkv.io>
> >>> ---
> >>>   arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts | 13 +++++++++++++
> >>>   1 file changed, 13 insertions(+)
> >>>
> >>> diff --git a/arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts
> >>> b/arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts
> >>> index fa0eac78e0ba..4f4bbf64dbe4 100644
> >>> --- a/arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts
> >>> +++ b/arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts
> >>> @@ -4,11 +4,24 @@
> >>>    */
> >>>   /dts-v1/;
> >>> +#include <dt-bindings/gpio/gpio.h>
> >>> +#include <dt-bindings/leds/common.h>
> >>>   #include "jh7110-common.dtsi"
> >>>   / {
> >>>       model = "Milk-V Mars";
> >>>       compatible = "milkv,mars", "starfive,jh7110";
> >>> +
> >>> +    leds {
> >>> +        compatible = "gpio-leds";
> >>> +
> >>> +        led-0 {
> >>> +            gpios = <&aongpio 3 GPIO_ACTIVE_HIGH>;
> >>> +            color = <LED_COLOR_ID_GREEN>;
> >>> +            linux,default-trigger = "heartbeat";
> >>> +            function = LED_FUNCTION_HEARTBEAT;
> >>
> >> According to the schematics the StarFive VisionFive 2 board like the
> >> Mars board has RGPIO3 connected to a green LED to display the power
> >> status. Shouldn't we consider both boards?
> >
> > I think LED usage is vendor/board specific.
>
> do I need to do something for VF2 to merge my patch?

It's not strictly required, but it would be great if you could add the LED to
the VF2 too, thank you.

Also I'm not sure if you saw my previous reply:
https://lore.kernel.org/linux-riscv/CAJM55Z_j8gWFyKvsiu-oGDV7Hacr4Amt5FdkHdjKnhZwZgxncA@mail.gmail.com/

/Emil

  reply	other threads:[~2024-06-24  9:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-13  2:48 [PATCH 1/2] riscv: defconfig: enable "heartbeat" led trigger FUKAUMI Naoki
2024-06-13  2:48 ` [PATCH 2/2] riscv: dts: starfive: enable heartbeat LED for Milk-V Mars FUKAUMI Naoki
2024-06-20 23:13   ` Heinrich Schuchardt
2024-06-21  1:02     ` FUKAUMI Naoki
2024-06-23 23:09       ` FUKAUMI Naoki
2024-06-24  9:44         ` Emil Renner Berthing [this message]
2024-06-24 10:42           ` FUKAUMI Naoki
  -- strict thread matches above, loose matches on Subject: below --
2024-06-13  0:58 [PATCH 1/2] riscv: defconfig: enable "heartbeat" led trigger FUKAUMI Naoki
2024-06-13  0:58 ` [PATCH 2/2] riscv: dts: starfive: enable heartbeat LED for Milk-V Mars FUKAUMI Naoki
2024-06-17 10:30   ` Emil Renner Berthing

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=CAJM55Z_ORHP2P01CqTN192TBmgfj93aLNhrw4cz4b-itnn5TBw@mail.gmail.com \
    --to=emil.renner.berthing@canonical.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=heinrich.schuchardt@canonical.com \
    --cc=kernel@esmil.dk \
    --cc=krzk+dt@kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=naoki@milkv.io \
    --cc=robh@kernel.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 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).