ARM: dst: OMAP3-N900: Add n900-battery support
authorSebastian Reichel <sre@kernel.org>
Sat, 15 Nov 2014 02:08:24 +0000 (03:08 +0100)
committerTony Lindgren <tony@atomide.com>
Sat, 22 Nov 2014 00:09:07 +0000 (16:09 -0800)
This adds support for the N900's battery to the
Nokia N900 DTS file.

Signed-off-by: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/omap3-n900.dts

index de15fea..6fbf44a 100644 (file)
                eci-switch-gpios = <&gpio6 22 GPIO_ACTIVE_HIGH>; /* 182 */
                speaker-amplifier-gpios = <&twl_gpio 7 GPIO_ACTIVE_HIGH>;
        };
+
+       battery: n900-battery {
+               compatible = "nokia,n900-battery";
+               io-channels = <&twl_madc 0>, <&twl_madc 4>, <&twl_madc 12>;
+               io-channel-names = "temp", "bsi", "vbat";
+       };
 };
 
 &omap3_pmx_core {