From patchwork Fri Sep 1 16:30:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Rossak X-Patchwork-Id: 9934833 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 EC9AB6038C for ; Fri, 1 Sep 2017 16:31:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DDA7826256 for ; Fri, 1 Sep 2017 16:31:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D1B0526419; Fri, 1 Sep 2017 16:31:17 +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=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED 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 6308F26256 for ; Fri, 1 Sep 2017 16:31:17 +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=ldMqMZbyqWNBldEgK7MoGXO7Kgo0jA787hd4uuIJQ2Q=; b=kMSKUXy8HuIWtxS4fFNolygBpo RnO6WWOz1UXp7kwr/REJGUy53nv74E3951D+Z3T8FhYtWOLaaKRju0DhX1Sl6MCsB5MhqDdzgXnYz NMaiIgABb0Uk6bUQcwRlC2tKZ6ZYZRM0uRW6SypcZGcDKLDfH+KdnxrTLbgKLQdku77s1k9PI2NQ1 Gdz8nSO0wZOgls+2V6/VivsrHc3al+H539/BNGv4bFv79AnVEf7gsSbUiSCeRvq9v43KVZqZ+ZgV4 xqvzzn3IzP9azvYQd9uD0zTWN7jLg2xt+mTXWQwAnORUj82f0RFX+R3MhHEulMw5A/75SbKcrxjYk k9t/5kWA==; 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 1dnoqe-0000Ze-0o; Fri, 01 Sep 2017 16:31:12 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dnoqO-0000CD-Rt for linux-arm-kernel@lists.infradead.org; Fri, 01 Sep 2017 16:31:01 +0000 Received: by mail-wm0-x244.google.com with SMTP id u26so633825wma.5 for ; Fri, 01 Sep 2017 09:30:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=r0HSkGavgMN+EZhQEi/Hj257DWJxWSrQD73ySUQxRQI=; b=r0o/Klt3HrOiYqZynNf6c3NDprdguQTl2X+5PHJKYk9RuS4NfMzsx7o04U1l4I51dB y1emh7lRSu5wX1gzl4BH/euA3P+fanlAAmjN/I+Ud/axNDW1Vju7NxIIevZhJa0Td7oz oBSgQV/l2Rqyq+Z8s8XSjEIQ4jfjSI+oMZNWdm3kk8+AJMW2aBcZMHUy6r+WoolScC3L jm2WcQ98NjYhsHUMdTdU8cdK04HE85odAU2DbArZkq3tBSaAAaiKa40drLiVz/7I4Fdr UMUnpZxLPpgz8cP1pMFWjZVHwzNuWsihBI2nv4k+cwLRlx0dkKz+ZBIovt3yzyajn4/G g2ZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=r0HSkGavgMN+EZhQEi/Hj257DWJxWSrQD73ySUQxRQI=; b=WmQqjDCVAwUP86v5rBiXvwPraR7mV/GO3dAIYKiW+AUwUZze2VRXcUGkhb80e3phs6 /ToHrxpz57/ggG3tBdKWvAe5R6iWBv4yDqhSBNLXYdaUKkw8bCE3B01TbkKYMUZQj0YR m8iuL4wdrjRNZomf4sDwxsbRVpQFn7bYh0j60c3Tjp/88/smm/yN6rmzRDfr5YNUtV7j xsNpCKaT00ybss3DkVgImjKve6cA7TSUTxZuUehVMl46v2atdYdP+AH3IRckmr9fr+1p u3bgiGXHimMUkj1oalt6jkfUFbeqXrjTaOuzcYWnTw+omNeFb/ZeJ5uRp+qokKa2cS/+ 7kFg== X-Gm-Message-State: AHPjjUjGVrOAqGQuqg95rVSBUk16E2P+xEnnckkvcg6B5+KwMoVFiKMU G8MGj+pXNXWQJw== X-Google-Smtp-Source: ADKCNb4qlIiQMORAtrmeRzj8DXWSa6tQLWG+3sX+SDqTFiV3y3eltlwVDAWsldskHVcX9hOZaJc4KQ== X-Received: by 10.28.153.202 with SMTP id b193mr755783wme.117.1504283435130; Fri, 01 Sep 2017 09:30:35 -0700 (PDT) Received: from philipp-K52Jr.fritz.box (p5B3DD0C2.dip0.t-ipconnect.de. [91.61.208.194]) by smtp.gmail.com with ESMTPSA id 13sm530854wms.22.2017.09.01.09.30.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 01 Sep 2017 09:30:34 -0700 (PDT) From: Philipp Rossak X-Google-Original-From: Philipp Rossak < embed3d@gmail.com > To: robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, maxime.ripard@free-electrons.com, wens@csie.org Subject: [PATCH v2 1/2] ARM: dts: sun8i: h3: Enable AP6212 WiFi on mmc1 on Nanopi M1 Plus Date: Fri, 1 Sep 2017 18:30:00 +0200 Message-Id: <1504283401-4263-2-git-send-email-embed3d@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1504283401-4263-1-git-send-email-embed3d@gmail.com> References: <1504283401-4263-1-git-send-email-embed3d@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170901_093057_486594_91931090 X-CRM114-Status: GOOD ( 10.46 ) 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, Philipp Rossak , linux-kernel@vger.kernel.org, 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 From: Philipp Rossak The WiFi side of the AP6212 WiFi/BT combo module is connected to mmc1. There are also GPIOs for enable and interrupts. Enable WiFi on this board by enabling mmc1 and adding the power sequencing clocks and GPIO, as well as the chip's interrupt line. Signed-off-by: Philipp Rossak --- arch/arm/boot/dts/sun8i-h3-nanopi-m1-plus.dts | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3-nanopi-m1-plus.dts b/arch/arm/boot/dts/sun8i-h3-nanopi-m1-plus.dts index 6256f55..7d18c35 100644 --- a/arch/arm/boot/dts/sun8i-h3-nanopi-m1-plus.dts +++ b/arch/arm/boot/dts/sun8i-h3-nanopi-m1-plus.dts @@ -48,6 +48,13 @@ aliases { serial1 = &uart3; + ethernet1 = &sdio_wifi; + }; + + wifi_pwrseq: wifi_pwrseq { + compatible = "mmc-pwrseq-simple"; + pinctrl-names = "default"; + reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>; /* PL7 */ }; }; @@ -65,6 +72,24 @@ status = "okay"; }; +&mmc1 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc1_pins_a>; + vmmc-supply = <®_vcc3v3>; + mmc-pwrseq = <&wifi_pwrseq>; + bus-width = <4>; + non-removable; + status = "okay"; + + sdio_wifi: sdio_wifi@1 { + reg = <1>; + compatible = "brcm,bcm4329-fmac"; + interrupt-parent = <&pio>; + interrupts = <6 10 IRQ_TYPE_LEVEL_LOW>; /* PG10 / EINT10 */ + interrupt-names = "host-wake"; + }; +}; + &ohci1 { status = "okay"; };