drivers: mfd: axp192: add possibility to disable N_VBUSEN functionality

By default N_VBUSEN signal is used by the host to define if VBUS
signal should be used for power supply (VBUS-IPSOUT).

This feature enables the possbibility to change this behaviour.
When N_VBUSEN detection is disabled, axp192 will automatically
decide to use VBUS (REG10H[7] = 1).
Please refer to datasheet for details.

Signed-off-by: Martin Kiepfer <mrmarteng@teleschirm.org>
This commit is contained in:
Martin Kiepfer 2024-01-07 16:40:35 +01:00 committed by Fabio Baltieri
commit 0addb90ff7
2 changed files with 30 additions and 1 deletions

View file

@ -10,3 +10,12 @@ include: i2c-device.yaml
properties:
reg:
required: true
vbusen-disable:
type: boolean
description: |
This option will disable VBUS power control via N_VBUSEN.
By default VBUS power supply is chosen via N_VBUSEN pin.
When disabled, VBUS can by chosen automatically by the pmic
and there is no need by the host to control N_VBUSEN pin.
Please refer to datasheet for details (pin state (REG10H[7] = 1).