From patchwork Sun Oct 9 06:27:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 9368369 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 ED0386077E for ; Sun, 9 Oct 2016 06:31:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D5F9A28DD0 for ; Sun, 9 Oct 2016 06:31:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C459629167; Sun, 9 Oct 2016 06:31:02 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CE88728DD0 for ; Sun, 9 Oct 2016 06:30:59 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bt7bw-0007mq-LN; Sun, 09 Oct 2016 06:29:24 +0000 Received: from forward20m.cmail.yandex.net ([2a02:6b8:b030::a1]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bt7bm-0007e3-4H for linux-arm-kernel@lists.infradead.org; Sun, 09 Oct 2016 06:29:17 +0000 Received: from smtp3j.mail.yandex.net (smtp3j.mail.yandex.net [IPv6:2a02:6b8:0:801:1::12]) by forward20m.cmail.yandex.net (Yandex) with ESMTP id BC87721053; Sun, 9 Oct 2016 09:28:49 +0300 (MSK) Received: from smtp3j.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp3j.mail.yandex.net (Yandex) with ESMTP id 3C5BA6240D8D; Sun, 9 Oct 2016 09:28:37 +0300 (MSK) Received: by smtp3j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id MYSh2WzRiA-SUrSShrx; Sun, 09 Oct 2016 09:28:36 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aosc.xyz; s=mail; t=1475994517; bh=BN3Ig4ogfnvfhiLpisqvhw8HXkhTo5VEmPtVpEkDQjk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=JSRg45dgli00cpRDPWAVf8+L64Yly8OCxrJ1+HlUmSSBXDbKBYQeYc1YG5E8ji6UD mzfq/lHMBgOg8NAY90LGPLg5wa4EXs2HLqd8MTZc43rcxPWJ43rLp0XBoee4Q6GkJx hbpoLvAfocNv70qxXKMOZQHltvdaZ2ySPnjuIuY8= Authentication-Results: smtp3j.mail.yandex.net; dkim=pass header.i=@aosc.xyz X-Yandex-ForeignMX: CA X-Yandex-Suid-Status: 1 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 1130000036118848 From: Icenowy Zheng To: Rob Herring , Chen-Yu Tsai , Maxime Ripard , Lee Jones , =?UTF-8?q?Bruno=20Pr=C3=A9mont?= , Michael Haas Subject: [PATCH v2 4/4] ARM: sunxi: enable battery on reference design tablets Date: Sun, 9 Oct 2016 14:27:14 +0800 Message-Id: <20161009062714.5085-4-icenowy@aosc.xyz> X-Mailer: git-send-email 2.10.0 In-Reply-To: <20161009062714.5085-1-icenowy@aosc.xyz> References: <20161009062714.5085-1-icenowy@aosc.xyz> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161008_232914_498227_4290B9AA X-CRM114-Status: UNSURE ( 8.72 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Russell King , Icenowy Zheng , Sebastian Reichel , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Since battery is one part of the reference design of Allwinner tablets, enable the battery node of reference design tablets. Signed-off-by: Icenowy Zheng --- Changes since v1: - Applied to reference design tablet, not Q8 only now. - Add support for sun5i reference design tablet. arch/arm/boot/dts/sun5i-reference-design-tablet.dtsi | 4 ++++ arch/arm/boot/dts/sun8i-reference-design-tablet.dtsi | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/sun5i-reference-design-tablet.dtsi b/arch/arm/boot/dts/sun5i-reference-design-tablet.dtsi index 20cc940..9e17b46 100644 --- a/arch/arm/boot/dts/sun5i-reference-design-tablet.dtsi +++ b/arch/arm/boot/dts/sun5i-reference-design-tablet.dtsi @@ -92,6 +92,10 @@ #include "axp209.dtsi" +&battery { + status = "okay"; +}; + &lradc { vref-supply = <®_ldo2>; }; diff --git a/arch/arm/boot/dts/sun8i-reference-design-tablet.dtsi b/arch/arm/boot/dts/sun8i-reference-design-tablet.dtsi index 9d90361..74517ab 100644 --- a/arch/arm/boot/dts/sun8i-reference-design-tablet.dtsi +++ b/arch/arm/boot/dts/sun8i-reference-design-tablet.dtsi @@ -112,6 +112,10 @@ #include "axp22x.dtsi" +&battery { + status = "okay"; +}; + ®_aldo1 { regulator-always-on; regulator-min-microvolt = <3000000>;