summaryrefslogtreecommitdiff
path: root/zephyr/dts/bindings/battery/lgc,ap18c8k.yaml
blob: b997004f3d1df9382d8848716e206c1260cf22da (plain)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
description: "LGC KT0030G020 AP18C8K"
compatible: "lgc,ap18c8k"

include: battery-smart.yaml

properties:
   enum-name:
      type: string
      default: "lgc,ap18c8k"

   # Fuel gauge
   manuf_name:
      default: "LGC KT0030G020"
   device_name:
      default: "AP18C8K"
   ship_mode_reg_addr:
      default: 0x3A
   ship_mode_reg_data:
      default: [ 0xC574, 0xC574 ]
   # Documentation: b/130608940
   # Command Code: 0x43
   # Bit 0 - DFET - Condition of D-FET ( 0=OFF, 1=ON )
   # Bit 1 - CFET - Condition of C-FET ( 0=OFF, 1=ON )
   fet_mfgacc_support:
      default: 0
   fet_reg_addr:
      default: 0x43
   fet_reg_mask:
      default: 0x0001
   fet_disconnect_val:
      default: 0x0000
   fet_cfet_mask:
      default: 0x0002
   fet_cfet_off_val:
      default: 0x0000

   # Battery info
   voltage_max:
      default: 13050
   voltage_normal:
      default: 11250
   voltage_min:
      default: 9000
   precharge_current:
      default: 256
   start_charging_min_c:
      default: 0
   start_charging_max_c:
      default: 50
   charging_min_c:
      default: 0
   charging_max_c:
      default: 60
   discharging_min_c:
      default: -20
   discharging_max_c:
      default: 75