summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorJonghwa Lee <jonghwa3.lee@samsung.com>2013-10-22 16:53:55 +0900
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:44:59 +0900
commit204cc80fe4e809292055ef6af2266c53d78d4ddd (patch)
tree44c7b81c95327b7208919dbd85442a681be38712 /arch
parentba30d5fe27b88c11cde272cd79cef84d82778e9f (diff)
downloadlinux-3.10-204cc80fe4e809292055ef6af2266c53d78d4ddd.tar.gz
linux-3.10-204cc80fe4e809292055ef6af2266c53d78d4ddd.tar.bz2
linux-3.10-204cc80fe4e809292055ef6af2266c53d78d4ddd.zip
charger-manager: Parse charger_desc from device tree.
With this patch, charger-manager can support device tree fully. Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/boot/dts/exynos4412-slp_pq.dts61
1 files changed, 60 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/exynos4412-slp_pq.dts b/arch/arm/boot/dts/exynos4412-slp_pq.dts
index e3c42e1f462..af9f366d00a 100644
--- a/arch/arm/boot/dts/exynos4412-slp_pq.dts
+++ b/arch/arm/boot/dts/exynos4412-slp_pq.dts
@@ -1274,10 +1274,69 @@
pinctrl-1 = <&modem_state_active>;
};
- charger {
+ charger-manager@0 {
compatible = "charger-manager";
status = "okay";
vinchg1-supply = <&charger_reg>;
+
+ cm-name = "battery";
+ cm-poll-mode = <2>;
+ cm-poll-interval = <30000>;
+
+ cm-fullbatt-vchkdrop-ms = <30000>;
+ cm-fullbatt-vchkdrop-volt = <150000>;
+ cm-fullbatt-soc = <100>;
+
+ cm-battery-stat = <3>;
+
+ cm-battery-cold = <5000>;
+ cm-battery-cold-in-minus;
+ cm-battery-hot = <65000>;
+ cm-battery-temp-diff = <15000>;
+
+ cm-num-chargers = <1>;
+ cm-chargers = "max77693-charger";
+
+ cm-fuel-gauge = "max170xx_battery";
+ cm-battery-has-therm;
+
+ cm-charging-max = <21600000>;
+ cm-discharging-max = <540000>;
+
+ regulator@0 {
+ cm-regulator-name = "vinchg1";
+ cable@0 {
+ cm-cable-name = "USB";
+ cm-cable-extcon = "max77693-muic";
+ cm-cable-min = <475000>;
+ cm-cable-max = <500000>;
+ };
+ cable@1 {
+ cm-cable-name = "TA";
+ cm-cable-extcon = "max77693-muic";
+ cm-cable-min = <650000>;
+ cm-cable-max = <675000>;
+ };
+ cable@2 {
+ cm-cable-name = "Slow-charger";
+ cm-cable-extcon = "max77693-muic";
+ cm-cable-min = <650000>;
+ cm-cable-max = <675000>;
+ };
+ cable@3 {
+ cm-cable-name = "Fast-charger";
+ cm-cable-extcon = "max77693-muic";
+ cm-cable-min = <650000>;
+ cm-cable-max = <675000>;
+ };
+ cable@4 {
+ cm-cable-name = "MHL";
+ cm-cable-extcon = "max77693-muic";
+ cm-cable-min = <475000>;
+ cm-cable-max = <500000>;
+ };
+ };
+
};
fixed-regulators {