Re: [PATCH 0/3] SoftSW DIP switch support for Draak, Eagle and Ebisu

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

 



Hi Magnus,

On Sun, Jun 20, 2021 at 8:01 AM Magnus Damm <damm@xxxxxxxxxxxxx> wrote:
> SoftSW DIP switch support for Draak, Eagle and Ebisu
>
> [PATCH 1/3] arm64: dts: renesas: r8a77995: draak: Add SW56 support
> [PATCH 2/3] arm64: dts: renesas: r8a77970: eagle: Add SW2 support
> [PATCH 3/3] arm64: dts: renesas: r8a77990: ebisu: Add SW4 support
>
> These patches add support for on-board SoftSW DIP switches to the
> Draak, Eagle and Ebisu boards via board specific DTS changes.

Thanks for your series!

> The GPIOs connecting the DIP switches to the SoC are board specific. There
> are no on-board pull-ups mounted so internal resistors need to be enabled as
> pull-ups for these boards. As expected 2k resistors are used to tie the
> signals to ground for the case the DIP switch is set to ON.
>
> All keys have been tested by toggling each DIP switch and making sure the
> interrupt count in /proc/interrupts is changing as expected. The voltage level
> of each signal has not been measured at this point so there is a small risk
> that the internal pull-up isn't enabled and the signal is floating.

Fortunately the reset state of the PUEN/PUD registers has all pull-ups
enabled for all GPIO lines connected to these DIP switches.
To make sure Linux enforces this configuration, you need to apply
"[PATCH 00/12] pinctrl: renesas: Add more bias pinconf support"
https://lore.kernel.org/linux-gpio/cover.1619785375.git.geert+renesas@xxxxxxxxx/

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