Message ID | 24730136f603c9825729cc2a3822a40dd84e129e.1515486346.git-series.quentin.schulz@free-electrons.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp3807731qgn; Tue, 9 Jan 2018 01:41:40 -0800 (PST) X-Google-Smtp-Source: ACJfBouxuah7godq61X654NtIRRk4SJwqEqw2d0K3DfyFVBB8Ppq4PYmn4yA/or4cbvDMseE4JCt X-Received: by 10.99.175.76 with SMTP id s12mr11778559pgo.328.1515490900766; Tue, 09 Jan 2018 01:41:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515490900; cv=none; d=google.com; s=arc-20160816; b=RLjMc+jckeHB9cU2WkhwAlVb52BRoYtKvShknSKLfXsQ9VI19tc8/vM2j1LgpFJo6f +vctouOhLlZzexs1f3MOBU7qRM5/fd8QnPYWUyL+MgVpF8qsJ15jZ3Snf/z51H6AG3R0 gAJcc8o7A1nuEPokhTAg6Eo2eAIl4PoQ9aqznpBQ1HsXRCWCgUAKs24UeXvAw4Nhr9eH xyRaXTAHNvdBpKh4aUleDDsJSwUXVMsC0thmGB9KDpJzDGNLt7klWtBC1HFb2vVwlBbD 58G9HGEAuiLvHZ9WHcxHob28XOw1rYDB6HPOScQ7cDdOB//69ci8vppNa2/TlzhUmFY8 YUdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=GNCG3GW0EUeP/Yo9sHxkGMx4NcKx9ouvO1760zqxIzo=; b=TWRSsO3sHWkIkjr4l3t1juR1ecHJR3Qzg+kxLMx0TVrs4xZwzzVtoaG+C8fCxdbSJl MStMK+NTJCjmIkla+gbPS/p8adWwDRbT64JDzkN2qwY4G5P74IYwkTGGpP44EDgudN+D QEOy6kv3FokZhI28xVaLho/41CIQsItMTE5wjIRpNY40I6PnLeEQE1deW+JXtzFgai9d Xth6iKhjpXzZ7j6q/6oiKKCLldMJYTKGGxYYc3queQQgy7K03XVnZmDpMCBI8Tp72Z85 AIAM1g7cvdcWJDcbTE+V9v2POUUfyw+uN1FF77btY0+zAMYVnDbc3NazMbMNikjUwN8T WPXQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o1si10058464pld.226.2018.01.09.01.41.40; Tue, 09 Jan 2018 01:41:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753275AbeAIJlP (ORCPT <rfc822; dan.rue@linaro.org> + 28 others); Tue, 9 Jan 2018 04:41:15 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:45846 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752773AbeAIJfN (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 9 Jan 2018 04:35:13 -0500 Received: by mail.free-electrons.com (Postfix, from userid 110) id E573420A12; Tue, 9 Jan 2018 10:35:10 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost.localdomain (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id 7BE5120938; Tue, 9 Jan 2018 10:34:54 +0100 (CET) From: Quentin Schulz <quentin.schulz@free-electrons.com> To: jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, robh+dt@kernel.org, mark.rutland@arm.com, wens@csie.org, sre@kernel.org, linux@armlinux.org.uk, maxime.ripard@free-electrons.com, lee.jones@linaro.org Cc: linux-iio@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, thomas.petazzoni@free-electrons.com, linux-sunxi@googlegroups.com, Quentin Schulz <quentin.schulz@free-electrons.com> Subject: [PATCH v2 15/16] ARM: dtsi: axp81x: add battery power supply subnode Date: Tue, 9 Jan 2018 10:33:46 +0100 Message-Id: <24730136f603c9825729cc2a3822a40dd84e129e.1515486346.git-series.quentin.schulz@free-electrons.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <cover.1e46d70f7931be8154b450a2fcdf066450a1aa6f.1515486346.git-series.quentin.schulz@free-electrons.com> References: <cover.1e46d70f7931be8154b450a2fcdf066450a1aa6f.1515486346.git-series.quentin.schulz@free-electrons.com> In-Reply-To: <cover.1e46d70f7931be8154b450a2fcdf066450a1aa6f.1515486346.git-series.quentin.schulz@free-electrons.com> References: <cover.1e46d70f7931be8154b450a2fcdf066450a1aa6f.1515486346.git-series.quentin.schulz@free-electrons.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
add support for AXP813 ADC and battery power supply
|
expand
|
diff --git a/arch/arm/boot/dts/axp81x.dtsi b/arch/arm/boot/dts/axp81x.dtsi index dd25bfe..5fb396e 100644 --- a/arch/arm/boot/dts/axp81x.dtsi +++ b/arch/arm/boot/dts/axp81x.dtsi @@ -69,6 +69,11 @@ }; }; + battery_power_supply: battery-power-supply { + compatible = "x-powers,axp813-battery-power-supply"; + status = "disabled"; + }; + regulators { /* Default work frequency for buck regulators */ x-powers,dcdc-freq = <3000>;
The X-Powers AXP81X PMIC exposes battery supply various data such as the battery status (charging, discharging, full, dead), current max limit, current current, battery capacity (in percentage), voltage max and min limits, current voltage, and battery capacity (in Ah). This adds the battery power supply subnode for AXP81X PMIC. Signed-off-by: Quentin Schulz <quentin.schulz@free-electrons.com> --- arch/arm/boot/dts/axp81x.dtsi | 5 +++++ 1 file changed, 5 insertions(+) -- git-series 0.9.1