[RFC PATCH 3/4] Documentation: dt: charger-manager: Change the way to get fuel-gauge power-supply device

From: Chanwoo Choi
Date: Mon Mar 17 2014 - 08:44:18 EST


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@xxxxxxxxxxx>
Signed-off-by: Myungjoo Ham <myungjoo.ham@xxxxxxxxxxx>
---
.../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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/