linux-stable/drivers/pinctrl/renesas
Geert Uytterhoeven 1d3928a3e6 pinctrl: renesas: Add support for R-Car SoCs with pull-down only pins
Currently, the common R-Car bias handling supports pin controllers with
either:
  1. Separate pin Pull-Enable (PUEN) and pin Pull-Up/Down control (PUD)
     registers, for controlling both pin pull-up and pin pull-down,
  2. A single pin Pull-Up control register (PUPR), for controlling pin
     pull-up.

Add support for a variant of #2, where some bits in the single pin
Pull-Up control register (PUPR) control pin pull-down instead of pin
pull-up.  This is the case for the "ASEBRK#/ACK" pin on R-Car M2-W,
M2-N, and E2, and the "ACK" pin on RZ/G1M, RZ/G1N, RZ/G1E, and RZ/G1C.
To describe such a register, SoC-specific drivers need to provide two
instances of pinmux_bias_reg: a first one with the puen field filled in,
listing pins with pull-up functionality, and a second one with the pud
field filled in, listing pins with pull-down functionality.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Link: https://lore.kernel.org/r/20210303132619.3938128-6-geert+renesas@glider.be
2021-03-24 10:38:29 +01:00
..
core.c pinctrl: renesas: Make sh_pfc_pin_to_bias_reg() static 2021-03-24 10:38:29 +01:00
core.h pinctrl: renesas: Move R-Car bias helpers to sh_pfc.h 2021-03-24 10:38:29 +01:00
gpio.c pinctrl: renesas: Singular/plural grammar fixes 2020-11-13 15:37:41 +01:00
Kconfig pinctrl: renesas: Initial R8A779A0 (V3U) PFC support 2021-01-14 12:06:15 +01:00
Makefile pinctrl: renesas: Initial R8A779A0 (V3U) PFC support 2021-01-14 12:06:15 +01:00
pfc-emev2.c
pfc-r8a73a4.c pinctrl: renesas: Factor out common R-Mobile bias handling 2021-03-24 10:38:29 +01:00
pfc-r8a779a0.c pinctrl: renesas: Move R-Car bias helpers to sh_pfc.h 2021-03-24 10:38:29 +01:00
pfc-r8a7740.c pinctrl: renesas: Factor out common R-Mobile bias handling 2021-03-24 10:38:29 +01:00
pfc-r8a7778.c pinctrl: renesas: Move R-Car bias helpers to sh_pfc.h 2021-03-24 10:38:29 +01:00
pfc-r8a7779.c
pfc-r8a7790.c pinctrl: renesas: r8a7790: Optimize pinctrl image size for R8A7742 2020-11-13 15:37:41 +01:00
pfc-r8a7791.c pinctrl: renesas: r8a7791: Optimize pinctrl image size for R8A774[34] 2020-11-13 15:37:41 +01:00
pfc-r8a7792.c pinctrl: renesas: Move R-Car bias helpers to sh_pfc.h 2021-03-24 10:38:29 +01:00
pfc-r8a7794.c
pfc-r8a7796.c pinctrl: renesas: Move R-Car bias helpers to sh_pfc.h 2021-03-24 10:38:29 +01:00
pfc-r8a77470.c
pfc-r8a77950.c pinctrl: renesas: Move R-Car bias helpers to sh_pfc.h 2021-03-24 10:38:29 +01:00
pfc-r8a77951.c pinctrl: renesas: Move R-Car bias helpers to sh_pfc.h 2021-03-24 10:38:29 +01:00
pfc-r8a77965.c pinctrl: renesas: Move R-Car bias helpers to sh_pfc.h 2021-03-24 10:38:29 +01:00
pfc-r8a77970.c pinctrl: renesas: Move R-Car bias helpers to sh_pfc.h 2021-03-24 10:38:29 +01:00
pfc-r8a77980.c pinctrl: renesas: Move R-Car bias helpers to sh_pfc.h 2021-03-24 10:38:29 +01:00
pfc-r8a77990.c pinctrl: renesas: Move R-Car bias helpers to sh_pfc.h 2021-03-24 10:38:29 +01:00
pfc-r8a77995.c pinctrl: renesas: Move R-Car bias helpers to sh_pfc.h 2021-03-24 10:38:29 +01:00
pfc-sh73a0.c pinctrl: renesas: Factor out common R-Mobile bias handling 2021-03-24 10:38:29 +01:00
pfc-sh7203.c
pfc-sh7264.c
pfc-sh7269.c
pfc-sh7720.c
pfc-sh7722.c
pfc-sh7723.c
pfc-sh7724.c
pfc-sh7734.c
pfc-sh7757.c
pfc-sh7785.c
pfc-sh7786.c
pfc-shx3.c
pinctrl-rza1.c pinctrl: renesas: Fix fall-through warnings for Clang 2020-11-23 09:47:28 +01:00
pinctrl-rza2.c
pinctrl-rzn1.c
pinctrl.c pinctrl: renesas: Add support for R-Car SoCs with pull-down only pins 2021-03-24 10:38:29 +01:00
sh_pfc.h pinctrl: renesas: Add support for R-Car SoCs with pull-down only pins 2021-03-24 10:38:29 +01:00