From patchwork Thu Aug 31 08:21:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H. Nikolaus Schaller" X-Patchwork-Id: 9931521 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 79161602F0 for ; Thu, 31 Aug 2017 08:23:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 64FC9288A2 for ; Thu, 31 Aug 2017 08:23:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 59C39288A3; Thu, 31 Aug 2017 08:23:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D820288A9 for ; Thu, 31 Aug 2017 08:23:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750783AbdHaIV7 (ORCPT ); Thu, 31 Aug 2017 04:21:59 -0400 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.161]:35828 "EHLO mo4-p00-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750828AbdHaIV5 (ORCPT ); Thu, 31 Aug 2017 04:21:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1504167715; s=domk; d=goldelico.com; h=References:In-Reply-To:References:In-Reply-To:Date:Subject:Cc:To: From; bh=gAP4wcvwL7lq7MvEva82iNZnl3TtoxuYJfwIUNjFWRM=; b=JQw6OK1P8aw2XQhxHKhrnHOAauVeKspz0nsVJjldS2725M/2us/42IBLOTTBHU6DhK R+KgMjLwVFcT78DZMiZf6bksTr2WVq5Zj6PTsyFsN+HOTjJl0dJHuRlOihsCtaxmCoM/ diO9qqF27Xok3FAy5xlC+F3xW4MrxGQ6GG19g= X-RZG-AUTH: :JGIXVUS7cutRB/49FwqZ7WcecEarQROEYabkiUo6mSAGQ+qKID0oJ4MK X-RZG-CLASS-ID: mo00 Received: from localhost.localdomain (p57AE0334.dip0.t-ipconnect.de [87.174.3.52]) by smtp.strato.de (RZmta 41.4 DYNA|AUTH) with ESMTPSA id C0b48et7V8LsTKS (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Thu, 31 Aug 2017 10:21:54 +0200 (CEST) From: "H. Nikolaus Schaller" To: afd@ti.com, =?UTF-8?q?Pali=20Roh=C3=A1r?= , Sebastian Reichel , Dmitry Eremin-Solenikov , David Woodhouse , =?UTF-8?q?Beno=C3=AEt=20Cousson?= , Tony Lindgren , Rob Herring , Mark Rutland , Russell King Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, gta04-owner@goldelico.com, marek@goldelico.com, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, "H. Nikolaus Schaller" Subject: [PATCH v3 3/4] DT: OpenPandora: add battery node to describe OpenPandora battery Date: Thu, 31 Aug 2017 10:21:51 +0200 Message-Id: <9930208cc7cde7c595b95469804e09b674a57ef4.1504167711.git.hns@goldelico.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add DT node to describe the standard OpenPandora battery PB-4000-001 so that its properties can be used by the fuel gauge driver. Signed-off-by: H. Nikolaus Schaller --- arch/arm/boot/dts/omap3-pandora-common.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/omap3-pandora-common.dtsi b/arch/arm/boot/dts/omap3-pandora-common.dtsi index 582e1fe25602..154865289dba 100644 --- a/arch/arm/boot/dts/omap3-pandora-common.dtsi +++ b/arch/arm/boot/dts/omap3-pandora-common.dtsi @@ -273,6 +273,14 @@ enable-active-high; gpio = <&twl_gpio 13 GPIO_ACTIVE_HIGH>; }; + + /* standard OpenPandora battery (PB-4000-001) */ + bat: battery { + compatible = "simple-battery", "openpandora-battery"; + voltage-min-design-microvolt = <3200000>; + energy-full-design-microwatt-hours = <14800000>; + charge-full-design-microamp-hours = <4000000>; + }; }; &omap3_pmx_core {