diff options
| author | Mark Brown <broonie@kernel.org> | 2023-04-12 17:33:37 +0100 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2023-04-12 17:33:37 +0100 |
| commit | d877cad6eda345bc32179219d28745850409b7e3 (patch) | |
| tree | 71f4f1d7e633f54fcec6efa0c032a4523a36aa2d /include/linux | |
| parent | c4a413e56d16a2ae84e6d8992f215c4dcc7fac20 (diff) | |
| parent | 0271b61ba3bb06fff4726951667f46e68412b8c2 (diff) | |
| download | linux-d877cad6eda345bc32179219d28745850409b7e3.tar.gz linux-d877cad6eda345bc32179219d28745850409b7e3.tar.bz2 linux-d877cad6eda345bc32179219d28745850409b7e3.zip | |
regulator: da9063: disable unused voltage monitors
Merge series from Benjamin Bara <bbara93@gmail.com>:
Follow-up for my initial patch regarding the disabling of unused
voltage monitors. We use the PWR_OK functionality, which asserts GP_FB2
if every monitored voltage is in range. This patch should provide the
possibility to deactivate a voltage monitor from the DT if the regulator
might be disabled during run time. For this purpose, the regulator
notification support is used:
https://lore.kernel.org/all/cover.1622628333.git.matti.vaittinen@fi.rohmeurope.com/
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/mfd/da9063/registers.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/linux/mfd/da9063/registers.h b/include/linux/mfd/da9063/registers.h index 6e0f66a2e727..7b8364bd08a0 100644 --- a/include/linux/mfd/da9063/registers.h +++ b/include/linux/mfd/da9063/registers.h @@ -1040,6 +1040,29 @@ /* DA9063_REG_CONFIG_J (addr=0x10F) */ #define DA9063_TWOWIRE_TO 0x40 +/* DA9063_REG_MON_REG_2 (addr=0x115) */ +#define DA9063_LDO1_MON_EN 0x01 +#define DA9063_LDO2_MON_EN 0x02 +#define DA9063_LDO3_MON_EN 0x04 +#define DA9063_LDO4_MON_EN 0x08 +#define DA9063_LDO5_MON_EN 0x10 +#define DA9063_LDO6_MON_EN 0x20 +#define DA9063_LDO7_MON_EN 0x40 +#define DA9063_LDO8_MON_EN 0x80 + +/* DA9063_REG_MON_REG_3 (addr=0x116) */ +#define DA9063_LDO9_MON_EN 0x01 +#define DA9063_LDO10_MON_EN 0x02 +#define DA9063_LDO11_MON_EN 0x04 + +/* DA9063_REG_MON_REG_4 (addr=0x117) */ +#define DA9063_BCORE1_MON_EN 0x04 +#define DA9063_BCORE2_MON_EN 0x08 +#define DA9063_BPRO_MON_EN 0x10 +#define DA9063_BIO_MON_EN 0x20 +#define DA9063_BMEM_MON_EN 0x40 +#define DA9063_BPERI_MON_EN 0x80 + /* DA9063_REG_MON_REG_5 (addr=0x116) */ #define DA9063_MON_A8_IDX_MASK 0x07 #define DA9063_MON_A8_IDX_NONE 0x00 |
