xref: /freebsd/sys/contrib/device-tree/Bindings/power/supply/sc2731_charger.txt (revision 2e3507c25e42292b45a5482e116d278f5515d04d)
1Spreadtrum SC2731 PMIC battery charger binding
2
3Required properties:
4 - compatible: Should be "sprd,sc2731-charger".
5 - reg: Address offset of charger register.
6 - phys: Contains a phandle to the USB phy.
7
8Optional Properties:
9- monitored-battery: phandle of battery characteristics devicetree node.
10  The charger uses the following battery properties:
11- charge-term-current-microamp: current for charge termination phase.
12- constant-charge-voltage-max-microvolt: maximum constant input voltage.
13  See Documentation/devicetree/bindings/power/supply/battery.txt
14
15Example:
16
17	bat: battery {
18		compatible = "simple-battery";
19		charge-term-current-microamp = <120000>;
20		constant-charge-voltage-max-microvolt = <4350000>;
21		......
22	};
23
24	sc2731_pmic: pmic@0 {
25		compatible = "sprd,sc2731";
26		reg = <0>;
27		spi-max-frequency = <26000000>;
28		interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
29		interrupt-controller;
30		#interrupt-cells = <2>;
31		#address-cells = <1>;
32		#size-cells = <0>;
33
34		charger@0 {
35			compatible = "sprd,sc2731-charger";
36			reg = <0x0>;
37			phys = <&ssphy>;
38			monitored-battery = <&bat>;
39		};
40	};
41