diff options
author | Frieder Schrempf <frieder.schrempf@kontron.de> | 2021-02-11 11:55:28 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-03-25 09:04:13 +0100 |
commit | 775691b94ce74e02297b9165c7df99c589374b2d (patch) | |
tree | 3cdc58ac82f41e905f8fadd61f464669ac030e28 /drivers/leds/leds-adp5520.c | |
parent | 9392b8219b62b0536df25c9de82b33f8a00881ef (diff) | |
download | kernel_replicant_linux-775691b94ce74e02297b9165c7df99c589374b2d.tar.gz kernel_replicant_linux-775691b94ce74e02297b9165c7df99c589374b2d.tar.bz2 kernel_replicant_linux-775691b94ce74e02297b9165c7df99c589374b2d.zip |
regulator: pca9450: Add SD_VSEL GPIO for LDO5
[ Upstream commit 8c67a11bae889f51fe5054364c3c789dfae3ad73 ]
LDO5 has two separate control registers. LDO5CTRL_L is used if the
input signal SD_VSEL is low and LDO5CTRL_H if it is high.
The current driver implementation only uses LDO5CTRL_H. To make this
work on boards that have SD_VSEL connected to a GPIO, we add support
for specifying an optional GPIO and setting it to high at probe time.
In the future we might also want to add support for boards that have
SD_VSEL set to a fixed low level. In this case we need to change the
driver to be able to use the LDO5CTRL_L register.
Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Link: https://lore.kernel.org/r/20210211105534.38972-1-frieder.schrempf@kontron.de
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/leds/leds-adp5520.c')
0 files changed, 0 insertions, 0 deletions