[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20221220132250.19383-3-Zeynep.Arslanbenzer@analog.com>
Date: Tue, 20 Dec 2022 16:22:46 +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 2/6] dt-bindings: mfd: add MAX77659 binding
This patch adds binding document for MAX77659 MFD driver.
Signed-off-by: Nurettin Bolucu <Nurettin.Bolucu@...log.com>
Signed-off-by: Zeynep Arslanbenzer <Zeynep.Arslanbenzer@...log.com>
---
.../devicetree/bindings/mfd/adi,max77659.yaml | 70 +++++++++++++++++++
MAINTAINERS | 1 +
2 files changed, 71 insertions(+)
create mode 100644 Documentation/devicetree/bindings/mfd/adi,max77659.yaml
diff --git a/Documentation/devicetree/bindings/mfd/adi,max77659.yaml b/Documentation/devicetree/bindings/mfd/adi,max77659.yaml
new file mode 100644
index 000000000000..6bec11607615
--- /dev/null
+++ b/Documentation/devicetree/bindings/mfd/adi,max77659.yaml
@@ -0,0 +1,70 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mfd/adi,max77659.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: MAX77659 SIMO PMIC from ADI.
+
+maintainers:
+ - Nurettin Bolucu <Nurettin.Bolucu@...log.com>
+ - Zeynep Arslanbenzer <Zeynep.Arslanbenzer@...log.com>
+
+description: |
+ MAX77659 is an PMIC providing battery charging and power
+ supply solutions for low-power applications.
+
+ For device-tree bindings of other sub-modules (regulator, power supply
+ refer to the binding documents under the respective
+ sub-system directories.
+
+properties:
+ compatible:
+ const: adi,max77659
+
+ reg:
+ description:
+ I2C device address.
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+
+ charger:
+ $ref: ../power/supply/adi,max77659-charger.yaml
+
+ regulator:
+ $ref: ../regulator/adi,max77659-regulator.yaml
+
+required:
+ - compatible
+ - reg
+ - interrupts
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/irq.h>
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ pmic@40 {
+ compatible = "adi,max77659";
+ reg = <0x40>;
+ interrupt-parent = <&gpio>;
+ #interrupt-cells = <2>;
+ interrupts = <16 IRQ_TYPE_EDGE_FALLING>;
+ regulator {
+ compatible = "adi,max77659-regulator";
+ regulator-boot-on;
+ regulator-always-on;
+ };
+ charger {
+ compatible = "adi,max77659-charger";
+ adi,fast-charge-timer = <5>;
+ adi,fast-charge-microamp = <15000>;
+ adi,topoff-timer = <30>;
+ };
+ };
+ };
diff --git a/MAINTAINERS b/MAINTAINERS
index 45a8a471c7c0..e7a9cadf0ff2 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -12645,6 +12645,7 @@ M: Nurettin Bolucu <Nurettin.Bolucu@...log.com>
M: Zeynep Arslanbenzer <Zeynep.Arslanbenzer@...log.com>
L: linux-kernel@...r.kernel.org
S: Maintained
+F: Documentation/devicetree/bindings/mfd/adi,max77659.yaml
F: drivers/mfd/max77659.c
F: include/linux/mfd/max77659.h
--
2.25.1
Powered by blists - more mailing lists