]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: motorola-cpcap-mapphone: Configure calibration interrupt
authorTony Lindgren <tony@atomide.com>
Sun, 19 Jan 2020 19:45:01 +0000 (11:45 -0800)
committerTony Lindgren <tony@atomide.com>
Thu, 23 Jan 2020 18:00:01 +0000 (10:00 -0800)
We added coulomb counter calibration support With commit 0cb90f071f73
("power: supply: cpcap-battery: Add basic coulomb counter calibrate
support"), but we also need to configure the related interrupt.

Without the interrupt calibration happens based on a timeout after two
seconds, with the interrupt the calibration just gets done a bit faster.

Cc: Merlijn Wajer <merlijn@wizzup.org>
Cc: Pavel Machek <pavel@ucw.cz>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi

index 936ad010c83a8cbaf6bbcc89b5ea256fd7d58711..e39eee628afd68e6e7a76762aef6bf42c80b1f0e 100644 (file)
@@ -27,11 +27,12 @@ cpcap_battery: battery {
                        compatible = "motorola,cpcap-battery";
                        interrupts-extended = <
                                &cpcap 6 0 &cpcap 5 0 &cpcap 3 0
-                               &cpcap 20 0 &cpcap 54 0
+                               &cpcap 20 0 &cpcap 54 0 &cpcap 57 0
                        >;
                        interrupt-names =
                                "eol", "lowbph", "lowbpl",
-                               "chrgcurr1", "battdetb";
+                               "chrgcurr1", "battdetb",
+                               "cccal";
                        io-channels = <&cpcap_adc 0 &cpcap_adc 1
                                       &cpcap_adc 5 &cpcap_adc 6>;
                        io-channel-names = "battdetb", "battp",