From patchwork Tue Oct 23 18:53:25 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: 10653577 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 4304F13B5 for ; Tue, 23 Oct 2018 19:47:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2EE982A352 for ; Tue, 23 Oct 2018 19:47:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 213C22A359; Tue, 23 Oct 2018 19:47:48 +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 A4C542A352 for ; Tue, 23 Oct 2018 19:47:47 +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=uRMYiPyhxfNZw7hrWDQjLDmiysnLAvqKH9GwfZ+3PAQ=; b=LqqaDveKD8Uu5ttF548wX9heBV nGcyHsgSDrfnBFVoEW9bM2lqV0robA8exiW4yIb3k+sn33SZZj9TY35pM7EL5HtRJlDNE3twPi7YK c1cho1eFP/P2AbCT8tRxlKZrrQvW7gRTc8YRcGXH6g79S9TN8gD9M64FwkI/3sXNFrVkihoH/DSvf BTaeYfLCQ3QpbQKJJFiQYAb2HZtg6GSUKlnhk9g2o84WQXW1PWZrjk5ICziJqwTc25zNu2yQqrmzs woziTsfVN7L8BcWbcy7WQwJz+IwdnvmVhcMM+mmi83lLuUV6tU/Dco5sHc3onK1ndAnpXlRSYOSDM EUxX83yQ==; 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 1gF2eU-0006XZ-UM; Tue, 23 Oct 2018 19:47:43 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gF2dj-0006HC-Ux for linux-arm-kernel@bombadil.infradead.org; Tue, 23 Oct 2018 19:46:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=WwjRIsrT6bTzhmpVumScnutjRyFGi6ZaGv0sa1O/z6Q=; b=IyTg9VRDpQIzJQFgEn+gZ0RTp 2UpX4Wk+qRqWD46tLX5ZdahLkd0kxpjen8o8dgrdBrGW5CzR17n1sx1PH5RqMzPVxbVhjQ8AB20Ex 4J2fxhfCLaI+Tm3/RCzRBuEHt06PpKrE08E624yA4++pxTRuXJaUfzCdvoyz099+3pQU4D3mMkfna MhcT30T8KRIbPcBLreDTc1q3WDejCTxd2Mmj7tSa3k9w0zz+9E5zvkQGSiM7/mvQMbWjIP2TC5ZwT AYV+RKob7SlNqtgCAc/9smcAPIeG51Zj6A3VJHef6YuMq8KLCFBjJ1bArsk4TwxSCOcMe73f+4Vdp x0T48bDWw==; Received: from mail1.kuutio.org ([92.222.216.83]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gF1p2-0003on-4a for linux-arm-kernel@lists.infradead.org; Tue, 23 Oct 2018 18:54:33 +0000 Received: from localhost (localhost [127.0.0.1]) by mail1.kuutio.org (Postfix) with ESMTP id E261D1FB8C; Tue, 23 Oct 2018 20:54:08 +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=1540320848; x= 1542912849; bh=XhBuIRDdG2aMlY9HegooyOogRtObOUjnZIit422Z228=; b=h hjVGp5OZnhpC6gRfw56rnroG8DgW+557Kvkq00g7xWxUzxtB9xBK0AasO5Py86Jz VJMBJ/zWbo9FUrbU08ubPCXic65ZKZq2FF3gVXUJly8U/ykSJYn4CIK6VPgJyBkS thnpNdoj4DNK+tuGfy4TrjJVHtTeq2pDkWuhTcOeY3gWkDpJaXspNh2zMR9fnDz6 JIpsveo7w4rHbzBBcYwX/IKrgkVoZw8FSiCKt6zIH5iBVmk6VKUka9FDI0nA0Jlv U34ojws1hmb0dNRZzFs3xX9xyQGktL0ZZLY41I15zellvq64MMmJg+bVkGY3GMeO 8zByF/s/szk1iIqkDXhQZVeS5QKvTv1Ar04ljxjTa7tSJ4u7arhSSttHDsQ899lF KyQIucdkEOLV6KGMJdt8fF2FkbOWY0XXi+O+5Ncs5UtpbH1WTEFPe4+9yWV0rgn0 8hCSBJIMI0lqKttTjPTb/DTHH3Lseglg/QWG/Df0IB6biJu/0FEzhPrV/d1VVig/ j/vWS0s03jDWQaT/CWtlXO8x5JLbwr4cVskc4dJhmhDxO6cYMGDtqKgW5RMMIryk AF7hh0sQzaUonnjLvzOGtkr6XjqAbz5qvoONcGwb0uhVJRDhWzX1wtCmgn59FiuH EuTZKbqT0bwmnu6uYd+PRjVetPthQH/Y5JhRGRZFJY= 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 vvrhnbeh7EEn; Tue, 23 Oct 2018 20:54:08 +0200 (CEST) Received: from build.kuutio.org (unknown [IPv6:2001:998:13:e4::69]) by mail1.kuutio.org (Postfix) with ESMTPSA id 791721FBA1; Tue, 23 Oct 2018 20:54:07 +0200 (CEST) From: Oskari Lemmela To: Linus Walleij , Sebastian Reichel , Rob Herring , Mark Rutland , Chen-Yu Tsai , Maxime Ripard , Jonathan Cameron Subject: [PATCH v5 06/11] arm64: dts: allwinner: axp803: add AC and battery power supplies Date: Tue, 23 Oct 2018 21:53:25 +0300 Message-Id: <20181023185330.10472-7-oskari@lemmela.net> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181023185330.10472-1-oskari@lemmela.net> References: <20181023185330.10472-1-oskari@lemmela.net> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181023_145432_460132_1CD44A04 X-CRM114-Status: UNSURE ( 9.11 ) 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, Lars-Peter Clausen , linux-pm@vger.kernel.org, linux-iio@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Vasily Khoruzhick , Quentin Schulz , Oskari Lemmela , Hartmut Knaack , 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 Tested-by: Vasily Khoruzhick Reviewed-by: Chen-Yu Tsai --- 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>;