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