dt-bindings: power: supply: Drop redundant monitored-battery ref

Bindings reference the common power supply schema, which already defines
the type (ref) for "monitored-battery" property.  Drop the redundant ref
from individual device schemas along with obvious description also
duplicating what is in power-supply.yaml.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20250604-dt-bindings-psy-monitored-battery-v1-6-7f755ff75218@linaro.org
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
Krzysztof Kozlowski 2025-06-04 10:18:26 +02:00 committed by Sebastian Reichel
parent 128c070482
commit da32b6d7bc
8 changed files with 7 additions and 25 deletions

View File

@ -48,7 +48,6 @@ properties:
battery device.
monitored-battery:
$ref: /schemas/types.yaml#/definitions/phandle
description: |
phandle to a "simple-battery" compatible node.

View File

@ -73,9 +73,7 @@ properties:
description: |
Indicates that the device state has changed.
monitored-battery:
$ref: /schemas/types.yaml#/definitions/phandle
description: phandle to the battery node being monitored
monitored-battery: true
required:
- compatible

View File

@ -43,10 +43,7 @@ properties:
minItems: 1
maxItems: 8 # Should be enough
monitored-battery:
description:
Specifies the phandle of a simple-battery connected to this gauge
$ref: /schemas/types.yaml#/definitions/phandle
monitored-battery: true
required:
- compatible

View File

@ -17,9 +17,7 @@ properties:
compatible:
const: stericsson,ab8500-btemp
monitored-battery:
$ref: /schemas/types.yaml#/definitions/phandle
description: phandle to battery node
monitored-battery: true
battery:
$ref: /schemas/types.yaml#/definitions/phandle

View File

@ -17,9 +17,7 @@ properties:
compatible:
const: stericsson,ab8500-chargalg
monitored-battery:
$ref: /schemas/types.yaml#/definitions/phandle
description: phandle to battery node
monitored-battery: true
battery:
$ref: /schemas/types.yaml#/definitions/phandle

View File

@ -17,9 +17,7 @@ properties:
compatible:
const: stericsson,ab8500-charger
monitored-battery:
$ref: /schemas/types.yaml#/definitions/phandle
description: phandle to battery node
monitored-battery: true
battery:
$ref: /schemas/types.yaml#/definitions/phandle

View File

@ -17,9 +17,7 @@ properties:
compatible:
const: stericsson,ab8500-fg
monitored-battery:
$ref: /schemas/types.yaml#/definitions/phandle
description: phandle to battery node
monitored-battery: true
battery:
$ref: /schemas/types.yaml#/definitions/phandle

View File

@ -26,11 +26,7 @@ properties:
- const: x-powers,axp813-battery-power-supply
- const: x-powers,axp813-battery-power-supply
monitored-battery:
description:
Specifies the phandle of an optional simple-battery connected to
this gauge.
$ref: /schemas/types.yaml#/definitions/phandle
monitored-battery: true
x-powers,no-thermistor:
type: boolean