regulator: Add Renesas PMIC RAA215300 driver
authorBiju Das <biju.das.jz@bp.renesas.com>
Fri, 23 Jun 2023 14:09:40 +0000 (15:09 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 23 Jun 2023 15:29:00 +0000 (16:29 +0100)
commit7bce16630837c705f72e8fd53a11ae8c236236f4
treebce3232f41266f4cd112abbad745149ac41c5f62
parentfff8f6b0723159f09eb2c067e626fb96402c0e53
regulator: Add Renesas PMIC RAA215300 driver

The RAA215300 is a 9-channel PMIC that consists of
 * Internally compensated regulators
 * built-in Real Time Clock (RTC)
 * 32kHz crystal oscillator
 * coin cell battery charger

The RTC on RAA215300 is similar to the IP found in the ISL1208.
The existing driver for the ISL1208 works for this PMIC too,
however the RAA215300 exposes two devices via I2C, one for the RTC
IP, and one for everything else. The RTC IP has to be enabled
by the other I2C device, therefore this driver is necessary to get
the RTC to work.

The external oscillator bit is inverted on PMIC version 0x11.

Add PMIC RAA215300 driver for enabling RTC block and instantiating
RTC device based on PMIC version.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/Message-Id:
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/Kconfig
drivers/regulator/Makefile
drivers/regulator/raa215300.c [new file with mode: 0644]