Skip to content

Commit 6260065

Browse files
macromorgansre
authored andcommitted
dt-bindings: power: supply: axp20x-battery: Add x-powers,no-thermistor
Add the vendor specific boolean property of x-powers,no-thermistor. This property optionally describes hardware where no thermistor is present on the battery and is specific to the AXP717. In rare circumstances this value can be set incorrectly in the efuse of the PMIC, and if it is not hard-coded the device will fail to charge. Signed-off-by: Chris Morgan <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sebastian Reichel <[email protected]>
1 parent 74f0904 commit 6260065

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

Documentation/devicetree/bindings/power/supply/x-powers,axp20x-battery-power-supply.yaml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ maintainers:
1414
- Chen-Yu Tsai <[email protected]>
1515
- Sebastian Reichel <[email protected]>
1616

17-
allOf:
18-
- $ref: power-supply.yaml#
19-
2017
properties:
2118
compatible:
2219
oneOf:
@@ -35,7 +32,24 @@ properties:
3532
this gauge.
3633
$ref: /schemas/types.yaml#/definitions/phandle
3734

35+
x-powers,no-thermistor:
36+
type: boolean
37+
description: Indicates that no thermistor is connected to the TS pin
38+
3839
required:
3940
- compatible
4041

42+
allOf:
43+
- $ref: power-supply.yaml#
44+
- if:
45+
not:
46+
properties:
47+
compatible:
48+
contains:
49+
enum:
50+
- x-powers,axp717-battery-power-supply
51+
then:
52+
properties:
53+
x-powers,no-thermistor: false
54+
4155
additionalProperties: false

0 commit comments

Comments
 (0)