From patchwork Sat Oct 6 21:18:33 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: 10629329 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 399CF112B for ; Sat, 6 Oct 2018 21:21:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 293F528C1C for ; Sat, 6 Oct 2018 21:21:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1CEE928C2A; Sat, 6 Oct 2018 21:21:21 +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 AE8BA28C1C for ; Sat, 6 Oct 2018 21:21:20 +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=Op20QSML8utuQxbHdWKHrrQdlR9Tfic80X7hRuHcmsM=; b=JfRiV8o0gMmUgLROKjct18qjqv J5e6FHd/wTVvZLBKHsXXUDz6kB+BUrTUROb5e/Th85jHyEJV3QBEwzLWkonLMLrHSwWNaneGe8YII hjNhOJqV1cawTrO2o0kclX0r7CkM2Wg71niRvY3wnFw/hj4f22fR8Bes/KzdiTBymVHrgOmgFqIlV xRxyEKxDQqwVeo/c9jT0ELuTYF0rFStt6HHtbIS3ATQnHXvusg3VRokyHSn6Q4wRDNsqsQcy0gXtv eLGNUuvHCrtVpR+PLzcO4gGu4uWGWTHc/QXnY5fIvsbKv+st1fLgWE9iNqqaPArMopB6zxOKYVp0m H4413X9w==; 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 1g8u0W-0007xI-N1; Sat, 06 Oct 2018 21:21:04 +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 1g8tzr-0006ki-7c for linux-arm-kernel@lists.infradead.org; Sat, 06 Oct 2018 21:20:25 +0000 Received: from localhost (localhost [127.0.0.1]) by mail1.kuutio.org (Postfix) with ESMTP id 942601F99C; Sat, 6 Oct 2018 23:20: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=1538860807; x= 1541452808; bh=W+ktF4hdPsTh260RGfj4QSBAZhAjSZBjQblCUDMIGJE=; b=M VJrHLV3wpkl4WJhcfFA31P6sGQKFpxlwSBwGLMqWFoqDQxQ3aquKVG39XGwpPjYD McLMr8MdvoYg9guvk4xogT7YrRmLUtNWOLngyepEKB9tdy61SNaGwDnVY4wygVVJ s3OIJWLD61mmHAt20oKdN6GO4O6JX5F0OSNGSQF9SOClEX1OYNZWQJHBnxeF5YPU oUO9R5bOiO/WeGtQg4lS9DVyuVGBPx6pK3WtNJ4JYfxdUQXToAKgzUzdzKf4bNJb AFO2MrM3ss/ym5ZvBI77pH3oO9S8OgkNsF8IjPZGsFfZg2jDHQ9haN2Pmih6kteN XOJ0nDwF92e/6gHWN5GEoj2gGyLDjkqNyWDz4mDJcew8Iqz9Y1v7pMjdcQ/Sjtdu MuiuuXJ8a5iPqcgAk0CFCvbqM/00fZ8xqhh5IKs99TL9qopGgQYiRDD+HyRIdqmk nmK7WJzQ9tdUVf/MPfZdnRPX0d+QpQraKKbEoD5Nqgto3vYMwKkyanD7Qw/iiNF9 0VHB7lOQ4nuoTJEFnxH8ptH8V0F4qLfp93w8Slh6eV0eDCnNeQDcgqL4rdbmEOJ9 vOb2gUwH8eNvUQDwro4d46Lpyi4jmLeyNxn/5n5Xo4ftmLkgmJn2W78QDvcjcR1O SXtnciSEDb9pXc+aqvnZgHzww3GEVQPiCYludrfZSM= 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 pB62PhBHXOSq; Sat, 6 Oct 2018 23:20:07 +0200 (CEST) Received: from build.kuutio.org (unknown [IPv6:2001:998:13:e4::69]) by mail1.kuutio.org (Postfix) with ESMTPSA id 4B0C11FBED; Sat, 6 Oct 2018 23:20:07 +0200 (CEST) From: Oskari Lemmela To: Sebastian Reichel , Rob Herring , Mark Rutland , Chen-Yu Tsai , Maxime Ripard Subject: [PATCH v2 3/6] arm64: dts: allwinner: axp803: add AC and battery power supplies Date: Sun, 7 Oct 2018 00:18:33 +0300 Message-Id: <20181006211836.28253-4-oskari@lemmela.net> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181006211836.28253-1-oskari@lemmela.net> References: <20181004193410.7265-1-oskari@lemmela.net> <20181006211836.28253-1-oskari@lemmela.net> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181006_142023_457836_9106826C X-CRM114-Status: GOOD ( 10.33 ) 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 --- 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..533987b2fe7a 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>; + 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"; + }; + }; + + ac_power_supply: ac-power-supply { + compatible = "x-powers,axp813-ac-power-supply"; + status = "disabled"; + }; + + 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>;