xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power/supply/sgm41542_charger.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunBinding for sgm41542 battery charger
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible: "sgm,sgm41542" for sgm41542 Charger Power Supply
5*4882a593Smuzhiyun- monitored-battery: phandle of battery characteristics devicetree node
6*4882a593Smuzhiyun- input-voltage-limit-microvolt: integer, input voltage level in uV, used to
7*4882a593Smuzhiyun				 decrease voltage level when the over current
8*4882a593Smuzhiyun				 of the input power source occurs.
9*4882a593Smuzhiyun- input-current-limit-microamp: integer, input current value in uA drained by the
10*4882a593Smuzhiyun				charger from the power source.Default: 500000 uA (500mA)
11*4882a593Smuzhiyun
12*4882a593Smuzhiyunchild nodes:
13*4882a593Smuzhiyun- vbus5v0_typec:
14*4882a593Smuzhiyun  Usage: optional
15*4882a593Smuzhiyun  Description: Regulator that is used to control the VBUS voltage direction for
16*4882a593Smuzhiyun               either USB host mode or for charging on the OTG port.
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunExample:
19*4882a593Smuzhiyun
20*4882a593Smuzhiyunsgm41542: sgm41542@3b {
21*4882a593Smuzhiyun                compatible = "sgm,sgm41542";
22*4882a593Smuzhiyun                reg = <0x3b>;
23*4882a593Smuzhiyun                input-voltage-limit-microvolt = <4500000>;
24*4882a593Smuzhiyun                input-current-limit-microamp = <3000000>;
25*4882a593Smuzhiyun                monitored-battery = <&bat>;
26*4882a593Smuzhiyun                regulators {
27*4882a593Smuzhiyun                        vbus5v0_typec: vbus5v0-typec {
28*4882a593Smuzhiyun                                regulator-compatible = "otg-vbus";
29*4882a593Smuzhiyun                                regulator-name = "vbus5v0_typec";
30*4882a593Smuzhiyun                        };
31*4882a593Smuzhiyun                };
32*4882a593Smuzhiyun        };
33