From patchwork Mon Oct 8 18:19:04 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: 10631211 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 1B890933 for ; Mon, 8 Oct 2018 18:21:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0EF3E29931 for ; Mon, 8 Oct 2018 18:21:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0263829937; Mon, 8 Oct 2018 18:21: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=-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 9018C29931 for ; Mon, 8 Oct 2018 18:21:35 +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=fsPsQD/1MKduYgn0zNlElTiRLIqN7Ge/v13dV7bQkO0=; b=Wjb3+634yy1AkhpTlj5hefi3Do TFs+lt+zGhSglSiAZzpPT1lwG7hVq9l2XGdA4o7U2/E7vtvkgWDeEY1+sJEHmyY6hRFIgbSt+pBUk Nhd74fTPxfMnc8zxQeBlDtBXTW+K7+b5XGsWnTUWXB0NH+58LfI6tWxSC1EkAM9qp+cCx6vvTEKZN rlAPL0uEb3NdiZKsQTSDB4fxjCX2PH4GJdrxOEwLG+1cYSQI4kQgPNPxNcnPaFkap1hXkBr1Aj698 qeDbqQ1VlitpR2j6Mzz1RAtSL2KfmqjKpw1t+/AJlEA/vVzcZu6faxG442+EUoW+0Ytio51dq9bqm 74OUg/0g==; 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 1g9a9r-0002yc-4M; Mon, 08 Oct 2018 18:21:31 +0000 Received: from mail1.kuutio.org ([2001:41d0:401:3100::431a]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9a8e-00012j-Nt for linux-arm-kernel@lists.infradead.org; Mon, 08 Oct 2018 18:20:51 +0000 Received: from localhost (localhost [127.0.0.1]) by mail1.kuutio.org (Postfix) with ESMTP id 3C33C20B70; Mon, 8 Oct 2018 20:20:02 +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=1539022801; x= 1541614802; bh=hEUYMo1Vz1NId4TzMsdN8D77MBMdDVkUeXmyqIkV8KM=; b=X w6GkDyQzP+EcZ69C3YCqCsKlhpKn3hGfJtPGiNrU13VAO1/lE/5HUsV/wQrWGYuA lsNAeCe5CgupCV/tbGqFQvIeWVB1XkFhmiAAMlnJjcwOWfwYu4lz/ThNCRgFQzKT taU70qsKo9qzsgD+Da3W4vY17a0mIVvT+Gw045lecAHizLAM9t5sjT5Zqpp7cNFL shXoN7pZlOhZ8AtvSDMt3sxs00WPrCtIkxIA6/pvJ3XUZz61zqGey+YEGdrydDFV +pvBqxD5yymgT50QXRuAJDcvtPAsgSErFmSEYW67apzS6sU9PltYDl+WEuO6mans X9g3pUDeO0/xXwB1eUivwxJH3Es8jOev1Q0k6xizHxXhpN55KbWDn2mwhAuSmx/2 jm19W+5hGzDIuomFJ4RUQXhzZXleQwGblJh8z3e1WpU2DfUFsJGBvvTmCaui+uzI eLt0k0QQDGrOO+H+Xc0EHJtTeNKwmWIpIyfbCl8HGahllpJHOgZBZ0QzlZpH41mu r3sa+JQ9Fidrr8BKDZbx367DKvkq7ktNtVMCILFnjCwHerbAcY7AAJTOK1N6XkYu TBNUX/rVfNS9egfZr4/RNwjnUyoc0eHmtgXkq/tXQ+ikb6dQ0If5WvCDxiWbQtvJ YFUylqnYTW4xALs8b8slXOe+Ws1VYnCiLP2w9faTbc= 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 JfW5OItQrX0l; Mon, 8 Oct 2018 20:20:01 +0200 (CEST) Received: from build.kuutio.org (unknown [IPv6:2001:998:13:e4::69]) by mail1.kuutio.org (Postfix) with ESMTPSA id D626220791; Mon, 8 Oct 2018 20:20:00 +0200 (CEST) From: Oskari Lemmela To: Sebastian Reichel , Rob Herring , Mark Rutland , Chen-Yu Tsai , Maxime Ripard Subject: [PATCH v3 3/7] arm64: dts: allwinner: axp803: add AC and battery power supplies Date: Mon, 8 Oct 2018 21:19:04 +0300 Message-Id: <20181008181908.9456-4-oskari@lemmela.net> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181008181908.9456-1-oskari@lemmela.net> References: <20181008181908.9456-1-oskari@lemmela.net> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181008_112016_970208_640C6EA9 X-CRM114-Status: GOOD ( 10.67 ) 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>;