18c2ecf20Sopenharmony_ciSpreadtrum SC2731 PMIC battery charger binding
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciRequired properties:
48c2ecf20Sopenharmony_ci - compatible: Should be "sprd,sc2731-charger".
58c2ecf20Sopenharmony_ci - reg: Address offset of charger register.
68c2ecf20Sopenharmony_ci - phys: Contains a phandle to the USB phy.
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ciOptional Properties:
98c2ecf20Sopenharmony_ci- monitored-battery: phandle of battery characteristics devicetree node.
108c2ecf20Sopenharmony_ci  The charger uses the following battery properties:
118c2ecf20Sopenharmony_ci- charge-term-current-microamp: current for charge termination phase.
128c2ecf20Sopenharmony_ci- constant-charge-voltage-max-microvolt: maximum constant input voltage.
138c2ecf20Sopenharmony_ci  See Documentation/devicetree/bindings/power/supply/battery.txt
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ciExample:
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci	bat: battery {
188c2ecf20Sopenharmony_ci		compatible = "simple-battery";
198c2ecf20Sopenharmony_ci		charge-term-current-microamp = <120000>;
208c2ecf20Sopenharmony_ci		constant-charge-voltage-max-microvolt = <4350000>;
218c2ecf20Sopenharmony_ci		......
228c2ecf20Sopenharmony_ci	};
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci	sc2731_pmic: pmic@0 {
258c2ecf20Sopenharmony_ci		compatible = "sprd,sc2731";
268c2ecf20Sopenharmony_ci		reg = <0>;
278c2ecf20Sopenharmony_ci		spi-max-frequency = <26000000>;
288c2ecf20Sopenharmony_ci		interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
298c2ecf20Sopenharmony_ci		interrupt-controller;
308c2ecf20Sopenharmony_ci		#interrupt-cells = <2>;
318c2ecf20Sopenharmony_ci		#address-cells = <1>;
328c2ecf20Sopenharmony_ci		#size-cells = <0>;
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci		charger@0 {
358c2ecf20Sopenharmony_ci			compatible = "sprd,sc2731-charger";
368c2ecf20Sopenharmony_ci			reg = <0x0>;
378c2ecf20Sopenharmony_ci			phys = <&ssphy>;
388c2ecf20Sopenharmony_ci			monitored-battery = <&bat>;
398c2ecf20Sopenharmony_ci		};
408c2ecf20Sopenharmony_ci	};
41