devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Prabhakar <prabhakar.csengg@gmail.com>
Cc: Magnus Damm <magnus.damm@gmail.com>,
	Rob Herring <robh@kernel.org>,
	 Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	 linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org,
	 linux-kernel@vger.kernel.org,
	Biju Das <biju.das.jz@bp.renesas.com>,
	 Fabrizio Castro <fabrizio.castro.jz@renesas.com>,
	 Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Subject: Re: [PATCH 05/13] arm64: dts: renesas: r9a09g077m44-rzt2h-evk: Add user LEDs
Date: Mon, 18 Aug 2025 15:15:28 +0200	[thread overview]
Message-ID: <CAMuHMdVi26AXwQJDtxSp8hSsmZ1Lx4_GYFsbtmq_gxJyddkqTg@mail.gmail.com> (raw)
In-Reply-To: <20250812200344.3253781-6-prabhakar.mahadev-lad.rj@bp.renesas.com>

Hi Prabhakar,

Thanks for your patch!

On Tue, 12 Aug 2025 at 22:03, Prabhakar <prabhakar.csengg@gmail.com> wrote:
> From: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
>
> Add USER LED0-LED8, which are available on RZ/T2H EVK.

According to the schematics, only the first four are user LEDs?

>
> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>

> --- a/arch/arm64/boot/dts/renesas/r9a09g077m44-rzt2h-evk.dts
> +++ b/arch/arm64/boot/dts/renesas/r9a09g077m44-rzt2h-evk.dts
> @@ -7,10 +7,61 @@
>
>  /dts-v1/;
>
> +#include <dt-bindings/gpio/gpio.h>
> +#include <dt-bindings/pinctrl/renesas,r9a09g077-pinctrl.h>
> +
>  #include "r9a09g077m44.dtsi"
>  #include "rzt2h-n2h-evk-common.dtsi"
>
>  / {
>         model = "Renesas RZ/T2H EVK Board based on r9a09g077m44";
>         compatible = "renesas,rzt2h-evk", "renesas,r9a09g077m44", "renesas,r9a09g077";
> +
> +       leds {
> +               compatible = "gpio-leds";
> +
> +               led0 {

led-0

Cfr. Documentation/devicetree/bindings/leds/leds-gpio.yaml:

    # The first form is preferred, but fall back to just 'led' anywhere in the
    # node name to at least catch some child nodes.
    "(^led-[0-9a-f]$|led)":

> +                       /* SW8-9: ON, SW8-10: OFF */
> +                       gpios = <&pinctrl RZT2H_GPIO(23, 1) GPIO_ACTIVE_LOW>;

color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_DEBUG;
function-enumerator = <0>;

> +               };
> +
> +               led1 {
> +                       /* SW5-1: OFF, SW5-2: ON */
> +                       gpios = <&pinctrl RZT2H_GPIO(32, 2) GPIO_ACTIVE_LOW>;

color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_DEBUG;
function-enumerator = <1>;

> +               };
> +
> +               led2 {
> +                       gpios = <&pinctrl RZT2H_GPIO(6, 7) GPIO_ACTIVE_LOW>;

color = <LED_COLOR_ID_YELLOW>;
function = LED_FUNCTION_DEBUG;
function-enumerator = <2>;

> +               };
> +
> +               led3 {
> +                       /* SW2-3: OFF */
> +                       gpios = <&pinctrl RZT2H_GPIO(8, 5) GPIO_ACTIVE_LOW>;

color = <LED_COLOR_ID_RED>;
function = LED_FUNCTION_DEBUG;
function-enumerator = <3>;

> +               };
> +
> +               led4 {
> +                       /* SW8-3: ON, SW8-4: OFF */
> +                       gpios = <&pinctrl RZT2H_GPIO(18, 0) GPIO_ACTIVE_LOW>;

Schematics say "run", so perhaps LED_FUNCTION_ACTIVITY?

    color = <LED_COLOR_ID_GREEN>;
    function = LED_FUNCTION_ACTIVITY;

> +               };
> +
> +               led5 {
> +                       /* SW8-1: ON, SW8-2: OFF */
> +                       gpios = <&pinctrl RZT2H_GPIO(18, 1) GPIO_ACTIVE_LOW>;

Schematics say "error", so

    color = <LED_COLOR_ID_RED>;
    function = LED_FUNCTION_FAULT;

> +               };
> +
> +               led6 {
> +                       /* SW5-9: OFF, SW5-10: ON */
> +                       gpios = <&pinctrl RZT2H_GPIO(22, 7) GPIO_ACTIVE_LOW>;

Schematics says Ether-Cat link-activity, so LED_FUNCTION_LAN?

    color = <LED_COLOR_ID_GREEN>;
    function = LED_FUNCTION_LAN;
    function-enumerator = <0>;

> +               };
> +
> +               led7 {
> +                       /* SW5-7: OFF, SW5-8: ON */
> +                       gpios = <&pinctrl RZT2H_GPIO(23, 0) GPIO_ACTIVE_LOW>;

color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_LAN;
function-enumerator = <1>;

> +               };
> +
> +               led8 {
> +                       /* SW7-5: OFF, SW7-6: ON */
> +                       gpios = <&pinctrl RZT2H_GPIO(23, 5) GPIO_ACTIVE_LOW>;

color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_LAN;
function-enumerator = <2>;

> +               };
> +       };
>  };

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

  reply	other threads:[~2025-08-18 13:15 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-12 20:03 [PATCH 00/13] arm64: dts: renesas: Add support for SCI/LEDs/I2C/MMC on RZ/{T2H,RZ/N2H} SoCs and boards Prabhakar
2025-08-12 20:03 ` [PATCH 01/13] arm64: dts: renesas: r9a09g077: Add DT nodes for SCI channels 1-5 Prabhakar
2025-08-18 12:54   ` Geert Uytterhoeven
2025-08-12 20:03 ` [PATCH 02/13] arm64: dts: renesas: r9a09g087: " Prabhakar
2025-08-18 12:54   ` Geert Uytterhoeven
2025-08-12 20:03 ` [PATCH 03/13] arm64: dts: renesas: r9a09g077: Add pinctrl node Prabhakar
2025-08-18 12:54   ` Geert Uytterhoeven
2025-08-12 20:03 ` [PATCH 04/13] arm64: dts: renesas: r9a09g087: " Prabhakar
2025-08-18 13:33   ` Geert Uytterhoeven
2025-08-18 13:43     ` Lad, Prabhakar
2025-08-18 13:58       ` Geert Uytterhoeven
2025-08-12 20:03 ` [PATCH 05/13] arm64: dts: renesas: r9a09g077m44-rzt2h-evk: Add user LEDs Prabhakar
2025-08-18 13:15   ` Geert Uytterhoeven [this message]
2025-08-18 13:39     ` Lad, Prabhakar
2025-08-18 13:43       ` Geert Uytterhoeven
2025-08-12 20:03 ` [PATCH 06/13] arm64: dts: renesas: r9a09g087m44-rzn2h-evk: " Prabhakar
2025-08-18 14:14   ` Geert Uytterhoeven
2025-08-19  7:52     ` Lad, Prabhakar
2025-08-12 20:03 ` [PATCH 07/13] arm64: dts: renesas: rzt2h-evk-common: Add pinctrl for SCI0 node Prabhakar
2025-08-18 13:35   ` Geert Uytterhoeven
2025-08-18 13:36     ` Geert Uytterhoeven
2025-08-18 15:41     ` Lad, Prabhakar
2025-08-12 20:03 ` [PATCH 08/13] arm64: dts: renesas: r9a09g077m44-rzt2h-evk: Enable I2C0 and I2C1 support Prabhakar
2025-08-18 13:40   ` Geert Uytterhoeven
2025-08-12 20:03 ` [PATCH 09/13] arm64: dts: renesas: r9a09g087m44-rzt2h-evk: " Prabhakar
2025-08-18 13:51   ` Geert Uytterhoeven
2025-08-18 15:42     ` Lad, Prabhakar
2025-08-12 20:03 ` [PATCH 10/13] arm64: dts: renesas: rzt2h-evk-common: Enable EEPROM on I2C0 Prabhakar
2025-08-18 14:19   ` Geert Uytterhoeven
2025-08-12 20:03 ` [PATCH 11/13] arm64: dts: renesas: rzt2h/rzn2h: Enable eMMC Prabhakar
2025-08-18 16:01   ` Geert Uytterhoeven
2025-08-19  7:59     ` Lad, Prabhakar
2025-08-12 20:03 ` [PATCH 12/13] arm64: dts: renesas: rzt2h/rzn2h: Enable MicroSD card slot Prabhakar
2025-08-18 16:02   ` Geert Uytterhoeven
2025-08-19  8:09     ` Lad, Prabhakar
2025-08-12 20:03 ` [PATCH 13/13] arm64: dts: renesas: rzt2h/rzn2h: Enable SD " Prabhakar
2025-08-18 16:03   ` Geert Uytterhoeven
2025-08-19  8:20     ` Lad, Prabhakar

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=CAMuHMdVi26AXwQJDtxSp8hSsmZ1Lx4_GYFsbtmq_gxJyddkqTg@mail.gmail.com \
    --to=geert@linux-m68k.org \
    --cc=biju.das.jz@bp.renesas.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=fabrizio.castro.jz@renesas.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=magnus.damm@gmail.com \
    --cc=prabhakar.csengg@gmail.com \
    --cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
    --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).