mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 06:01:53 +02:00
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 <macromorgan@hotmail.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20250204155835.161973-2-macroalpha82@gmail.com Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
parent
74f0904dc0
commit
6260065410
|
|
@ -14,9 +14,6 @@ maintainers:
|
|||
- Chen-Yu Tsai <wens@csie.org>
|
||||
- Sebastian Reichel <sre@kernel.org>
|
||||
|
||||
allOf:
|
||||
- $ref: power-supply.yaml#
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
oneOf:
|
||||
|
|
@ -35,7 +32,24 @@ properties:
|
|||
this gauge.
|
||||
$ref: /schemas/types.yaml#/definitions/phandle
|
||||
|
||||
x-powers,no-thermistor:
|
||||
type: boolean
|
||||
description: Indicates that no thermistor is connected to the TS pin
|
||||
|
||||
required:
|
||||
- compatible
|
||||
|
||||
allOf:
|
||||
- $ref: power-supply.yaml#
|
||||
- if:
|
||||
not:
|
||||
properties:
|
||||
compatible:
|
||||
contains:
|
||||
enum:
|
||||
- x-powers,axp717-battery-power-supply
|
||||
then:
|
||||
properties:
|
||||
x-powers,no-thermistor: false
|
||||
|
||||
additionalProperties: false
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user