Message ID | 20170920151814.22461-8-icenowy@aosc.io (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 1FFE0602D8 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 20 Sep 2017 15:49:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 11ABF289E4 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 20 Sep 2017 15:49:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 06C3D29139; Wed, 20 Sep 2017 15:49:34 +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.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 89A4F289E4 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 20 Sep 2017 15:49:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=FdZcijOFQb+QHva8GoRs7S2DryNiVrysTKgNvKp8Lx0=; b=aG0t3IdRSoUGy7HnjnM8wcmBD6 I/bq6gvRyDpFQZdwfOO0InQooqAis61hP7bn0yTjs0oFueeGVG/O1robK4gRBy9jwWkTeuoqGB1+M Y5ymVsgNt/H6WyYl+R22900pXEbXk/TmbcXcpsUGJDy1KSmXvAV28DDoEuvDAW6/d8YWIeoa4EzYt Mx0inOImluGmMhmwXhtkGECRyRM8BucGxmsZicTXgIXHes4pPU3es8tsmfA3Xd7TPyPXp8VfOtu6E JDx17/gLmjO2fAiynBzzXDWSwqNXPapiNwidNBvV6BwMyhyDkgsq3ti08PBQIG+VVNrko3FrF4mbz r5Ol+N1A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1duhFS-0001Th-VJ; Wed, 20 Sep 2017 15:49:14 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1duhFQ-0001T8-II for linux-arm-kernel@bombadil.infradead.org; Wed, 20 Sep 2017 15:49:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=s+5c052QZWQ56hSF0mHH3WyUFEaVYMrctuGnCZlVceY=; b=vySO4eL9zQT/F6fOarjFA3rWp V+Ie9VXzEwbtzE9qFC0NPldVlkhcu/vcBB0Yp+vV5HTkoedeISca3ku8iM3WYyG1+X8Td5SEBSox3 wzzZ9W4tkZ0uvwXRkRq/UUFa6/5Js7/v3mWgSZJuo0b07ZIhMk1JCWyUxKztQSLe20MgaUHKB7beG d9rrP2fjoqyxNeoipcBveiFLMG7XA9iYpgtWGbmf9Xh7nW8+hNUP5xtD7eOI4VSVyF9f89Crf0f8Z ldrekkC0MWkxBvTIoBCtvbOG7yqhpPiByHOxaUkr+Mg+GvLDBtGrUxmYYW5/M8QC62h/d6guTAzS8 wxEBEJpxQ==; Received: from egyptian.birch.relay.mailchannels.net ([23.83.209.56]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dugnY-0001Hx-Vq for linux-arm-kernel@lists.infradead.org; Wed, 20 Sep 2017 15:20:26 +0000 X-Sender-Id: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 89F628AA226; Wed, 20 Sep 2017 15:19:59 +0000 (UTC) Received: from hermes.aosc.io (unknown [100.96.147.55]) (Authenticated sender: lmn-TZDUIOWCRQMW) by relay.mailchannels.net (Postfix) with ESMTPA id A22138AA65D; Wed, 20 Sep 2017 15:19:58 +0000 (UTC) X-Sender-Id: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io Received: from hermes.aosc.io (hermes.aosc.io [100.96.147.1]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.9.14); Wed, 20 Sep 2017 15:19:59 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io X-MailChannels-Auth-Id: lmn-TZDUIOWCRQMW X-Celery-Attack: 564a16e140c823a2_1505920799352_1371169417 X-MC-Loop-Signature: 1505920799352:2829299989 X-MC-Ingress-Time: 1505920799351 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id A130447B7E; Wed, 20 Sep 2017 15:19:52 +0000 (UTC) From: Icenowy Zheng <icenowy@aosc.io> To: Chen-Yu Tsai <wens@csie.org>, Maxime Ripard <maxime.ripard@free-electrons.com>, Jonathan Cameron <jic23@kernel.org>, Lee Jones <lee.jones@linaro.org>, Quentin Schulz <quentin.schulz@free-electrons.com> Subject: [RFC PATCH 7/7] arm64: allwinner: a64: enable AC and Battery for Pine64 Date: Wed, 20 Sep 2017 23:18:14 +0800 Message-Id: <20170920151814.22461-8-icenowy@aosc.io> In-Reply-To: <20170920151814.22461-1-icenowy@aosc.io> References: <20170920151814.22461-1-icenowy@aosc.io> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, linux-arm-kernel@lists.infradead.org, Icenowy Zheng <icenowy@aosc.io> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts index d06e34b5d192..955f392af6a2 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts @@ -113,6 +113,14 @@ #include "axp803.dtsi" +&ac_power_supply { + status = "okay"; +}; + +&battery_power_supply { + status = "okay"; +}; + ®_aldo2 { regulator-always-on; regulator-min-microvolt = <1800000>;
The Pine64 boards (including the Plus variant) have a Micro-USB jack with it's 5V connected to the ACIN of the AXP803 PMIC and a battery connector connected to the battery pins of the AXP803 PMIC. Enable AC and Battery power supplies for Pine64, in order to monitor them in the system. Signed-off-by: Icenowy Zheng <icenowy@aosc.io> --- arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts | 8 ++++++++ 1 file changed, 8 insertions(+)