From patchwork Sun Feb 19 14:38:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jelle van der Waa X-Patchwork-Id: 9581613 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 10F3660578 for ; Sun, 19 Feb 2017 14:39:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF13428707 for ; Sun, 19 Feb 2017 14:39:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D21762870D; Sun, 19 Feb 2017 14:39:27 +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 ABE6A28707 for ; Sun, 19 Feb 2017 14:39:26 +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: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:In-Reply-To: References:List-Owner; bh=ra9mN4Pxd441It+4b6dt6b7pLGhMPo7syDiKVpZhjKQ=; b=Fo1 6aePE2JXD8WXb+yD6JLu/IvSPqwgefOC4odng9vGhOx5Zo+KlKGUfEGXPnM3SOA3hKtNOdms+FGLD RPjvigRb/z17iJeRNQoSBR4t8lFMkkrxh5cpI+CeIBJdlB+vI9Xn4GmWDVYTMjGzspdq0XXazqseR oyTD4v42k6BX4ObkOqEiFRvD0Wl3IcAEpefeLuUShfPZocx22YgxHr7h+/SI6ZnWgeDmlyJM1e66H efkAjynoz+4H1UNUWT/LifYiXuOnniiaK+wIGJxptdn6CTPwJQv6tGYikajtBUDUuEla2g5Juw6Kv +hggX8cbXQWa0q/wWOzDfhdco+p31aA==; 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 1cfSe4-0006Lu-0q; Sun, 19 Feb 2017 14:39:24 +0000 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cfSdx-0006Ig-Lw for linux-arm-kernel@lists.infradead.org; Sun, 19 Feb 2017 14:39:21 +0000 Received: by mail-wr0-x242.google.com with SMTP id s27so410287wrb.0 for ; Sun, 19 Feb 2017 06:38:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vdwaa-nl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=9GxmiV6G93onM/Po+P+i/fr75QS2Nu3OEQIzJfBEuUw=; b=lDdAdMmHZyfWa9DV5Wm5UHC7ZO1tW7w8nYlODH7EqYhK7f7ietoe7mZEsVV7Vhmr6h QL5HcoxUDuVGhqBf7yDwsbtk7eEZcGSQRwbpDoQWlSkLzZiUhgNWtRwkdiNs7/WycjKs bmNmyQgYYEOlXwQpTofv4wn3ahEnK4vWXsNcNE3V4b6GIROkIv5GmzBeYQng6eYeH8Lr Rn6QEmcEzSBn6oBiIzdlvWiZp7hom0+UQhbxpsaqqFj7zFx/7Hn6Pk6mPhjRq8619AFI mrz+vX8R9K2sSiG7w5dqku8NTVgeiKUiIy9sauXgygF/gi8tBcVHzx02AGpRun94isK2 AHSQ== 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; bh=9GxmiV6G93onM/Po+P+i/fr75QS2Nu3OEQIzJfBEuUw=; b=WYrXwcPgIfJnLdB+w5may4y9hDIvzlMvzDKZswUkCzlbTIOwSMaYmAR+SEXneBQBMT ujlAC/sIDeROQWe77a2/ZfGM9TQOA5CG5uizkp3sPVA8inDd6arCz3EQQmm0XBOwfOMP A5XvSN6yRk5ntXTaHbRXxocFDf8DhhI3m+ZsJ0RT9GKhbLehXYrengFQ4md/FjXvUqqi xqrnsAw6+AbsLtQhBkoRGbMmoyFk3lgBiydCXSxTNLMqUYFxyyRt33SHP9SaXXme68LL YqGU7lKrBR78bOom6NQzFWLPlXYDo5BVleONHSykD+jR5YZaly91sW5Z6pP0Cc6NmEMK 2stg== X-Gm-Message-State: AMke39nxLVq0Rf+jdTbUEkMa9ePIIA0x2iqm889MMZ0aDUPwJl7ORASCuMQWmrkdjUPWWQ== X-Received: by 10.223.167.138 with SMTP id j10mr9906549wrc.178.1487515134184; Sun, 19 Feb 2017 06:38:54 -0800 (PST) Received: from localhost (535537FC.cm-6-6a.dynamic.ziggo.nl. [83.85.55.252]) by smtp.gmail.com with ESMTPSA id q4sm21006635wrc.35.2017.02.19.06.38.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 19 Feb 2017 06:38:53 -0800 (PST) From: Jelle van der Waa To: Maxime Ripard , Chen-Yu Tsai , linux-sunxi@googlegroups.com Subject: [PATCH] ARM: dts: sun8i: NanoPi NEO Air add WiFi / eMMC Date: Sun, 19 Feb 2017 15:38:48 +0100 Message-Id: <20170219143848.25911-1-jelle@vdwaa.nl> X-Mailer: git-send-email 2.11.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170219_063917_878507_E455EE05 X-CRM114-Status: UNSURE ( 8.48 ) 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-arm-kernel@lists.infradead.org, Jelle van der Waa 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 Enable the WiFi (AP6212) chip and eMMC support for the NanoPi NEO Air. Signed-off-by: Jelle van der Waa --- arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts | 45 +++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts b/arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts index 3ba081c1f555..3813156f5d35 100644 --- a/arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts +++ b/arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts @@ -73,6 +73,13 @@ gpios = <&pio 0 10 GPIO_ACTIVE_HIGH>; /* PA10 */ }; }; + + wifi_pwrseq: wifi_pwrseq { + compatible = "mmc-pwrseq-simple"; + pinctrl-names = "default"; + pinctrl-0 = <&wifi_en_nanopi_neo_air>; + reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>; /* PL7 */ + }; }; &mmc0 { @@ -85,6 +92,44 @@ status = "okay"; }; +&mmc1 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc1_pins_a>; + vmmc-supply = <®_vcc3v3>; + vqmmc-supply = <®_vcc3v3>; + mmc-pwrseq = <&wifi_pwrseq>; + bus-width = <4>; + non-removable; + status = "okay"; + + brcmf: bcrmf@1 { + reg = <1>; + compatible = "brcm,bcm4329-fmac"; + interrupt-parent = <&pio>; + interrupts = <6 10 IRQ_TYPE_LEVEL_LOW>; /* PG10 / EINT10 */ + interrupt-names = "host-wake"; + }; +}; + +&mmc2 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc2_8bit_pins>; + vmmc-supply = <®_vcc3v3>; + vqmmc-supply = <®_vcc3v3>; + bus-width = <8>; + non-removable; + status = "okay"; +}; + +&r_pio { + wifi_en_nanopi_neo_air: wifi_en_pin { + allwinner,pins = "PL7"; + allwinner,function = "gpio_out"; + allwinner,drive = ; + allwinner,pull = ; + }; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pins_a>;