leds: aw2013: Enable pull-up supply for interrupt and I2C
authorLin, Meng-Bo <linmengbo0689@protonmail.com>
Tue, 15 Aug 2023 17:21:06 +0000 (19:21 +0200)
committerLee Jones <lee@kernel.org>
Fri, 18 Aug 2023 15:47:21 +0000 (16:47 +0100)
commitbaca986e1f2c31f8e4b2a6d99d47c3bc844033e8
tree23532073e690c015fd2a8098a0952932a920f0f5
parent2cccb179addedff6a5234e37237fc6b22d9217d4
leds: aw2013: Enable pull-up supply for interrupt and I2C

Request and enable the "vio" regulator that represents the power supply
that is needed for the pull-up resistors of the interrupt and I2C lines
of AW2013. While this regulator is not wired directly to the AW2013
chip it is best managed as part of the AW2013 driver since it decides
when AW2013 is powered on and when the interrupt is enabled or
disabled.

This regulator should always be enabled in conjunction with the main
VCC power supply, so use the bulk regulator functions to enable both
at the same time.

Signed-off-by: Lin, Meng-Bo <linmengbo0689@protonmail.com>
[rewrite commit message based on discussion]
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Reviewed-by: Nikita Travkin <nikita@trvn.ru>
Link: https://lore.kernel.org/r/20230815-aw2013-vio-v3-3-2505296b0856@gerhold.net
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/leds-aw2013.c