diff options
author | Yauhen Kharuzhy <jekhor@gmail.com> | 2022-02-01 14:06:58 +0100 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2022-02-01 14:55:12 +0100 |
commit | 48f45b094dbbf23620929b68afd32e865f712272 (patch) | |
tree | fdbb02a806321ea85f835cddd34d6b219636bcc2 /drivers/mfd | |
parent | eab25b4f93aa771728127705eb4b235a3b5aad94 (diff) | |
download | linux-stable-48f45b094dbbf23620929b68afd32e865f712272.tar.gz linux-stable-48f45b094dbbf23620929b68afd32e865f712272.tar.bz2 linux-stable-48f45b094dbbf23620929b68afd32e865f712272.zip |
power: supply: bq25890: Support higher charging voltages through Pump Express+ protocol
Add a "linux,pump-express-vbus-max" property which indicates if the Pump
Express+ protocol should be used to increase the charging protocol.
If this new property is set and a DCP charger is detected then request
a higher charging voltage through the Pump Express+ protocol.
So far this new property is only used on x86/ACPI (non devicetree) devs,
IOW it is not used in actual devicetree files. The devicetree-bindings
maintainers have requested properties like these to not be added to the
devicetree-bindings, so the new property is deliberately not added
to the existing devicetree-bindings.
Changes by Hans de Goede:
- Port to my bq25890 patch-series + various cleanups
- Make behavior configurable through a new "linux,pump-express-vbus-max"
device-property
- Sleep 1 second before re-checking the Vbus voltage after requesting
it to be raised, to ensure that the ADC has time to sampled the new Vbus
- Add VBUSV bq25890_tables[] entry and use it in bq25890_get_vbus_voltage()
- Tweak commit message
Signed-off-by: Yauhen Kharuzhy <jekhor@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Co-developed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/mfd')
0 files changed, 0 insertions, 0 deletions