mbox series

[v2,0/2] Enable DA9062 PMIC and built-in RTC, GPIO and ONKEY

Message ID 20240226194715.427597-1-biju.das.jz@bp.renesas.com (mailing list archive)
Headers show
Series Enable DA9062 PMIC and built-in RTC, GPIO and ONKEY | expand

Message

Biju Das Feb. 26, 2024, 7:47 p.m. UTC
This patch series aims to enable DA9062 PMIC and built-in RTC, GPIO and
ONKEY modules on the RZ/{G2UL,Five} SMARC EVK development boards.

Logs:
GPIO:
root@smarc-rzg2ul:~#  cat /sys/kernel/debug/gpio | grep da9062 -A5
gpiochip1: GPIOs 664-668, parent: platform/da9062-gpio, da9062-gpio, can sleep:
 gpio-665 (                    |SD0_PWR_SEL         ) in  lo
 gpio-666 (                    |SD1_PWR_SEL         ) in  lo
 gpio-667 (                    |SW_ET0_EN#          ) in  hi
 gpio-668 (                    |PMIC_PGOOD          ) out hi
RTC:
 da9063-rtc da9062-rtc: setting system clock to 2023-06-14T15:45:44 UTC (1686757544)
ONKEY:
 input: da9062-onkey as /devices/platform/soc/10058000.i2c/i2c-0/0-0058/da9062-onkey/input/input0

Biju Das (2):
  arm64: dts: renesas: rzg2ul-smarc: Enable PMIC and built-in RTC, GPIO
    and ONKEY
  arm64: dts: renesas: rzg2ul-smarc: [DO NOT APPLY] Add PMIC IRQ
    property

 arch/arm64/boot/dts/renesas/rzg2ul-smarc.dtsi | 70 +++++++++++++++++++
 1 file changed, 70 insertions(+)

Comments

Geert Uytterhoeven Feb. 26, 2024, 7:50 p.m. UTC | #1
Hi Biju,

On Mon, Feb 26, 2024 at 8:47 PM Biju Das <biju.das.jz@bp.renesas.com> wrote:
> This patch series aims to enable DA9062 PMIC and built-in RTC, GPIO and
> ONKEY modules on the RZ/{G2UL,Five} SMARC EVK development boards.

Thanks for your series!


> Biju Das (2):
>   arm64: dts: renesas: rzg2ul-smarc: Enable PMIC and built-in RTC, GPIO
>     and ONKEY
>   arm64: dts: renesas: rzg2ul-smarc: [DO NOT APPLY] Add PMIC IRQ
>     property

Why "[DO NOT APPLY]"?

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
Biju Das Feb. 26, 2024, 7:57 p.m. UTC | #2
Hi Geert,

> -----Original Message-----
> From: Geert Uytterhoeven <geert@linux-m68k.org>
> Sent: Monday, February 26, 2024 7:51 PM
> Subject: Re: [PATCH v2 0/2] Enable DA9062 PMIC and built-in RTC, GPIO and
> ONKEY
> 
> Hi Biju,
> 
> On Mon, Feb 26, 2024 at 8:47 PM Biju Das <biju.das.jz@bp.renesas.com>
> wrote:
> > This patch series aims to enable DA9062 PMIC and built-in RTC, GPIO
> > and ONKEY modules on the RZ/{G2UL,Five} SMARC EVK development boards.
> 
> Thanks for your series!
> 
> 
> > Biju Das (2):
> >   arm64: dts: renesas: rzg2ul-smarc: Enable PMIC and built-in RTC, GPIO
> >     and ONKEY
> >   arm64: dts: renesas: rzg2ul-smarc: [DO NOT APPLY] Add PMIC IRQ
> >     property
> 
> Why "[DO NOT APPLY]"?

By default PMIC IRQ is not populated on SMARC EVK's. We need to wire
the PMIC IRQ. Currently I wired PMIC IRQ's to one of the PMOD pins
to test RTC alarm and Onkey.

Note: RTC has already polling and IRQ support whereas onkey has only
IRQ support. There is a patch for supporting polling mode[1]

[1] https://patchwork.kernel.org/project/linux-renesas-soc/list/?series=819871

Cheers,
Biju