From patchwork Sat Oct 13 08:08:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Oskari_Lemmel=C3=A4?= X-Patchwork-Id: 10640027 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 281D914E2 for ; Sat, 13 Oct 2018 08:11:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1504F2B1C3 for ; Sat, 13 Oct 2018 08:11:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 077802B201; Sat, 13 Oct 2018 08:11:42 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 906EA2B1C3 for ; Sat, 13 Oct 2018 08:11:41 +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=2Ncxrc6pjqJ0gEgQT/uBif1JBg0D3qOLSPa2yvtWdw8=; b=Nkmzr/GAOsio8yhtPq/P8EGuhz D37/ESm4m1fmINRzBenogYj5XvYpE3ARm+9zqvYy6Km8P803oEbAfDZGUrJ/EhuMogQQVRAd/yebQ RnqL3RdGwdeNUY5+yyKzq2VVDMmngRShDpy/vBOjQZBOjjQ+sSPev6M3VC7fhMjh/zzho8wAGw/q3 gkuZ5yWY/R5vIQsuF+7ggxtLBBfB1t+YwtuLQDfHJ93jEkYbwx/z2hWqrOhdD2wSjyutSWx09nTHn eeYuR32MuKXdZMQz/iOUeWAoI/X8HVxCXavuq9JEywU7M4No/TGbcj7hy5/ZT3/g1e5QuWpOOlA92 fNTYQOpQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gBF1F-0001E2-NQ; Sat, 13 Oct 2018 08:11:29 +0000 Received: from mail1.kuutio.org ([92.222.216.83]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gBEze-0007hy-MV for linux-arm-kernel@lists.infradead.org; Sat, 13 Oct 2018 08:09:54 +0000 Received: from localhost (localhost [127.0.0.1]) by mail1.kuutio.org (Postfix) with ESMTP id 194432092C; Sat, 13 Oct 2018 10:09:34 +0200 (CEST) Authentication-Results: mail1.kuutio.org (amavisd-new); dkim=pass (4096-bit key) reason="pass (just generated, assumed good)" header.d=lemmela.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lemmela.net; h= references:in-reply-to:x-mailer:message-id:date:date:subject :subject:from:from:received:received; s=dkim; t=1539418173; x= 1542010174; bh=n0Xmd7FY193JX3x7QDQasOjJ464JZkigDA3BIx9ytj0=; b=b rIVdavjE+NwgO0XgleVrIdL6uRCKzklO457+aXJX5z9C9e/sOKuIgcvy5iO7JGLN nQpNU695tZ6l1TkV0qwik1SbOKXDOQzsTsWKN07scpZMbEfPWet0lWl2vKdnY16E mRqx4cvP6bLjhVh5rkLqnnuIfG1W2lqPRmy0LKenGe279Js9GjA9+Ef7t5SBBx+L 1WCyw321PvXzHl+kRM0Jet+h+b7Vdov0BgK4mo/QTqHwH2ArLJuJ3vl80F+wkBhz n7J5H++IqQK4aRzAAqzyHwY6Yq+e4CD/DpBZ1iEU1bMa/xsgCfQPm6PB16S1J2kR xuenvId1Gl9Zm/ipvP5RpT7GBOqvly1ElPzzLgmQyJVh+gTNIXYRHEM60jUnsLzN uEwOKL/et+FmZnfKpE9w4iba+/HjfDbnkkXmvu5yL0Rb9sxdZleJU6IWKsZHH4WR eJuzvb6OpOTB+Euete9+dQyqNOv0uCk5k7HTrubwX/xCVoC7I9VbOQ0SbfyiS9SP V7NQgP1BLAVfUQBHPAlAnaTgM6WIJCB7/xQYvhnbgf+6DNxF80CJuV0plUd85pDZ ccqNO7D922Mq7nJjHIO7J1opWMj7Nl/DOXRm5J8gg+8VVI97PZmrA2W54CdTxGbp G8kBYxBN1heDvEz6EVo7/fxIC/HxbhAC05LAai3n2Q= X-Virus-Scanned: amavisd-new at kuutio.org Received: from mail1.kuutio.org ([127.0.0.1]) by localhost (mail1.kuutio.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id S9_uVqHw9KHL; Sat, 13 Oct 2018 10:09:33 +0200 (CEST) Received: from build.kuutio.org (unknown [IPv6:2001:998:13:e4::69]) by mail1.kuutio.org (Postfix) with ESMTPSA id E3C1E1F99C; Sat, 13 Oct 2018 10:09:32 +0200 (CEST) From: Oskari Lemmela To: Sebastian Reichel , Rob Herring , Mark Rutland , Chen-Yu Tsai , Maxime Ripard Subject: [PATCH v4 3/7] arm64: dts: allwinner: axp803: add AC and battery power supplies Date: Sat, 13 Oct 2018 11:08:44 +0300 Message-Id: <20181013080848.29894-4-oskari@lemmela.net> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181013080848.29894-1-oskari@lemmela.net> References: <20181013080848.29894-1-oskari@lemmela.net> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181013_010950_926914_4014F966 X-CRM114-Status: UNSURE ( 9.96 ) 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-kernel@vger.kernel.org, Quentin Schulz , Oskari Lemmela , Lee Jones , 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 AXP803 is compatible with AXP813. Add DT nodes ADC, GPIO, AC and battery power supplies. Signed-off-by: Oskari Lemmela Reviewed-by: Quentin Schulz --- arch/arm64/boot/dts/allwinner/axp803.dtsi | 31 +++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/axp803.dtsi b/arch/arm64/boot/dts/allwinner/axp803.dtsi index e5eae8bafc42..128177178615 100644 --- a/arch/arm64/boot/dts/allwinner/axp803.dtsi +++ b/arch/arm64/boot/dts/allwinner/axp803.dtsi @@ -49,6 +49,37 @@ interrupt-controller; #interrupt-cells = <1>; + ac_power_supply: ac-power-supply { + compatible = "x-powers,axp813-ac-power-supply"; + status = "disabled"; + }; + + axp_adc: adc { + compatible = "x-powers,axp813-adc"; + #io-channel-cells = <1>; + }; + + axp_gpio: gpio { + compatible = "x-powers,axp813-gpio"; + gpio-controller; + #gpio-cells = <2>; + + gpio0_ldo: gpio0-ldo { + pins = "GPIO0"; + function = "ldo"; + }; + + gpio1_ldo: gpio1-ldo { + pins = "GPIO1"; + function = "ldo"; + }; + }; + + 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>;