]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
edp: tn8: configure sysedp for P1761-A02
authorTimo Alho <talho@nvidia.com>
Wed, 15 Jan 2014 22:24:12 +0000 (00:24 +0200)
committerTimo Alho <talho@nvidia.com>
Tue, 28 Jan 2014 17:57:44 +0000 (09:57 -0800)
This patch adds sysedp_batmon configuration via device tree to
P1761-A02 hardware. The battery data is from preliminary
characterization and currently only for room temperature. The
parameters are following:
 * Battery impedance 70mOhm through entire state-of-charge
 * Board resistance 40mOhm
 * Battery OCV look-up table (4.25V@100% -> 3.4V@0%)
 * VSYSMIN 3.0V
 * Battery max current (9A @ 25C-50C)

Bug 1339832
Bug 1435950

Reviewed-on: http://git-master/r/358390
(cherry-picked from commit fb9dddc9cb79918eae2e8282c8fff69c81ece027)
Change-Id: Ida906d35dc8cefdc46913fdb13ecb87424e590e5
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/356160
Reviewed-by: Steve Rogers <srogers@nvidia.com>
Tested-by: Steve Rogers <srogers@nvidia.com>
arch/arm/boot/dts/tegra124-platforms/tegra124-tn8-p1761-a02-sysedp.dtsi [new file with mode: 0644]
arch/arm/boot/dts/tegra124-tn8-p1761-a02.dts

diff --git a/arch/arm/boot/dts/tegra124-platforms/tegra124-tn8-p1761-a02-sysedp.dtsi b/arch/arm/boot/dts/tegra124-platforms/tegra124-tn8-p1761-a02-sysedp.dtsi
new file mode 100644 (file)
index 0000000..d6a1b65
--- /dev/null
@@ -0,0 +1,27 @@
+
+/ {
+       sysedp_batmon_calc {
+               compatible = "nvidia,tegra124-sysedp_batmon_calc";
+               ocv_lut = <
+                       100 4250000
+                       50  3810000
+                       5   3640000
+                       0   3400000
+               >;
+               ibat_lut = <
+                       600    4000
+                       500    9000
+                       250    9000
+                       (-200) 4000
+               >;
+               rbat_data = <
+                       70000
+                       70000
+               >;
+               temp_axis = <230>;
+               capacity_axis = <100 0>;
+               power_supply = "sbs-1-000b";
+               r_const = <40000>;
+               vsys_min = <3000000>;
+       };
+};
index 76dd4223c3575a09788a869c89cd804c46add18c..acb889277fdbf886b64194f849f62e73abf76ac8 100644 (file)
@@ -8,6 +8,7 @@
 #include "tegra124-platforms/tegra124-p1761-pinmux.dtsi"
 #include "tegra124-platforms/tegra124-p1761-gpio-default.dtsi"
 #include "tegra124-platforms/tegra124-e1780-keys.dtsi"
+#include "tegra124-platforms/tegra124-tn8-p1761-a02-sysedp.dtsi"
 
 / {
        model = "NVIDIA Tegra124 TN8 FFD";