zephyr/drivers/regulator
Gerard Marull-Paretas 649a8195b3 drivers: regulator: pca9420: refactor mode handling
- Similar to what was done for other parts of the driver, remove any
  register specification from Devicetree (modesel-reg/mask)
- Keep all the information in the driver, and define modes as "numbers",
  e.g. PCA9420_MODE0: 0, PCA9420_MODE1: 1, etc.
- Bindings provide IC defaults now (all modes allowed 0/1/2/3 and
  initial mode set to 0).
- When mode is controlled via the MODESEL0/1 pins (ie directly by an iMX
  MCU using the dedicated PMIC_MODE0/1 pins), the driver will not allow
  to select a mode (it is not possible). This mode is now enabled by
  setting `nxp,enable-modesel-pins` in Devicetree. When enabled, all the
  allowed modes are configured to be selectable via pins. When disabled,
  mode can be set via I2C (using TOP_CNTL3 MODE0/1_I2C fields)

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-12-05 19:10:55 +01:00
..
CMakeLists.txt drivers: regulator: drop async enable 2022-11-30 15:49:30 +01:00
Kconfig drivers: regulator: s/pmic/pca9420 2022-11-14 16:59:05 +01:00
Kconfig.fixed drivers: regulator: Update Kconfig 2022-08-17 09:58:55 -05:00
Kconfig.pca9420 drivers: regulator: pca9420: store common config in parent device 2022-11-29 11:54:31 +01:00
regulator_common.c drivers: regulator: drop async enable 2022-11-30 15:49:30 +01:00
regulator_fixed.c drivers: regulator: drop async enable 2022-11-30 15:49:30 +01:00
regulator_pca9420.c drivers: regulator: pca9420: refactor mode handling 2022-12-05 19:10:55 +01:00
regulator_shell.c drivers: regulator: support for regulator mode APIs in regulator shell 2022-12-04 19:56:34 +01:00