From patchwork Tue Jul 25 12:45:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 9861955 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 965D9601A1 for ; Tue, 25 Jul 2017 12:53:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 86DCF1FF15 for ; Tue, 25 Jul 2017 12:53:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7BA52269DA; Tue, 25 Jul 2017 12:53:45 +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,RCVD_IN_DNSWL_NONE 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 187171FF15 for ; Tue, 25 Jul 2017 12:53:44 +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=NfXoncNoSm2laffl8lkXWPPVP4xbYKGrg+3w1NAQhL0=; b=OLM6jchPj5QR+v8sv3NcmlSXM4 7S7KuOMI/ZHqXcLzYLhOZMEvSoyTTP0iLyGODX+wldQip55RwhlmrDA/qFKqYHDp4O/YrXPQoKRht mh34zIg/+QKQsjSxU3DTyj3rYyu3EKzcEzgBjBAX0487uy4NDjGYo70yk5sMsNFNZyow5o61RYOa0 2+aQfz15+WYTWt2eOlpBijpLVTsXLPEVnxgTA69vHOjiueWcOzZbT15vufSu76eu9eVs3RdDfOKv+ doehytajq34x4TStKW6l6GqcgNWnZgIdeg8rn51ewxJ0oVBNnzi/t3KQu90MMbkmlNGpNZtuX7Axb yxRFlWoA==; 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 1dZzLK-0000Pb-5V; Tue, 25 Jul 2017 12:53:42 +0000 Received: from egyptian.birch.relay.mailchannels.net ([23.83.209.56]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dZzLG-0000O7-2L for linux-arm-kernel@lists.infradead.org; Tue, 25 Jul 2017 12:53:40 +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 808048A8A6B; Tue, 25 Jul 2017 12:53:16 +0000 (UTC) Received: from hermes.aosc.io (unknown [100.96.129.174]) (Authenticated sender: lmn-TZDUIOWCRQMW) by relay.mailchannels.net (Postfix) with ESMTPA id 88EC18A963E; Tue, 25 Jul 2017 12:53:11 +0000 (UTC) X-Sender-Id: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io Received: from hermes.aosc.io (hermes.aosc.io [172.20.104.49]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.9.8); Tue, 25 Jul 2017 12:53:16 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io X-MailChannels-Auth-Id: lmn-TZDUIOWCRQMW X-Blushing-Scare: 64d814f4518f363a_1500987192030_1992606531 X-MC-Loop-Signature: 1500987192030:1304870013 X-MC-Ingress-Time: 1500987192030 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 289944139D; Tue, 25 Jul 2017 12:52:55 +0000 (UTC) From: Icenowy Zheng To: Maxime Ripard , Chen-Yu Tsai Subject: [PATCH v2 3/3] arm64: allwinner: a64: add proper support for the Wi-Fi on BPi M64 Date: Tue, 25 Jul 2017 20:45:04 +0800 Message-Id: <20170725124504.40242-3-icenowy@aosc.io> In-Reply-To: <20170725124504.40242-1-icenowy@aosc.io> References: <20170725124504.40242-1-icenowy@aosc.io> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170725_055338_226458_73972A42 X-CRM114-Status: UNSURE ( 8.00 ) 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 BPi M64 has an AP6212 Wi-Fi/Bluetooth combo module, and the Wi-Fi SDIO card is connected to the mmc1 controller. The pwrseq of the mmc1 (used to reset the card) used to missing, and the out-of-band interrupt line of the card is not specified. Fix these issues for proper Wi-Fi support of BPi M64. Signed-off-by: Icenowy Zheng --- arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts index ec72ca8c8b30..4a8d3f83a36e 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts @@ -59,6 +59,11 @@ chosen { stdout-path = "serial0:115200n8"; }; + + wifi_pwrseq: wifi_pwrseq { + compatible = "mmc-pwrseq-simple"; + reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */ + }; }; &ehci1 { @@ -107,9 +112,18 @@ pinctrl-0 = <&mmc1_pins>; vmmc-supply = <®_dldo2>; vqmmc-supply = <®_dldo4>; + mmc-pwrseq = <&wifi_pwrseq>; bus-width = <4>; non-removable; status = "okay"; + + brcmf: wifi@1 { + reg = <1>; + compatible = "brcm,bcm4329-fmac"; + interrupt-parent = <&r_pio>; + interrupts = <0 3 IRQ_TYPE_LEVEL_LOW>; /* PL3 */ + interrupt-names = "host-wake"; + }; }; &mmc2 {