From patchwork Wed Sep 20 15:18:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 9961703 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 55C6560208 for ; Wed, 20 Sep 2017 15:25:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4765428D9B for ; Wed, 20 Sep 2017 15:25:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3C1BB28DDA; Wed, 20 Sep 2017 15:25:35 +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 5045728D9B for ; Wed, 20 Sep 2017 15:25: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=0wY0LzKrz3kNai0OuLCkK6oG5alLsmYK/sKja9W2gFQ=; b=qpavwOqC5zLHPtyHjxJf3Sg1od sQ/9yL2PdfTcm8FAR//yMEzSvtwhDw1SWh6N8fPc5gEEnQoNNrnaEPOBhFTB9nOP9WwJV3JobPUHk 33jQFnPuO+Lwjggbl931ea82FX3Bzyjgvle+U/2H0fnmEV5lwKdMsMtne5WzOHrWQmeo1P1PgFy+Z Gil/0FjKJd3vDeDxVYsxboKlcS/6IrqOkEpf7nnDjBK4QXp9YYui4Wfi3Spwx1dkINg3edIEHqX/1 MVDCZnsJdB29nzlKuiaPvyzx9uKLooWSxDJT5jl55T0WWhxGDXGsS1TRHE8lR8tYC/PyHYqegyIu2 avC4Jc8g==; 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 1dugsW-0000DQ-GS; Wed, 20 Sep 2017 15:25:32 +0000 Received: from elephant.birch.relay.mailchannels.net ([23.83.209.57]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dugnL-0003br-NQ for linux-arm-kernel@lists.infradead.org; Wed, 20 Sep 2017 15:20:50 +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 A7532109A0E; Wed, 20 Sep 2017 15:19:49 +0000 (UTC) Received: from hermes.aosc.io (unknown [100.96.138.105]) (Authenticated sender: lmn-TZDUIOWCRQMW) by relay.mailchannels.net (Postfix) with ESMTPA id B9ED0109FCA; Wed, 20 Sep 2017 15:19:48 +0000 (UTC) X-Sender-Id: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io Received: from hermes.aosc.io (hermes.aosc.io [172.20.62.11]) (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:49 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io X-MailChannels-Auth-Id: lmn-TZDUIOWCRQMW X-Lettuce-Left: 696e17d126d76659_1505920789469_1858432826 X-MC-Loop-Signature: 1505920789469:2121097559 X-MC-Ingress-Time: 1505920789468 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 4CC6847B7A; Wed, 20 Sep 2017 15:19:41 +0000 (UTC) From: Icenowy Zheng To: Chen-Yu Tsai , Maxime Ripard , Jonathan Cameron , Lee Jones , Quentin Schulz Subject: [RFC PATCH 6/7] arm64: allwinner: a64: add power supply nodes in AXP803 DTSI Date: Wed, 20 Sep 2017 23:18:13 +0800 Message-Id: <20170920151814.22461-7-icenowy@aosc.io> In-Reply-To: <20170920151814.22461-1-icenowy@aosc.io> References: <20170920151814.22461-1-icenowy@aosc.io> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170920_082012_457413_4119A496 X-CRM114-Status: UNSURE ( 6.46 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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 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 AXP803 PMIC features AC/USB/Battery power supplies. As we have now the device tree bindings for them, add device tree nodes for them. Signed-off-by: Icenowy Zheng --- arch/arm64/boot/dts/allwinner/axp803.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/axp803.dtsi b/arch/arm64/boot/dts/allwinner/axp803.dtsi index ff8af52743ff..3a8615231b7c 100644 --- a/arch/arm64/boot/dts/allwinner/axp803.dtsi +++ b/arch/arm64/boot/dts/allwinner/axp803.dtsi @@ -49,6 +49,16 @@ interrupt-controller; #interrupt-cells = <1>; + ac_power_supply: ac-power-supply { + compatible = "x-powers,axp221-ac-power-supply"; + status = "disabled"; + }; + + battery_power_supply: battery-power-supply { + compatible = "x-powers,axp803-battery-power-supply"; + status = "disabled"; + }; + regulators { /* Default work frequency for buck regulators */ x-powers,dcdc-freq = <3000>; @@ -147,4 +157,9 @@ regulator-name = "rtc-ldo"; }; }; + + usb_power_supply: usb_power_supply { + compatible = "x-powers,axp803-usb-power-supply"; + status = "disabled"; + }; };