Skip to content

Commit da32b6d

Browse files
krzksre
authored andcommitted
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 <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Link: https://lore.kernel.org/r/20250604-dt-bindings-psy-monitored-battery-v1-6-7f755ff75218@linaro.org Signed-off-by: Sebastian Reichel <[email protected]>
1 parent 128c070 commit da32b6d

File tree

8 files changed

+7
-25
lines changed

8 files changed

+7
-25
lines changed

Documentation/devicetree/bindings/power/supply/bq24190.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ properties:
4848
battery device.
4949
5050
monitored-battery:
51-
$ref: /schemas/types.yaml#/definitions/phandle
5251
description: |
5352
phandle to a "simple-battery" compatible node.
5453

Documentation/devicetree/bindings/power/supply/bq25980.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,7 @@ properties:
7373
description: |
7474
Indicates that the device state has changed.
7575
76-
monitored-battery:
77-
$ref: /schemas/types.yaml#/definitions/phandle
78-
description: phandle to the battery node being monitored
76+
monitored-battery: true
7977

8078
required:
8179
- compatible

Documentation/devicetree/bindings/power/supply/cw2015_battery.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,7 @@ properties:
4343
minItems: 1
4444
maxItems: 8 # Should be enough
4545

46-
monitored-battery:
47-
description:
48-
Specifies the phandle of a simple-battery connected to this gauge
49-
$ref: /schemas/types.yaml#/definitions/phandle
46+
monitored-battery: true
5047

5148
required:
5249
- compatible

Documentation/devicetree/bindings/power/supply/stericsson,ab8500-btemp.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ properties:
1717
compatible:
1818
const: stericsson,ab8500-btemp
1919

20-
monitored-battery:
21-
$ref: /schemas/types.yaml#/definitions/phandle
22-
description: phandle to battery node
20+
monitored-battery: true
2321

2422
battery:
2523
$ref: /schemas/types.yaml#/definitions/phandle

Documentation/devicetree/bindings/power/supply/stericsson,ab8500-chargalg.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ properties:
1717
compatible:
1818
const: stericsson,ab8500-chargalg
1919

20-
monitored-battery:
21-
$ref: /schemas/types.yaml#/definitions/phandle
22-
description: phandle to battery node
20+
monitored-battery: true
2321

2422
battery:
2523
$ref: /schemas/types.yaml#/definitions/phandle

Documentation/devicetree/bindings/power/supply/stericsson,ab8500-charger.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ properties:
1717
compatible:
1818
const: stericsson,ab8500-charger
1919

20-
monitored-battery:
21-
$ref: /schemas/types.yaml#/definitions/phandle
22-
description: phandle to battery node
20+
monitored-battery: true
2321

2422
battery:
2523
$ref: /schemas/types.yaml#/definitions/phandle

Documentation/devicetree/bindings/power/supply/stericsson,ab8500-fg.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ properties:
1717
compatible:
1818
const: stericsson,ab8500-fg
1919

20-
monitored-battery:
21-
$ref: /schemas/types.yaml#/definitions/phandle
22-
description: phandle to battery node
20+
monitored-battery: true
2321

2422
battery:
2523
$ref: /schemas/types.yaml#/definitions/phandle

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@ properties:
2626
- const: x-powers,axp813-battery-power-supply
2727
- const: x-powers,axp813-battery-power-supply
2828

29-
monitored-battery:
30-
description:
31-
Specifies the phandle of an optional simple-battery connected to
32-
this gauge.
33-
$ref: /schemas/types.yaml#/definitions/phandle
29+
monitored-battery: true
3430

3531
x-powers,no-thermistor:
3632
type: boolean

0 commit comments

Comments
 (0)