pmic: max77686: adjust operation mode names to match documentation
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Fri, 7 Aug 2015 10:01:07 +0000 (12:01 +0200)
committerJaehoon Chung <jh80.chung@samsung.com>
Thu, 10 Oct 2019 04:38:36 +0000 (13:38 +0900)
commit8853d7af3de6881fa2de1ddffbc3dea3fcd38f9f
tree7ac766f1c2956bc63865f93444b756d77902f58b
parentf1ce50b653518df6d7194a7c11c368359aa93787
pmic: max77686: adjust operation mode names to match documentation

The MAX77686 PMIC's operation modes defined in the header were
quite misleading, because in the defined STANDBY mode, the output
were off, instead of staying in low power mode.

This commit correct this issue, and now the operation modes
are consistent with the PMIC's documentation.

Rename results:
- MAX77686_LDO_MODE_STANDBY     -> MAX77686_LDO_MODE_ON_AUTO_OFF
- MAX77686_LDO_MODE_STANDBY_LPM -> MAX77686_LDO_MODE_ON_AUTO_LPM
- MAX77686_BUCK_MODE_STANDBY    -> MAX77686_BUCK_MODE_ON_AUTO_OFF

For both modes, the output state is controlled by PMIC's PWRREQ
external signal used by SoC. In normal operation mode, when PWRREQ
signal is HIGH, the output is ON, amd for LOW signal, the output
is OFF or LPM (Low Power Mode).

As a result, this commit updates the Trats2 regulator settings.

Change-Id: Ibcb86e0c1ed50530930fbabab88bc374eedc4161
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
drivers/power/pmic/pmic_max77686.c [new file with mode: 0644]
drivers/power/regulator/max77686.c
include/power/max77686_pmic.h