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>
--- /dev/null
+
+/ {
+ 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>;
+ };
+};
#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";