From patchwork Wed Apr 26 15:20:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 9701663 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 89E4C60245 for ; Wed, 26 Apr 2017 16:00:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7AB912847F for ; Wed, 26 Apr 2017 16:00:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6F884285EE; Wed, 26 Apr 2017 16:00: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=-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 563902847F for ; Wed, 26 Apr 2017 16:00:46 +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=Oqv4tq1+HYxvca5C/Krt6y2DevN0icg2Hpb0vTQ7TLg=; b=VrW7eqEO2NuBO9IiB4rJocW+B6 jFt8dSYvNTEXywGApej4sL6tJEDEQR0qeRXV6twz8tEt1MmmWUrJmxn/ypZzuRFLpSwhbTv2svx+D O91XVg4iydPF/XZpBfnUq74f7ekOOd/WLQS+j8GMEfKRtvs+z2VkrY13+WJsJjYdxaQKbnhyywu7d IjX9hKpP6I5OFGvx0eyBv4NbrGJKKutsYfu0/p/SI9agbfgiDHKGUvBndC7mLHiHNz/DOCXWn/CGu 8z/qhW2zXFDAbAlG9sc2wGI+0FU8dzX405Eda76snaciWL33DP0kR2gngJXxMcH+jvUwLlfd9Uol9 rwh54cjg==; 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 1d3PMz-0002JB-T9; Wed, 26 Apr 2017 16:00:45 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d3PMy-0002It-VP for linux-arm-kernel@bombadil.infradead.org; Wed, 26 Apr 2017 16:00:45 +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=jwLjp7vvY4o/tMZFW6kea1/DmwXsYSktFh3dOQUDsX0=; b=hVJ8LGwk4AX0t/DzKCWzvDXo/ fgUBv95pG3Wf2PcCjM85WOEXpIJQOj9KOrEXe5LK97Uuo4/LeEZSlehg+2jYiyNACKmvvX31xgt9l sMlKg0So4QCALH0hJgC681tZcwlrSdLDR6bnEaaoGAi81rWxCscR/IKgtNLerF7hnS+LoIaWqGXX4 OZJ9msG01KnNDEKmF0eEI9U0NJLmMz30VPkT02RdGuP/O2WQV2DyNwWM7ZNQXZhjFbOuBfQPWv95V d1xkl22LnPAHw05Ry/gyha3/T7dUzdMscE1j+RocZ08BGmdpWcUVpQx313PniDkkSkAyen0ADlIz3 2GZUberHw==; Received: from chameleon.ash.relay.mailchannels.net ([23.83.222.33]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d3Omx-0005Ln-DP for linux-arm-kernel@lists.infradead.org; Wed, 26 Apr 2017 15:23:32 +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 962588A3E0B; Wed, 26 Apr 2017 15:22:57 +0000 (UTC) Received: from hermes.aosc.io (unknown [100.96.133.226]) by relay.mailchannels.net (Postfix) with ESMTPA id AB9F68A4CC6; Wed, 26 Apr 2017 15:22:47 +0000 (UTC) X-Sender-Id: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io Received: from hermes.aosc.io (hermes.aosc.io [172.20.107.195]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.9.2); Wed, 26 Apr 2017 15:22:57 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io X-MailChannels-Auth-Id: lmn-TZDUIOWCRQMW X-Lonely-Cooperative: 0301b689574b0f59_1493220171794_2174208679 X-MC-Loop-Signature: 1493220171794:1620177900 X-MC-Ingress-Time: 1493220171793 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 2796E49690; Wed, 26 Apr 2017 15:22:33 +0000 (UTC) From: Icenowy Zheng To: Thomas Gleixner , Rob Herring , Maxime Ripard , Chen-Yu Tsai , Lee Jones , Liam Girdwood Subject: [PATCH v5 10/10] arm64: allwinner: a64: enable Wi-Fi for Pine64 Date: Wed, 26 Apr 2017 23:20:23 +0800 Message-Id: <20170426152023.41567-11-icenowy@aosc.io> In-Reply-To: <20170426152023.41567-1-icenowy@aosc.io> References: <20170426152023.41567-1-icenowy@aosc.io> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170426_112332_144814_071F6AD4 X-CRM114-Status: UNSURE ( 7.09 ) 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 module of Pine64 is powered via DLDO4 and ELDO1 (the latter one provides I/O voltage). Add device node for it. Although the Wi-Fi module is an external module which should be inserted to a header, according to my personal talk with TL Lim, he does not want this header to be used as GPIO (so it's with 2.0mm pitch, not 2.54mm as other GPIO headers). 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 abc1879e91f2..2e4f44800162 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"; };