1# Copyright (c), 2023 Grinn
2# SPDX-License-Identifier: Apache-2.0
3
4description: Maxim MAX20335 battery charger
5
6include: battery.yaml
7
8compatible: "maxim,max20335-charger"
9
10properties:
11  constant-charge-voltage-max-microvolt:
12    required: true
13    enum:
14      - 4050000
15      - 4100000
16      - 4150000
17      - 4200000
18      - 4250000
19      - 4300000
20      - 4350000
21      - 4400000
22      - 4450000
23      - 4500000
24      - 4550000
25      - 4600000
26
27  chgin-to-sys-current-limit-microamp:
28    type: int
29    required: true
30    enum:
31      - 0
32      - 100000
33      - 500000
34      - 1000000
35    description: |
36      CHGIN to SYS path current limitter configuration.
37      Refer to ILimCntl register description for details.
38
39  system-voltage-min-threshold-microvolt:
40    type: int
41    required: true
42    enum:
43      - 3600000
44      - 3700000
45      - 3800000
46      - 3900000
47      - 4000000
48      - 4100000
49      - 4200000
50      - 4300000
51    description: |
52      System voltage minimum threshold. When SYS path
53      voltage drops to this level, the charger current
54      is reduced to prevent battery damage.
55
56  re-charge-threshold-microvolt:
57    type: int
58    required: true
59    enum:
60      - 70000
61      - 120000
62      - 170000
63      - 220000
64    description: |
65      Recharge threshold in relation to BatReg.
66      Refer to ChgCntlA register description for details.
67
68  thermistor-monitoring-mode:
69    type: string
70    required: true
71    enum:
72      - "disabled"
73      - "thermistor"
74      - "JEITA-1"
75      - "JEITA-2"
76    description: |
77      Thermistor monitoring mode.
78      Refer to ThrmCfg register description and Table 2 for details.
79
80  int-gpios:
81    type: phandle-array
82    required: true
83    description: Interrupt pin
84