From patchwork Fri Apr 7 18:34:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 9670235 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D83D8602A0 for ; Fri, 7 Apr 2017 18:38:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CEF5928633 for ; Fri, 7 Apr 2017 18:38:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C320328639; Fri, 7 Apr 2017 18:38:42 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 2D2B928635 for ; Fri, 7 Apr 2017 18:38:42 +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=wimboBMPLNU1Dwqjbz2VNhiWvBLd6DFEsQNRDCOyVvc=; b=NAK7cQAIUk4jNrsLO2qpDTUveA mw+GJ+N/VHavdG7sN0Hw0at8IIRNG186jzoXyZkk3eNjODG1h1oAPoCKn3/zK9tX+nlJfzDWpi9XW j6suVCrIxsyoTk6RMjZgSrBqvcRmLt3c3S4iiEFtkyn4GsdlhtCK7wyLlFoAZlkno/rqSNlpNlJkH 34oHRQknaajfUrPK0pI0yaMJPNjwxexrndzkCymTy1X2Y1keFqPw8ZV/ezoe8156l3RPch8cOHeFu IIpGHpWmI3VmoE9tf2lwkUTVNjWc8QaZuFJ+WAqxnPWVcC7sjwMJSKDbmkYNtprdvVID27N/wJSJ2 Zt0AQlgQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cwYmK-0007bY-Gd; Fri, 07 Apr 2017 18:38:36 +0000 Received: from nov-007-i592.relay.mailchannels.net ([46.232.183.146]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cwYmC-0007Da-21 for linux-arm-kernel@lists.infradead.org; Fri, 07 Apr 2017 18:38:34 +0000 X-Sender-Id: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 0277920354C; Fri, 7 Apr 2017 18:38:01 +0000 (UTC) Received: from hermes.aosc.io (unknown [100.96.137.101]) by relay.mailchannels.net (Postfix) with ESMTPA id D6C04202E9A; Fri, 7 Apr 2017 18:37:59 +0000 (UTC) X-Sender-Id: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io Received: from hermes.aosc.io (hermes.aosc.io [172.20.61.168]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.7.37); Fri, 07 Apr 2017 18:38:00 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io X-MailChannels-Auth-Id: lmn-TZDUIOWCRQMW X-Harmony-Language: 35891fac3c75d209_1491590280567_2383166869 X-MC-Loop-Signature: 1491590280567:1109666926 X-MC-Ingress-Time: 1491590280567 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id BE9A244FCB; Fri, 7 Apr 2017 18:37:52 +0000 (UTC) From: Icenowy Zheng To: Lee Jones , Rob Herring , Chen-Yu Tsai , Maxime Ripard , Liam Girdwood Subject: [PATCH v2 11/11] arm64: allwinner: a64: enable Wi-Fi for Pine64 Date: Sat, 8 Apr 2017 02:34:41 +0800 Message-Id: <20170407183441.58750-12-icenowy@aosc.io> In-Reply-To: <20170407183441.58750-1-icenowy@aosc.io> References: <20170407183441.58750-1-icenowy@aosc.io> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170407_113830_264141_91FFFCA6 X-CRM114-Status: UNSURE ( 6.45 ) 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, linux-sunxi@googlegroups.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Icenowy Zheng 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 The Wi-Fi modules of Pine64 is powered via DLDO4 and ELDO1 (the latter one provides I/O voltage). Add device node for it. Signed-off-by: Icenowy Zheng --- arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts index 7da074f95065..9d90bb32aa87 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts @@ -64,6 +64,11 @@ regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; }; + + wifi_pwrseq: wifi_pwrseq { + compatible = "mmc-pwrseq-simple"; + reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */ + }; }; &ehci1 { @@ -91,6 +96,17 @@ status = "okay"; }; +&mmc1 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc1_pins>; + vmmc-supply = <®_dldo4>; + vqmmc-supply = <®_eldo1>; + mmc-pwrseq = <&wifi_pwrseq>; + non-removable; + bus-width = <4>; + status = "okay"; +}; + &ohci1 { status = "okay"; };