[PATCH v5 0/3] power: supply: mt6360_charger: add MT6360 charger support

From: Gene Chen
Date: Fri May 28 2021 - 04:13:12 EST


This patch series add MT6360 Charger support contains driver and binding
document

Gene Chen (3)
lib: add linear range get selector within
dt-bindings: power: Add bindings document for Charger support on MT6360 PMIC
power: supply: mt6360_charger: add MT6360 charger support

Documentation/devicetree/bindings/power/supply/mt6360_charger.yaml | 48
drivers/power/supply/Kconfig | 11
drivers/power/supply/Makefile | 1
drivers/power/supply/mt6360_charger.c | 856 ++++++++++
include/linux/linear_range.h | 2
lib/linear_ranges.c | 31
6 files changed, 949 insertions(+)

changelogs between v1 & v2
- Add binding property with unit and custom name prefix
- Remove extcon device, redundant brackets and interrupts
- Fix power supply prop "charger type"

changelogs between v2 & v3
- Add register selector to value mapping

changelogs between v3 & v4
- move pdata vinovp to mt6360_chg_info
- remove unuse sysfs attribute
- refactor debug log and warning
- add power supply prop input voltage limit

changelogs between v4 & v5
- add linear range selector mapping
- use linear range to map charger setting