From patchwork Sat Dec 8 17:36:12 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: 10719643 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 7760D13BF for ; Sat, 8 Dec 2018 17:38:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1973D2B037 for ; Sat, 8 Dec 2018 17:38:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0678F2B039; Sat, 8 Dec 2018 17:38:41 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 A53002B037 for ; Sat, 8 Dec 2018 17:38:40 +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=75sQVyWNcnRxm8G2SP1ZpDgArtCiciac57w913ssXpQ=; b=YdFehbaWfZixZYOOliSK08wM11 uBY3OH8mtu9rdFuMhAGpeHyWgo/08HF01MjDg0WeN16NiLJdtgT0Wb2q4hItk4HKDwPlijNY/LRe5 /cWbxaMIx8wH/9AD9AzuMevY3DKheTTwbYU7GdMuf3NmMRBrGB9/TVZxNMISE5AFZzmj5tzdN4Jyu aXlpkfh3MkkMF56ghg5xuZNZxH4ciR9sebQoeGl8oOxa/0vWEd8rQ45KRi5ndwnYRx/DsqGklc+CY rm3wCTEE3/JaPuvvRBBBSvxDPbVU8EVDYwNHEPOtrs9b+wGlCBYXs+w+ylUy6JRYDr+syCXpilfI2 jDh9qYzw==; 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 1gVgYm-0005YT-K3; Sat, 08 Dec 2018 17:38:36 +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 1gVgYX-0005KC-DT for linux-arm-kernel@lists.infradead.org; Sat, 08 Dec 2018 17:38:23 +0000 Received: from localhost (localhost [127.0.0.1]) by mail1.kuutio.org (Postfix) with ESMTP id 43D621F988; Sat, 8 Dec 2018 18:38:09 +0100 (CET) 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=1544290688; x= 1546882689; bh=QYpt9U4kN0fxfLWGOuGgh6WV6Aux5m8kaZEfxenP2QE=; b=q /u62eXUqo+65WEG/riC1UH9fT228GyddmsW4dCvPdK3M1SWkTAYuUoh+WkUWfR2E KMIL2AGWrGThV5SlhoQn/JNdoxXExim1u1jY73Lzs8kMDFc49TCqucVptjqPmyme WvgwpGaWomaRkUxwiejiy/WW+qPGdqe7p4GWiB7g7i9U1e2no1NZK7Z+q6GJpAmT yWsjhj/fEEra7VafQam8EJ6B+Ddn7Kat7VaLKb0SWy2Zs5riE/WkmsQ9LIMHdt2k BwShmI0J2m7L7ByCyhY9fRZJpChZXeEOXrwSdp6kAl+iiLFGXH1f14AhfMOTg2ND d8ksJ3UCA3ArJGo4Ip5NJz+vtoiyxELip2kfBWpTQHeEmNqC8rYB26eKEgOLb3lW jSr/1ge9Zi+dyblDIQGRWD2fsm7b6Son/YwG+z93QoRcP/vyddV8/l8Ywqkx2vw0 bpq1vQzUm04KeEmBNiZAeGRwpxT1rt2QZDRzRU/Yt2IWYTYN/HD+HtAdJ8dJJTji n9cIh3q3llgvF/l0HhsOjg8ssbS8ToubBfhXH9KU1N0CNhLEM619xRJFnjHvR+9t TOkUEvW6ialnwJM7WxvlYFu6+/E9M+61f1hTVTWfrevZxGEsPNJ3OaIVSIbCS7DX EmDa3Kb6PFApD0m/6lEi4yZ1nlpcJgc+to9uGbZggE= 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 Bfcy23ozd_Yt; Sat, 8 Dec 2018 18:38:08 +0100 (CET) Received: from build.kuutio.org (unknown [IPv6:2001:998:13:e4::69]) by mail1.kuutio.org (Postfix) with ESMTPSA id CFF8B1F965; Sat, 8 Dec 2018 18:38:07 +0100 (CET) From: Oskari Lemmela To: Sebastian Reichel , Rob Herring , Mark Rutland , Chen-Yu Tsai , Maxime Ripard , Lee Jones Subject: [PATCH v7 3/9] arm64: dts: allwinner: axp803: add AC and battery power supplies Date: Sat, 8 Dec 2018 19:36:12 +0200 Message-Id: <20181208173618.31395-4-oskari@lemmela.net> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181208173618.31395-1-oskari@lemmela.net> References: <20181208173618.31395-1-oskari@lemmela.net> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181208_093821_749854_FD2B6B17 X-CRM114-Status: UNSURE ( 9.73 ) 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, Quentin Schulz , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Oskari Lemmela , 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 Parts of the AXP803 are compatible with their counterparts on the AXP813. Add DT nodes ADC, GPIO, AC and battery power supplies. Signed-off-by: Oskari Lemmela Reviewed-by: Quentin Schulz Reviewed-by: Chen-Yu Tsai Tested-by: Vasily Khoruzhick --- arch/arm64/boot/dts/allwinner/axp803.dtsi | 33 +++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/axp803.dtsi b/arch/arm64/boot/dts/allwinner/axp803.dtsi index e5eae8bafc42..c3a618e1279a 100644 --- a/arch/arm64/boot/dts/allwinner/axp803.dtsi +++ b/arch/arm64/boot/dts/allwinner/axp803.dtsi @@ -49,6 +49,39 @@ interrupt-controller; #interrupt-cells = <1>; + ac_power_supply: ac-power-supply { + compatible = "x-powers,axp803-ac-power-supply", + "x-powers,axp813-ac-power-supply"; + status = "disabled"; + }; + + axp_adc: adc { + compatible = "x-powers,axp803-adc", "x-powers,axp813-adc"; + #io-channel-cells = <1>; + }; + + axp_gpio: gpio { + compatible = "x-powers,axp803-gpio", "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,axp803-battery-power-supply", + "x-powers,axp813-battery-power-supply"; + status = "disabled"; + }; + regulators { /* Default work frequency for buck regulators */ x-powers,dcdc-freq = <3000>;