[PATCH 3/4] dt-bindings: power: supply: max17042: Add monitored-battery phandle

From: Sebastian Krzyszkowiak
Date: Thu Mar 17 2022 - 20:11:20 EST


In order to let the driver know about the characteristics of the monitored
battery, allow a standard "monitored-battery" property to be specified.

Cc: devicetree@xxxxxxxxxxxxxxx
Signed-off-by: Sebastian Krzyszkowiak <sebastian.krzyszkowiak@xxxxxxx>
---
.../devicetree/bindings/power/supply/maxim,max17042.yaml | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/Documentation/devicetree/bindings/power/supply/maxim,max17042.yaml b/Documentation/devicetree/bindings/power/supply/maxim,max17042.yaml
index 971b53c58cc6..88c9f466f2c5 100644
--- a/Documentation/devicetree/bindings/power/supply/maxim,max17042.yaml
+++ b/Documentation/devicetree/bindings/power/supply/maxim,max17042.yaml
@@ -59,6 +59,10 @@ properties:
Voltage threshold to report battery as over voltage (in mV).
Default is not to report over-voltage events.

+ monitored-battery:
+ $ref: /schemas/types.yaml#/definitions/phandle
+ description: phandle to the battery node being monitored
+
required:
- compatible
- reg
--
2.35.1