From patchwork Tue Nov 20 17:52:06 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: 10691015 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 3297E15A7 for ; Tue, 20 Nov 2018 17:59:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1F4AC2AA10 for ; Tue, 20 Nov 2018 17:59:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 12E6A2AA1A; Tue, 20 Nov 2018 17:59:54 +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=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW 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 B04942AA10 for ; Tue, 20 Nov 2018 17:59:53 +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=XPCAtPU6uobHCzUVvQ3Par2ki1 +mf40RIF0vGME65uLzoms0fLXS6p8JMNduDZjSKchJAnyHxRxoPaTPmCO21trUV2/vJyQUaLA+zyu ZXxdFQJaXYffhQzBm5UKfkI9L0iS3xIsBNlJNWMRFL2/kNjzr9u7aDFRDKy3JCX3o9Sf6WXLRa+fi uKV8BrgcoeTTgKiL0WAb3qmyF9zyu6c6Hnf9JbQRgklqkXJZ07qNu9ZD52ID5vthd0uMtklDG7zE+ 1NOX3ZhcC1QxVt0v/DWhUxC7dPd8M/HquwZDm/enDbExuet5hrUILHYioLhY0FmVM+gYDgavAVmf5 b0p0YJUA==; 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 1gPAJL-0001gZ-Jp; Tue, 20 Nov 2018 17:59:43 +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 1gPAEi-0006R3-R6 for linux-arm-kernel@lists.infradead.org; Tue, 20 Nov 2018 17:55:01 +0000 Received: from localhost (localhost [127.0.0.1]) by mail1.kuutio.org (Postfix) with ESMTP id A0E791F943; Tue, 20 Nov 2018 18:52:33 +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=1542736347; x= 1545328348; bh=QYpt9U4kN0fxfLWGOuGgh6WV6Aux5m8kaZEfxenP2QE=; b=L mgm03KumE7jaGn7c64AZJQR3h4TVGb/OVIrSKFyIZ5gOBYTS2raHzdAVcKboLjCb xa1+H55WOgm0jKjxZrxiC2mssHldaYO2A0YzYK4AEj4A3KjMNnTD8l8cpnEeb4xK iVPB8gnXkeS9bEQfh4kuU/BrtEeNCsGgZ7tHfDDzCCMFIz0dqgJmGApBzQ0D+x51 0MwUTndrVLWcXI28Sag4PhNrOAQCWlHoUTOUg0HBrauDjvan0/UJe64UGOsHp+ke /z1OEKksz6mgl3zU/64t1E08QlKB6I9USvwL7eH3Cno6WcI4DZ3wUtBcHuJqXp0s IjIP/wk7lTEnQxj1MXI3FvhuSN6hgOxPxUaUVEmSJ8R/dbIGb/GG11+HGlm8QZOp QRztDkTno2/LrE281Dv4sJPnM34sCZJVB1nJN0PoKBSf3q+YLDkgjUX++nCoEURn ev+IGo5yXoTcmYmXkvgNdegzaqDHXbzcDE0nWCr70/Q07C4T1/x5ysfls8gJwDOd VfR2TXqMZDOX5ZVC9pd67UZiBUJQMdeM6daL6BVT2spvV7cI1vMG1BH8T8CVJhTs Ghhhejs4iByfKCw2K6Us8jfn1CYYgfUU01iL4DlvFyzxT9BSf2+lxdyzOtlrCpFn 9QJfgpIvXAiyQh/7VpTNyB8UVW2mI9MxaLO1jCbtN8= 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 iFqO0yA123U8; Tue, 20 Nov 2018 18:52:27 +0100 (CET) Received: from build.kuutio.org (unknown [IPv6:2001:998:13:e4::69]) by mail1.kuutio.org (Postfix) with ESMTPSA id 3DC631F99C; Tue, 20 Nov 2018 18:52:27 +0100 (CET) From: Oskari Lemmela To: Sebastian Reichel , Rob Herring , Mark Rutland , Chen-Yu Tsai , Maxime Ripard Subject: [PATCH v6 3/8] arm64: dts: allwinner: axp803: add AC and battery power supplies Date: Tue, 20 Nov 2018 19:52:06 +0200 Message-Id: <20181120175211.3913-4-oskari@lemmela.net> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181120175211.3913-1-oskari@lemmela.net> References: <20181120175211.3913-1-oskari@lemmela.net> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181120_095457_693946_EF6A18B8 X-CRM114-Status: GOOD ( 10.06 ) 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, Vasily Khoruzhick , 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 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>;