[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241217-starqltechn_integration_upstream-v12-5-ed840944f948@gmail.com>
Date: Tue, 17 Dec 2024 20:30:03 +0300
From: Dzmitry Sankouski <dsankouski@...il.com>
To: Sebastian Reichel <sre@...nel.org>,
Chanwoo Choi <cw00.choi@...sung.com>, Krzysztof Kozlowski <krzk@...nel.org>,
Lee Jones <lee@...nel.org>, Rob Herring <robh@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Dmitry Torokhov <dmitry.torokhov@...il.com>, Pavel Machek <pavel@....cz>,
Hans de Goede <hdegoede@...hat.com>,
Marek Szyprowski <m.szyprowski@...sung.com>,
Sebastian Krzyszkowiak <sebastian.krzyszkowiak@...i.sm>,
Purism Kernel Team <kernel@...i.sm>,
Krzysztof Kozlowski <krzk+dt@...nel.org>
Cc: linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org, linux-input@...r.kernel.org,
linux-leds@...r.kernel.org, Dzmitry Sankouski <dsankouski@...il.com>
Subject: [PATCH v12 05/11] dt-bindings: mfd: add maxim,max77705 sensors
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@...il.com>
---
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@...il.com>
+
+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
Powered by blists - more mailing lists