Commit 6adaa9a
power: supply: bq25890: Add new linux,iinlim-percentage property
Some devices, such as the Lenovo Yoga Tab 3 Pro (YT3-X90F) have
multiple batteries with a separate bq25890 charger for each battery.
This requires the maximum current the external power-supply can deliver
to be divided over the chargers. The Android vendor kernel shipped
on the YT3-X90F divides this current with a 40/60 percent split so that
batteries are done charging at approx. the same time if both were fully
empty at the start.
Add support for a new "linux,iinlim-percentage" percentage property which
can be set to indicate that a bq25890 charger should only use that
percentage of the external power-supply's maximum current.
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.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>1 parent d54bf87 commit 6adaa9a
1 file changed
Lines changed: 28 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
| |||
727 | 728 | | |
728 | 729 | | |
729 | 730 | | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
730 | 743 | | |
731 | 744 | | |
732 | 745 | | |
| |||
745 | 758 | | |
746 | 759 | | |
747 | 760 | | |
748 | | - | |
| 761 | + | |
749 | 762 | | |
750 | 763 | | |
751 | 764 | | |
| |||
754 | 767 | | |
755 | 768 | | |
756 | 769 | | |
757 | | - | |
| 770 | + | |
758 | 771 | | |
759 | 772 | | |
760 | 773 | | |
761 | | - | |
| 774 | + | |
762 | 775 | | |
763 | 776 | | |
764 | 777 | | |
| |||
1378 | 1391 | | |
1379 | 1392 | | |
1380 | 1393 | | |
| 1394 | + | |
1381 | 1395 | | |
1382 | 1396 | | |
1383 | 1397 | | |
| |||
1390 | 1404 | | |
1391 | 1405 | | |
1392 | 1406 | | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
1393 | 1418 | | |
1394 | 1419 | | |
1395 | 1420 | | |
| |||
0 commit comments