]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pinctrl: renesas: pinctrl-rzg2l: Add the missing port pins P19 to P28
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Mon, 29 Jan 2024 13:55:55 +0000 (13:55 +0000)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 31 Jan 2024 13:50:44 +0000 (14:50 +0100)
commitfea58424e2523376ece6f734479e63061e17ad7f
tree9b47d7f7cbd37e3021dbbef8867ed8e9ba478b39
parent15e4ae4f9ae74433e96331164e96f744769c0f8e
pinctrl: renesas: pinctrl-rzg2l: Add the missing port pins P19 to P28

Add the missing port pins P19 to P28 for RZ/Five SoC. These additional
pins provide expanded capabilities and are exclusive to the RZ/Five SoC.

Couple of port pins have different configuration and are not identical for
the complete port so introduce struct rzg2l_variable_pin_cfg to handle
such cases and introduce the PIN_CFG_VARIABLE macro. The actual pin config
is then assigned in rzg2l_pinctrl_get_variable_pin_cfg().

Add an additional check in rzg2l_gpio_get_gpioint() to only allow GPIO pins
which support interrupt facility.

While at define RZG2L_GPIO_PORT_PACK() using RZG2L_GPIO_PORT_SPARSE_PACK().

Update the gpio-ranges property in the RZ/Five SoC DTSI, as it must
match the driver.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20240129135556.63466-4-prabhakar.mahadev-lad.rj@bp.renesas.com
Link: https://lore.kernel.org/r/20240129135556.63466-5-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/riscv/boot/dts/renesas/r9a07g043f.dtsi
drivers/pinctrl/renesas/pinctrl-rzg2l.c