From patchwork Thu Mar 23 21:24:44 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: 9642071 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 4D8B5602D6 for ; Thu, 23 Mar 2017 21:25:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3E9ED2833B for ; Thu, 23 Mar 2017 21:25:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 334162845B; Thu, 23 Mar 2017 21:25:21 +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 68EF52833B for ; Thu, 23 Mar 2017 21:25:20 +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=oPTNz6WSELihpEawG1NADQAM36il5gbnyTAKQO4/nfU=; b=EWnrLLX+974X0VJ36gZKZWtE8q LnEWWjnhTGObZhgMbU8dl+FsTsM7DTm/Od1E03Sae39VcVkgHy8vlnyUImS/4SXajPQGVoC11w1Ns 41jjs5tWriFukViSiT8sVr90k/6y876OxP7cV74vlzJqH/0uDqy+PTRWxWDVtYNkUDyX0MVE3vK51 ck2w/mvQu7HWWavlBiqE8nyNPS5yxUjAG7MoUCTqU9zadZSniGItz2FtsgNy4D60dvnpA1qW6VNY1 VV8fNwPGDZ+fwHQbOukWkJtu11RTyEotyO+qCEw/FJPhVAELmlx6IF4SE1vnWm5yRvtfgiCfwT2IB ChfnK52Q==; 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 1crAES-0004wR-44; Thu, 23 Mar 2017 21:25:20 +0000 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1crAEM-0003iF-Du for linux-arm-kernel@lists.infradead.org; Thu, 23 Mar 2017 21:25:17 +0000 Received: by mail-wr0-x244.google.com with SMTP id u108so33102312wrb.2 for ; Thu, 23 Mar 2017 14:24:53 -0700 (PDT) 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:in-reply-to:references; bh=5+OgfL5fIiqVKrp9khP4cYHr4M0aVCKf+fJur71uDqg=; b=McqzgCRWuSnasTHPnNMniaAet2oJOjTsYPOfb8xReJWbkqsL7nFeLNO93Y3mN0FEj4 zBDuLVd2mPFPyoz02e7Mrb1kM6VFODohkofogolVK2TW3/E3dI8WpYOL5kWHdwS9Z+P6 1O+ayHkXjinPEdg4Wc6h4MtAYk2N6tKtL5kKwdpcvIMR/18CNvKWHP879BPaZH9MHxzT 4vY0iwaz+BzbdegrmyQDCwvUstNMrSxFCKbkQ6YbEQGdjOVUu6G0FhLl7h6RjvSbns6/ rlKfJssZRMxuIdypAbUmuVi6o9ZLbo9k53dzsLG9pcTEiHp5x9HVaAuIEpsWcbPcw78h GYRg== 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=5+OgfL5fIiqVKrp9khP4cYHr4M0aVCKf+fJur71uDqg=; b=BkFq//0RThgDaEX66qPRZQNxEWf2z1+c2f5dD54J+Z+8SFvvPQ9g3Pdm0EqsO/xuzM glrIhatxF3ynwiggD2ea3WeENZSWstB5iIa45EVW8WWhtFmb9pE0gX3StcpsS9zUs/nr 57c8JSSsdCG2CifmGSKB4oCi7yvrTJB3w9SLYO2sgkdW1vV+b4igsUcXZXOZHx3yLPIi Nw7VZLVZJqK628sJowIB5bSWsLlyk27/5p7Ur1ZaVQeP1gvz51igmFMKqgENmka250Ra oTpuYp1S6cssJZlkCWS4PNdpdKmejLu8BiFJYPLdh7znl1+/+1T9Tszfgkf7bCPbTDla Wdxw== X-Gm-Message-State: AFeK/H0HetjH+tVnGu2MPWuN4J5Lr/JCJh5Q9zZav+52Wsm2XbN4aiFUR9kADx+HyWBo8w== X-Received: by 10.223.180.86 with SMTP id v22mr4515027wrd.169.1490304292623; Thu, 23 Mar 2017 14:24:52 -0700 (PDT) Received: from localhost (535537FC.cm-6-6a.dynamic.ziggo.nl. [83.85.55.252]) by smtp.gmail.com with ESMTPSA id v186sm303444wmv.2.2017.03.23.14.24.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 Mar 2017 14:24:52 -0700 (PDT) From: Jelle van der Waa To: Maxime Ripard , Rob Herring , Mark Rutland , Chen-Yu Tsai , linux-sunxi@googlegroups.com Subject: [PATCH v2 1/1] ARM: dts: sun8i: NanoPi NEO Air add WiFi / eMMC Date: Thu, 23 Mar 2017 22:24:44 +0100 Message-Id: <20170323212444.20685-2-jelle@vdwaa.nl> X-Mailer: git-send-email 2.12.1 In-Reply-To: <20170323212444.20685-1-jelle@vdwaa.nl> References: <20170323212444.20685-1-jelle@vdwaa.nl> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170323_142514_627160_265630CE X-CRM114-Status: UNSURE ( 9.60 ) 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..457a28e56514 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 { + pins = "PL7"; + function = "gpio_out"; + drive-strength = <10>; + bias-disable; + }; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pins_a>;