kernel_optimize_test/drivers/pinctrl
Chen-Yu Tsai 402bfb3c13 pinctrl: sunxi: Support I/O bias voltage setting on A80
The A80 SoC has configuration registers for I/O bias voltage. Incorrect
settings would make the affected peripherals inoperable in some cases,
such as Ethernet RGMII signals biased at 2.5V with the settings still
at 3.3V. However low speed signals such as MDIO on the same group of
pins seem to be unaffected.

Previously there was no way to know what the actual voltage used was,
short of hard-coding a value in the device tree. With the new pin bank
regulator supply support in place, the driver can now query the
regulator for its voltage, and if it's valid (as opposed to being the
dummy regulator), set the bias voltage setting accordingly.

Add a quirk to denote the presence of the configuration registers, and
a function to set the correct setting based on the voltage read back
from the regulator.

This is only done when the regulator is first acquired and enabled.
While it would be nice to have a notifier on the regulator so that when
the voltage changes, the driver can update the setting, in practice no
board currently supports dynamic changing of the I/O voltages.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2019-02-11 09:20:58 +01:00
..
actions pinctrl: actions: Add Actions Semi S700 pinctrl driver 2018-11-19 14:12:34 +01:00
aspeed pinctrl: aspeed: Wrap -Woverride-init with cc-option 2018-12-16 01:22:38 +01:00
bcm pinctrl: bcm2835: Direct GPIO config changes to generic pinctrl 2019-02-08 13:13:01 +01:00
berlin pinctrl: berlin: as370: use generic "pwm" as pwm function name 2019-01-28 15:20:53 +01:00
cirrus pinctrl: remove pinctrl/machine.h inclusion from pinctrl/pinconf.h 2019-01-28 14:39:17 +01:00
freescale pinctrl: freescale: Add imx8mm pinctrl driver support 2019-01-30 10:35:22 +01:00
intel pinctrl: cherryview: fix Strago DMI workaround 2019-01-21 13:05:42 +01:00
mediatek Linux 5.0-rc6 2019-02-11 09:17:23 +01:00
meson Merge branch 'ib-meson-fixes' into devel 2019-01-22 10:55:07 +01:00
mvebu pinctrl: armada-37xx: change suspend/resume time 2019-01-21 14:12:50 +01:00
nomadik
nuvoton pinctrl: nuvoton: check for devm_kasprintf() failure 2018-12-05 22:55:04 +01:00
pxa
qcom pinctrl: qcom: qcs404: Drop unused UFS_RESET macro 2019-02-08 13:09:04 +01:00
samsung pinctrl: samsung: Remove legacy API for handling external wakeup interrupts mask 2019-02-08 14:52:31 +01:00
sh-pfc pinctrl: sh-pfc: r8a7778: Fix HSPI pin numbers and names 2019-01-21 13:25:38 +01:00
sirf pinctrl: sirf: drop pointless static qualifier in sirfsoc_gpio_probe 2019-01-28 14:42:55 +01:00
spear
sprd pinctrl: sprd: Use define directive for sprd_pinconf_params values 2018-11-09 10:20:47 +01:00
stm32 pinctrl: stm32: protect configuration registers with a hwspinlock 2018-11-19 13:17:46 +01:00
sunxi pinctrl: sunxi: Support I/O bias voltage setting on A80 2019-02-11 09:20:58 +01:00
tegra
ti pinctrl: ti-iodelay: Fix platform_no_drv_owner.cocci warnings 2019-01-28 14:41:54 +01:00
uniphier pinctrl: uniphier: constify uniphier_pinctrl_socdata 2018-12-21 11:18:08 +01:00
vt8500
zte
core.c
core.h
devicetree.c
devicetree.h
Kconfig pinctrl: ocelot: Add dependency on HAS_IOMEM 2018-12-22 11:15:04 +01:00
Makefile pinctrl: Add RZ/A2 pin and gpio controller 2018-11-23 09:30:27 +01:00
pinconf-generic.c
pinconf.c pinctrl: remove unused 'pinconf-config' debugfs interface 2019-01-28 14:39:52 +01:00
pinconf.h
pinctrl-amd.c pinctrl/amd: fix typo 2019-01-11 13:25:24 +01:00
pinctrl-amd.h
pinctrl-artpec6.c
pinctrl-as3722.c
pinctrl-at91-pio4.c pinctrl: pinctrl-at91-pio4: simplify getting .driver_data 2018-11-05 09:33:32 +01:00
pinctrl-at91.c pinctrl: at91: add slewrate support for SAM9X60 2019-02-08 13:07:03 +01:00
pinctrl-at91.h pinctrl: at91: add slewrate support for SAM9X60 2019-02-08 13:07:03 +01:00
pinctrl-axp209.c
pinctrl-coh901.c
pinctrl-coh901.h
pinctrl-da850-pupd.c
pinctrl-digicolor.c
pinctrl-falcon.c
pinctrl-gemini.c pinctrl: gemini: Fix up TVC clock group 2018-10-10 21:05:35 +02:00
pinctrl-ingenic.c pinctrl: ingenic: Add LCD pins for the JZ4725B SoC 2019-02-08 15:01:24 +01:00
pinctrl-lantiq.c
pinctrl-lantiq.h
pinctrl-lpc18xx.c pinctrl: lpc18xx: Use define directive for PIN_CONFIG_GPIO_PIN_INT 2018-11-09 10:23:58 +01:00
pinctrl-max77620.c pinctrl: max77620: Use define directive for max77620_pinconf_param values 2018-11-09 10:02:22 +01:00
pinctrl-mcp23s08.c Linux 5.0-rc6 2019-02-11 09:17:23 +01:00
pinctrl-ocelot.c pinctrl: ocelot: add MSCC Jaguar2 support 2018-12-21 11:50:48 +01:00
pinctrl-oxnas.c
pinctrl-palmas.c
pinctrl-pic32.c
pinctrl-pic32.h
pinctrl-pistachio.c
pinctrl-rk805.c
pinctrl-rockchip.c pinctrl: rockchip: add rk3188 routes to switch between nand and emmc 2018-11-17 13:18:53 +01:00
pinctrl-rza1.c pinctrl: rza1: Handle devm_kasprintf() failure cases 2018-12-18 11:25:56 +01:00
pinctrl-rza2.c pinctrl: Add RZ/A2 pin and gpio controller 2018-11-23 09:30:27 +01:00
pinctrl-rzn1.c pinctrl: rzn1: Fix of_get_child_count() error check 2018-12-04 10:33:49 +01:00
pinctrl-single.c
pinctrl-st.c
pinctrl-sx150x.c pinctrl: sx150x: handle failure case of devm_kstrdup 2018-12-07 13:22:47 +01:00
pinctrl-tb10x.c
pinctrl-u300.c
pinctrl-utils.c
pinctrl-utils.h
pinctrl-xway.c pinctrl: xway: fix gpio-hog related boot issues 2018-12-17 23:11:18 +01:00
pinctrl-zynq.c pinctrl: zynq: Use define directive for PIN_CONFIG_IO_STANDARD 2018-11-09 10:25:17 +01:00
pinmux.c pinctrl: Change to use DEFINE_SHOW_ATTRIBUTE macro 2018-12-07 11:11:10 +01:00
pinmux.h