Re: [PATCH 06/13] arm64: dts: renesas: r9a09g087m44-rzn2h-evk: Add user LEDs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Prabhakar,

On Tue, 12 Aug 2025 at 22:03, Prabhakar <prabhakar.csengg@xxxxxxxxx> wrote:
> From: Lad Prabhakar <prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx>
>
> Add USER LED0-LED8, which are available on RZ/N2H EVK.
>
> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx>

Thanks for your patch!

> --- a/arch/arm64/boot/dts/renesas/r9a09g087m44-rzn2h-evk.dts
> +++ b/arch/arm64/boot/dts/renesas/r9a09g087m44-rzn2h-evk.dts
> @@ -7,10 +7,64 @@
>
>  /dts-v1/;
>
> +#include <dt-bindings/gpio/gpio.h>
> +
>  #include "r9a09g087m44.dtsi"
>  #include "rzt2h-n2h-evk-common.dtsi"
>
>  / {
>         model = "Renesas RZ/N2H EVK Board based on r9a09g087m44";
>         compatible = "renesas,rzn2h-evk", "renesas,r9a09g087m44", "renesas,r9a09g087";
> +
> +       leds {
> +               compatible = "gpio-leds";
> +
> +               led3 {
> +                       /* DSW18-7: ON, DSW18-8: OFF */
> +                       gpios = <&pinctrl RZN2H_GPIO(31, 6) GPIO_ACTIVE_LOW>;

Similar comments like for the RZ/T2H EVB, e.g.

    led-3 {
            /* DSW18-7: ON, DSW18-8: OFF */
            gpios = <&pinctrl RZN2H_GPIO(31, 6) GPIO_ACTIVE_LOW>;
            color = <LED_COLOR_ID_GREEN>;
            function = LED_FUNCTION_DEBUG;
            function-enumerator = <4>;
    };

> +               };
> +
> +               led4 {
> +                       /* DSW18-9: ON, DSW18-10: OFF */
> +                       gpios = <&pinctrl RZN2H_GPIO(18, 1) GPIO_ACTIVE_LOW>;
> +               };
> +
> +               led5 {
> +                       /* DSW18-1: ON, DSW18-2: OFF */
> +                       gpios = <&pinctrl RZN2H_GPIO(22, 7) GPIO_ACTIVE_LOW>;
> +               };
> +
> +               led6 {
> +                       /* DSW18-3: ON, DSW18-4: OFF */
> +                       gpios = <&pinctrl RZN2H_GPIO(23, 0) GPIO_ACTIVE_LOW>;
> +               };
> +
> +               led7 {
> +                       /*
> +                        * DSW18-5: ON, DSW18-6: OFF
> +                        * DSW19-3: ON, DSW19-4: OFF

Shouldn't that be "DSW19-3: OFF, DSW19-4: ON"?

> +                        */
> +                       gpios = <&pinctrl RZN2H_GPIO(14, 3) GPIO_ACTIVE_LOW>;
> +               };
> +
> +               led8 {
> +                       /* DSW15-8: OFF, DSW15-9: OFF, DSW15-10: ON */
> +                       gpios = <&pinctrl RZN2H_GPIO(14, 6) GPIO_ACTIVE_LOW>;
> +               };
> +
> +               led9 {
> +                       /* DSW15-5: OFF, DSW16-6: ON */

s/DSW16/DSW15/

> +                       gpios = <&pinctrl RZN2H_GPIO(14, 7) GPIO_ACTIVE_LOW>;
> +               };
> +
> +               led10 {
> +                       /* DSW17-3: OFF, DSW17-4: ON */
> +                       gpios = <&pinctrl RZN2H_GPIO(2, 7) GPIO_ACTIVE_LOW>;
> +               };
> +
> +               led11 {
> +                       /* DSW17-1: OFF, DSW17-2: ON */
> +                       gpios = <&pinctrl RZN2H_GPIO(3, 0) GPIO_ACTIVE_LOW>;
> +               };
> +       };
>  };

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

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




[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux