Skip to content

Commit a54ef14

Browse files
robherringbroonie
authored andcommitted
regulator: dt-bindings: Clean-up active-semi,act8945a duplication
The active-semi,act8945a binding is documented in multiple places. The charger child node is documented in regulator/active-semi,act8945a.yaml and power/supply/active-semi,act8945a-charger.yaml. An old text binding is in mfd/act8945a.txt. Update the regulator/active-semi,act8945a.yaml with the additional descriptions and constraints from power/supply/active-semi,act8945a-charger.yaml, and then remove it and mfd/act8945a.txt. Signed-off-by: Rob Herring (Arm) <robh@kernel.org> Link: https://patch.msgid.link/20250807214459.4173892-1-robh@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent bb24414 commit a54ef14

3 files changed

Lines changed: 19 additions & 164 deletions

File tree

Documentation/devicetree/bindings/mfd/act8945a.txt

Lines changed: 0 additions & 82 deletions
This file was deleted.

Documentation/devicetree/bindings/power/supply/active-semi,act8945a-charger.yaml

Lines changed: 0 additions & 76 deletions
This file was deleted.

Documentation/devicetree/bindings/regulator/active-semi,act8945a.yaml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,28 +91,41 @@ properties:
9191
maxItems: 1
9292

9393
active-semi,chglev-gpios:
94-
description: CGHLEV GPIO
94+
description: charge current level GPIO
9595
maxItems: 1
9696

9797
active-semi,lbo-gpios:
98-
description: LBO GPIO
98+
description: low battery voltage detect GPIO
9999
maxItems: 1
100100

101101
active-semi,input-voltage-threshold-microvolt:
102-
description: Input voltage threshold
103-
maxItems: 1
102+
description:
103+
Specifies the charger's input over-voltage threshold value. Despite
104+
the name, specified values are in millivolt (mV).
105+
enum: [ 6600, 7000, 7500, 8000 ]
106+
default: 6600
104107

105108
active-semi,precondition-timeout:
106-
description: Precondition timeout
109+
description:
110+
Specifies the charger's PRECONDITION safety timer setting value in
111+
minutes. If 0, it means to disable this timer.
112+
enum: [ 0, 40, 60, 80 ]
113+
default: 40
107114
$ref: /schemas/types.yaml#/definitions/uint32
108115

109116
active-semi,total-timeout:
110-
description: Total timeout
117+
description:
118+
Specifies the charger's total safety timer setting value in hours; If
119+
0, it means to disable this timer;
120+
enum: [ 0, 3, 4, 5 ]
121+
default: 3
111122
$ref: /schemas/types.yaml#/definitions/uint32
112123

113124
required:
114125
- compatible
115126
- interrupts
127+
- active-semi,chglev-gpios
128+
- active-semi,lbo-gpios
116129

117130
additionalProperties: false
118131

0 commit comments

Comments
 (0)