Skip to contentSkip to conversation

DTS: ARM: OMAP3-N900: Add n900-battery support

PATCH In review Sebastian Reichel 2 participants 2 messages Nov 15, 2014 – Nov 21, 2014 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 DTS: ARM: OMAP3-N900: Add n900-battery support

This adds support for the N900's battery to the
Nokia N900 DTS file.

---
 arch/arm/boot/dts/omap3-n900.dts | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/boot/dts/omap3-n900.dts +6 -0
index bc82a12..39778e5 100644
@@ -115,6 +115,12 @@
 		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 {
Signature · 1 line
2.1.1