[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20221220132250.19383-5-Zeynep.Arslanbenzer@analog.com>
Date: Tue, 20 Dec 2022 16:22:48 +0300
From: Zeynep Arslanbenzer <Zeynep.Arslanbenzer@...log.com>
To: <lee@...nel.org>, <robh+dt@...nel.org>,
<krzysztof.kozlowski+dt@...aro.org>, <sre@...nel.org>,
<lgirdwood@...il.com>, <broonie@...nel.org>
CC: <Zeynep.Arslanbenzer@...log.com>, <Nurettin.Bolucu@...log.com>,
<linux-kernel@...r.kernel.org>, <devicetree@...r.kernel.org>,
<linux-pm@...r.kernel.org>
Subject: [PATCH 4/6] dt-bindings: power: supply: add MAX77659 charger binding
This patch adds device tree binding documentation for MAX77659 charger.
Signed-off-by: Nurettin Bolucu <Nurettin.Bolucu@...log.com>
Signed-off-by: Zeynep Arslanbenzer <Zeynep.Arslanbenzer@...log.com>
---
.../power/supply/adi,max77659-charger.yaml | 42 +++++++++++++++++++
MAINTAINERS | 1 +
2 files changed, 43 insertions(+)
create mode 100644 Documentation/devicetree/bindings/power/supply/adi,max77659-charger.yaml
diff --git a/Documentation/devicetree/bindings/power/supply/adi,max77659-charger.yaml b/Documentation/devicetree/bindings/power/supply/adi,max77659-charger.yaml
new file mode 100644
index 000000000000..24f8b5a2bd84
--- /dev/null
+++ b/Documentation/devicetree/bindings/power/supply/adi,max77659-charger.yaml
@@ -0,0 +1,42 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/power/supply/adi,max77659-charger.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Battery charger for MAX77659 PMIC from ADI.
+
+maintainers:
+ - Nurettin Bolucu <Nurettin.Bolucu@...log.com>
+ - Zeynep Arslanbenzer <Zeynep.Arslanbenzer@...log.com>
+
+description: |
+ This module is part of the MAX77659 MFD device. For more details
+ see Documentation/devicetree/bindings/mfd/adi,max77659.yaml.
+
+ The charger is represented as a sub-node of the PMIC node on the device tree.
+
+properties:
+ compatible:
+ const: adi,max77659-charger
+
+ reg:
+ maxItems: 1
+
+ adi,fast-charge-timer:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ description: Fast-charge safety timer value (in hours).
+
+ adi,fast-charge-microamp:
+ description: Fast-charge constant current value.
+
+ adi,topoff-timer:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ description: Top-Off timer value (in minutes).
+
+required:
+ - compatible
+
+additionalProperties: false
+
+...
diff --git a/MAINTAINERS b/MAINTAINERS
index b3e307163063..5cb8fa452f2d 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -12646,6 +12646,7 @@ M: Zeynep Arslanbenzer <Zeynep.Arslanbenzer@...log.com>
L: linux-kernel@...r.kernel.org
S: Maintained
F: Documentation/devicetree/bindings/mfd/adi,max77659.yaml
+F: Documentation/devicetree/bindings/power/supply/adi,max77659-charger.yaml
F: drivers/mfd/max77659.c
F: drivers/power/supply/max77659-charger.c
F: include/linux/mfd/max77659.h
--
2.25.1
Powered by blists - more mailing lists