power: supply: charger: add sgm4154x charger driver
Signed-off-by: shengfei Xu <xsf@rock-chips.com> Change-Id: Ib6440de3638622c9b7c8a76950940ffadb47036a
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
Binding for sgm41542 battery charger
|
||||
|
||||
Required properties:
|
||||
- compatible: "sgm,sgm41542" for sgm41542 Charger Power Supply
|
||||
- monitored-battery: phandle of battery characteristics devicetree node
|
||||
- input-voltage-limit-microvolt: integer, input voltage level in uV, used to
|
||||
decrease voltage level when the over current
|
||||
of the input power source occurs.
|
||||
- input-current-limit-microamp: integer, input current value in uA drained by the
|
||||
charger from the power source.Default: 500000 uA (500mA)
|
||||
|
||||
child nodes:
|
||||
- vbus5v0_typec:
|
||||
Usage: optional
|
||||
Description: Regulator that is used to control the VBUS voltage direction for
|
||||
either USB host mode or for charging on the OTG port.
|
||||
|
||||
Example:
|
||||
|
||||
sgm41542: sgm41542@3b {
|
||||
compatible = "sgm,sgm41542";
|
||||
reg = <0x3b>;
|
||||
input-voltage-limit-microvolt = <4500000>;
|
||||
input-current-limit-microamp = <3000000>;
|
||||
monitored-battery = <&bat>;
|
||||
regulators {
|
||||
vbus5v0_typec: vbus5v0-typec {
|
||||
regulator-compatible = "otg-vbus";
|
||||
regulator-name = "vbus5v0_typec";
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -830,4 +830,12 @@ config CHARGER_RK818
|
||||
If you say yes here you will get support for the charger of RK818 PMIC.
|
||||
This driver can give support for Rk818 Charger Interface.
|
||||
|
||||
config CHARGER_SGM41542
|
||||
tristate "SGM41542 charger driver"
|
||||
depends on I2C
|
||||
depends on GPIOLIB || COMPILE_TEST
|
||||
select REGMAP_I2C
|
||||
help
|
||||
Say Y to enable support for the SGM41542 battery charger.
|
||||
|
||||
endif # POWER_SUPPLY
|
||||
|
||||
@@ -106,3 +106,4 @@ obj-$(CONFIG_BATTERY_RK817) += rk817_battery.o
|
||||
obj-$(CONFIG_CHARGER_RK817) += rk817_charger.o
|
||||
obj-$(CONFIG_BATTERY_RK818) += rk818_battery.o
|
||||
obj-$(CONFIG_CHARGER_RK818) += rk818_charger.o
|
||||
obj-$(CONFIG_CHARGER_SGM41542) += sgm41542_charger.o
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user