[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200823140846.19299-6-digetx@gmail.com>
Date: Sun, 23 Aug 2020 17:08:45 +0300
From: Dmitry Osipenko <digetx@...il.com>
To: Lee Jones <lee.jones@...aro.org>, Rob Herring <robh+dt@...nel.org>,
Thierry Reding <thierry.reding@...il.com>,
Jonathan Hunter <jonathanh@...dia.com>,
Pavel Machek <pavel@....cz>, Dan Murphy <dmurphy@...com>,
Sebastian Reichel <sre@...nel.org>,
Lubomir Rintel <lkundrak@...sk>
Cc: devicetree@...r.kernel.org, linux-tegra@...r.kernel.org,
linux-leds@...r.kernel.org, linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH v1 5/6] dt-bindings: mfd: ene-kb3930: Document power-supplies and monitored-battery properties
Battery could be connected to the controller and in this case controller
will provide a battery-monitor function.
The power-supplies phandle property is needed in order to describe the
power supply which is used for charging of the battery, this allows to
determine whither battery is charging or discharging, depending on the
supply state.
The monitored-battery phandle provides information about the battery cell
characteristics.
Signed-off-by: Dmitry Osipenko <digetx@...il.com>
---
.../devicetree/bindings/mfd/ene-kb3930.yaml | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/Documentation/devicetree/bindings/mfd/ene-kb3930.yaml b/Documentation/devicetree/bindings/mfd/ene-kb3930.yaml
index 5a1c4a959d9c..435728054f3a 100644
--- a/Documentation/devicetree/bindings/mfd/ene-kb3930.yaml
+++ b/Documentation/devicetree/bindings/mfd/ene-kb3930.yaml
@@ -29,6 +29,8 @@ properties:
description: GPIO used with the shutdown protocol on Ariel
maxItems: 2
+ monitored-battery: true
+ power-supplies: true
system-power-controller: true
required:
@@ -41,6 +43,19 @@ examples:
- |
#include <dt-bindings/gpio/gpio.h>
+ battery: battery-cell {
+ compatible = "simple-battery";
+ charge-full-design-microamp-hours = <3260000>;
+ energy-full-design-microwatt-hours = <24000000>;
+ operating-range-celsius = <0 40>;
+ };
+
+ mains: ac-adapter {
+ compatible = "gpio-charger";
+ charger-type = "mains";
+ gpios = <&gpio 125 GPIO_ACTIVE_LOW>;
+ };
+
i2c {
#address-cells = <1>;
#size-cells = <0>;
@@ -52,6 +67,9 @@ examples:
off-gpios = <&gpio 126 GPIO_ACTIVE_HIGH>,
<&gpio 127 GPIO_ACTIVE_HIGH>;
+
+ monitored-battery = <&battery>;
+ power-supplies = <&mains>;
};
};
--
2.27.0
Powered by blists - more mailing lists