ARM: dts: omap4-droid4: Configure CPCAP battery driver
authorTony Lindgren <tony@atomide.com>
Thu, 1 Jun 2017 14:26:37 +0000 (07:26 -0700)
committerTony Lindgren <tony@atomide.com>
Mon, 12 Jun 2017 16:07:13 +0000 (09:07 -0700)
Configure CPCAP battery driver.

Cc: devicetree@vger.kernel.org
Cc: Marcel Partap <mpartap@gmx.net>
Cc: Michael Scott <michael.scott@linaro.org>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi

index f5aeb3959afd9c2a6d4787bafa21c3cacfe9ce0e..1eb5da1dc8f0a9fd2ee02195678b56aa67ddf23a 100644 (file)
                        #io-channel-cells = <1>;
                };
 
+               cpcap_battery: battery {
+                       compatible = "motorola,cpcap-battery";
+                       interrupts-extended = <
+                               &cpcap 6 0 &cpcap 5 0 &cpcap 3 0
+                               &cpcap 20 0 &cpcap 54 0
+                       >;
+                       interrupt-names =
+                               "eol", "lowbph", "lowbpl",
+                               "chrgcurr1", "battdetb";
+                       io-channels = <&cpcap_adc 0 &cpcap_adc 1
+                                      &cpcap_adc 5 &cpcap_adc 6>;
+                       io-channel-names = "battdetb", "battp",
+                                          "chg_isense", "batti";
+                       power-supplies = <&cpcap_charger>;
+               };
+
                cpcap_charger: charger {
                        compatible = "motorola,mapphone-cpcap-charger";
                        interrupts-extended = <