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