From patchwork Wed Feb 4 22:14:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Belisko X-Patchwork-Id: 5779821 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 29F799F302 for ; Wed, 4 Feb 2015 22:16:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3D70A2024D for ; Wed, 4 Feb 2015 22:16:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0729620221 for ; Wed, 4 Feb 2015 22:16:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966311AbbBDWPA (ORCPT ); Wed, 4 Feb 2015 17:15:00 -0500 Received: from mail-wg0-f52.google.com ([74.125.82.52]:53793 "EHLO mail-wg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965874AbbBDWO6 (ORCPT ); Wed, 4 Feb 2015 17:14:58 -0500 Received: by mail-wg0-f52.google.com with SMTP id y19so4311231wgg.11; Wed, 04 Feb 2015 14:14:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=WxRHpraWmAdrkoX475m9KlEOm5MGvhaQ5iOYtbs/FE4=; b=XzJkayRkdhkG1KixahQE+fXJLIHCJ0AFjxIA4YVK12Wi8jR/Gwap1UYB3ESFxHp0af PRr2podF/HMtkDht1gortLD/P6UOyXcPO9SmZ5HjxQWZ+bkMkW/aLHkMjEvxwdM/aJoa +cygeCJhUVJST23NXAS5AD4tpodLzieWk4PXldArSiyhw2YbZlLDzooaAw5rlhE1gVHQ AhQWW9Q9HrQBgFRjIelihAXRypoeSgVxaValSKh6C7IL6BK0DF9rPN9zJ+WRvnMulRlv gQDAXOeaGp7WCdwmCM6+dGeFYZm4A5OTWFAQce40dpmlBDlRyn60L9BUmYAZrK9XKoYO ix5Q== X-Received: by 10.194.187.235 with SMTP id fv11mr1298904wjc.16.1423088096630; Wed, 04 Feb 2015 14:14:56 -0800 (PST) Received: from marek.lan (ip-85.163.161.219.o2inet.sk. [85.163.161.219]) by mx.google.com with ESMTPSA id kp1sm4532222wjc.28.2015.02.04.14.14.53 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 04 Feb 2015 14:14:56 -0800 (PST) From: Marek Belisko To: sre@kernel.org, dbaryshkov@gmail.com, dwmw2@infradead.org Cc: mark.rutland@arm.com, tony@atomide.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, hns@goldelico.com, gta04-owner@goldelico.com, Marek Belisko Subject: [PATCH v3 4/6] ARM: dts: omap3-gta04: Add battery support Date: Wed, 4 Feb 2015 23:14:33 +0100 Message-Id: <1423088075-10025-5-git-send-email-marek@goldelico.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1423088075-10025-1-git-send-email-marek@goldelico.com> References: <1423088075-10025-1-git-send-email-marek@goldelico.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Marek Belisko --- arch/arm/boot/dts/omap3-gta04.dtsi | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi index 655d6e9..f81ca27 100644 --- a/arch/arm/boot/dts/omap3-gta04.dtsi +++ b/arch/arm/boot/dts/omap3-gta04.dtsi @@ -49,6 +49,32 @@ ti,codec = <&twl_audio>; }; + battery { + compatible = "ti,twl4030-madc-battery"; + capacity-uah = <1200000>; + volt-to-capacity-charging-map = <4200 100>, + <4100 75>, + <4000 55>, + <3900 25>, + <3800 5>, + <3700 2>, + <3600 1>, + <3300 0>; + volt-to-capacity-discharging-map = <4200 100>, + <4100 95>, + <4000 70>, + <3800 50>, + <3700 10>, + <3600 5>, + <3300 0>; + io-channels = <&twl_madc 1>, + <&twl_madc 10>, + <&twl_madc 12>; + io-channel-names = "temp", + "ichg", + "vbat"; + }; + spi_lcd { compatible = "spi-gpio"; #address-cells = <0x1>; @@ -449,3 +475,7 @@ }; }; }; + +&twl_madc { + ti,system-uses-second-madc-irq; +};