From patchwork Tue Apr 4 18:01:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 9662351 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 40283602B9 for ; Tue, 4 Apr 2017 18:08:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 352F028520 for ; Tue, 4 Apr 2017 18:08:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 29DDD2852A; Tue, 4 Apr 2017 18:08:14 +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 D359828520 for ; Tue, 4 Apr 2017 18:08:13 +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=A1wvfWSvMrcvE8V3nYspvkBjTe tql3pJNJYuEOA41CdKVqcyjFErP2XnzYbwvrCaU45v3DU7lqNJhFiy2qo3pCcKVR6eCnaw6KLyct3 L/8lBwpWgFfH3LlcTHiQxvmidRNhrsqP+VBQOlfMFAGfysC7qp6QFA+e2aturu8qCFjHpxDk9SynA IFadT6AbsjV47wQVZLPvib2R1KudRPL4S5g3zEnSkZr+36wXo/hjG58VLTB7dDXQsfeSx0vYe5PXf e4AAUN2cF0dGIIk+VEcv09wgm6zwV1h7bmjSl1vMt7vkED4SogVxR6sAvzUIHOjAOazdjmIJ9kxZH V7DXp3Ow==; 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 1cvSsF-0000Kk-RX; Tue, 04 Apr 2017 18:08:11 +0000 Received: from cat.maple.relay.mailchannels.net ([23.83.214.31]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cvSrt-00081x-3c for linux-arm-kernel@lists.infradead.org; Tue, 04 Apr 2017 18:07:59 +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 F0FDF3641D9; Tue, 4 Apr 2017 18:07:23 +0000 (UTC) Received: from hermes.aosc.io (unknown [100.96.128.154]) by relay.mailchannels.net (Postfix) with ESMTPA id 12644363D40; Tue, 4 Apr 2017 18:07:22 +0000 (UTC) X-Sender-Id: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io Received: from hermes.aosc.io (hermes.aosc.io [172.20.63.14]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.7.39); Tue, 04 Apr 2017 18:07:23 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io X-MailChannels-Auth-Id: lmn-TZDUIOWCRQMW X-Interest-Thread: 7282db102adf08ab_1491329243781_1242134256 X-MC-Loop-Signature: 1491329243781:2333476174 X-MC-Ingress-Time: 1491329243781 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id E9EFA44002; Tue, 4 Apr 2017 18:07:13 +0000 (UTC) From: Icenowy Zheng To: Lee Jones , Rob Herring , Chen-Yu Tsai , Maxime Ripard , Liam Girdwood Subject: [PATCH 11/11] arm64: allwinner: a64: enable Wi-Fi for Pine64 Date: Wed, 5 Apr 2017 02:01:45 +0800 Message-Id: <20170404180145.12897-12-icenowy@aosc.io> In-Reply-To: <20170404180145.12897-1-icenowy@aosc.io> References: <20170404180145.12897-1-icenowy@aosc.io> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170404_110749_753232_7ECBD852 X-CRM114-Status: UNSURE ( 6.21 ) 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"; };