lkml.org 
[lkml]   [2014]   [Mar]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[RFC PATCH 3/4] Documentation: dt: charger-manager: Change the way to get fuel-gauge power-supply device
Date
This patch use the phandle of fuel-gauge device instead of the name of fuel-gauge
device to get fuel-gauge device directly from dt.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Myungjoo Ham <myungjoo.ham@samsung.com>
---
.../devicetree/bindings/power_supply/charger-manager.txt | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/power_supply/charger-manager.txt b/Documentation/devicetree/bindings/power_supply/charger-manager.txt
index 2b33750..ceebd66 100644
--- a/Documentation/devicetree/bindings/power_supply/charger-manager.txt
+++ b/Documentation/devicetree/bindings/power_supply/charger-manager.txt
@@ -6,7 +6,7 @@ Required properties :
- <>-supply : for regulator consumer
- cm-num-chargers : number of chargers
- cm-chargers : name of chargers
- - cm-fuel-gauge : name of battery fuel gauge
+ - fuelgauge : phandle of fuelgauge power-supply device
- subnode <regulator> :
- cm-regulator-name : name of charger regulator
- subnode <cable> :
@@ -30,6 +30,10 @@ Optional properties :
- cm-dis/charging-max = limits of charging duration

Example :
+ fuelgauge0: max17047@36 {
+ compatible = "maxim,max17047";
+ };
+
charger-manager@0 {
compatible = "charger-manager";
chg-reg-supply = <&charger_regulator>;
@@ -48,7 +52,7 @@ Example :
cm-num-chargers = <3>;
cm-chargers = "charger0", "charger1", "charger2";

- cm-fuel-gauge = "fuelgauge0";
+ fuelgauge = <&fuelgauge0>;

cm-thermal-zone = "thermal_zone.1"
/* in deci centigrade */
--
1.8.0


\
 
 \ /
  Last update: 2014-03-17 14:21    [W:0.099 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site