[PATCH v12 05/11] dt-bindings: mfd: add maxim,max77705 sensors
From: Dzmitry Sankouski
Date: Tue Dec 17 2024 - 12:36:52 EST
Add maxim,max77705 sensors binding part.
This includes fuelgauge and voltage/current sensor on
chip input and system bus.
Signed-off-by: Dzmitry Sankouski <dsankouski@xxxxxxxxx>
---
Documentation/devicetree/bindings/mfd/maxim,max77705-sensors.yaml | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
diff --git a/Documentation/devicetree/bindings/mfd/maxim,max77705-sensors.yaml b/Documentation/devicetree/bindings/mfd/maxim,max77705-sensors.yaml
new file mode 100644
index 000000000000..738ce30ca72d
--- /dev/null
+++ b/Documentation/devicetree/bindings/mfd/maxim,max77705-sensors.yaml
@@ -0,0 +1,60 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mfd/maxim,max77705-sensors.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Maxim MAX77705 Companion Power Management IC sensors part
+
+maintainers:
+ - Dzmitry Sankouski <dsankouski@xxxxxxxxx>
+
+description: |
+ The Maxim MAX77705 is a Companion Power Management sensors part includes
+ fuelgauge and current/voltage monitor for charger input, and system bus.
+
+properties:
+ compatible:
+ const: maxim,max77705-sensors
+
+ reg:
+ maxItems: 1
+
+ fuel-gauge:
+ $ref: /schemas/power/supply/maxim,max17042-common.yaml#
+ properties:
+ compatible:
+ const: maxim,max77705-battery
+
+ required:
+ - compatible
+
+required:
+ - compatible
+ - reg
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/irq.h>
+
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ sensors@36 {
+ compatible = "maxim,max77705-sensors";
+ reg = <0x36>;
+
+ fuel-gauge {
+ compatible = "maxim,max77705-battery";
+ power-supplies = <&max77705_charger>;
+ maxim,rsns-microohm = <5000>;
+ maxim,dead-volt = <3400>;
+ maxim,over-volt = <4350>;
+ interrupt-parent = <&pm8998_gpios>;
+ interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
+ };
+ };
+ };
--
2.39.5