]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
dt-bindings: power: supply: bq2515x: Add missing power-supply ref
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Wed, 4 Jun 2025 08:18:21 +0000 (10:18 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sat, 21 Jun 2025 23:45:46 +0000 (01:45 +0200)
Reference the common power supply schema to bring the definition of
monitored-battery property.  Drop also the obvious description because
it is duplicating what is in power-supply.yaml.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20250604-dt-bindings-psy-monitored-battery-v1-1-7f755ff75218@linaro.org
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Documentation/devicetree/bindings/power/supply/bq2515x.yaml

index 845822c87f2a4616c44907a5abaa1cc785be78ea..0e99a218e662b8400a15252fe601234bb51cd12c 100644 (file)
@@ -53,15 +53,16 @@ properties:
     minimum: 50000
     maximum: 500000
 
-  monitored-battery:
-    $ref: /schemas/types.yaml#/definitions/phandle
-    description: phandle to the battery node being monitored
+  monitored-battery: true
 
 required:
   - compatible
   - reg
   - monitored-battery
 
+allOf:
+  - $ref: power-supply.yaml#
+
 additionalProperties: false
 
 examples: