From patchwork Fri Aug 18 12:43:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vanessa Maegima X-Patchwork-Id: 9908569 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 3A2A960386 for ; Fri, 18 Aug 2017 12:45:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2448728C6E for ; Fri, 18 Aug 2017 12:45:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1913F28C9D; Fri, 18 Aug 2017 12:45:41 +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=-2.6 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_LOW 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 6663928CB8 for ; Fri, 18 Aug 2017 12:45:38 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=/U99LDOE7Zr07Ix2CtQ/yqh7UYoUaFuXiu2AvsoocT8=; b=jC+QD2tSVCX4pW Hh/Us0ZUaMUOpz4cqci/uXO8Ft4M/HfK1QreaIrph2+rAhhGdOmmXhrrOu2L4dXNUuADENiYiqOgF ckqr4ePYBnK2NZhoWdH/T2GpiQ8uuvAlMdgQjAgJFAAdpHS4JVPqmDjgkS9wOVl3Pr7xNP8/R1L1M VezvFj1ZkMLiVQ3fLe0Iz5RoYWeucy8dNIHJ5D4OWH3NF79fRD0Z7H+O/IolqTBqPbyR6DMKM47vW Su7j8ZCh8i26tftnWSNsanBhzOU0n+mnBS8/AI2+s+M/w/d9CG42liUN1VF+dvInngb0NLDHuYn1m ng+xJ4JX8VuMSr4IZt9g==; 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 1digds-0006Hi-91; Fri, 18 Aug 2017 12:44:48 +0000 Received: from mail-co1nam03on0043.outbound.protection.outlook.com ([104.47.40.43] helo=NAM03-CO1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1digdo-00069E-Ck for linux-arm-kernel@lists.infradead.org; Fri, 18 Aug 2017 12:44:46 +0000 Received: from BN6PR03CA0080.namprd03.prod.outlook.com (10.164.122.146) by BN6PR03MB3315.namprd03.prod.outlook.com (10.174.233.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1362.18; Fri, 18 Aug 2017 12:44:22 +0000 Received: from BL2FFO11FD049.protection.gbl (2a01:111:f400:7c09::177) by BN6PR03CA0080.outlook.office365.com (2603:10b6:405:6f::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1362.18 via Frontend Transport; Fri, 18 Aug 2017 12:44:22 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11FD049.mail.protection.outlook.com (10.173.161.211) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1341.15 via Frontend Transport; Fri, 18 Aug 2017 12:44:20 +0000 Received: from b58946-3.am.freescale.net (b58946-3.am.freescale.net [10.29.240.127]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v7ICiI20029846; Fri, 18 Aug 2017 05:44:19 -0700 From: Vanessa Maegima To: Subject: [PATCH v3] ARM: dts: imx7d-pico: Add Wifi support Date: Fri, 18 Aug 2017 09:43:38 -0300 Message-ID: <1503060218-1975-1-git-send-email-vanessa.maegima@nxp.com> X-Mailer: git-send-email 2.7.4 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131475338622761706; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39380400002)(39860400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(110136004)(77096006)(8656003)(53936002)(36756003)(68736007)(189998001)(86362001)(50466002)(48376002)(4326008)(626005)(6666003)(6916009)(54906002)(498600001)(97736004)(2906002)(85426001)(106466001)(2351001)(105606002)(81156014)(33646002)(8676002)(81166006)(5660300001)(5003940100001)(8936002)(305945005)(356003)(50986999)(50226002)(47776003)(104016004)(473944003)(414714003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB3315; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD049; 1:LFQJwEBx/Fb/uw6C2HtNiknx/ip2maNqh5gweeWB66mdfr+bp8xUTRAHyopV97pp98jy2i0qS1jwQkzdd8D3TmFmd9IeVAS5XW2HAbj8mu0vBZ2lIypoBu1D8hjfdSi4 MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 81e7d909-ef27-4a06-b82e-08d4e636d9c7 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603031)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:BN6PR03MB3315; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB3315; 3:jxJAI5w0Ih7N5FqefmVo82xVXikvkVW1TjFI6hW+LAeAPM97tsR2CoiSnd4QD6Y02LqSVIJVKorVgo2Zjjh56hhSgZMZe/QiV2uhtZLtYJkVR49+ddeXzYV3oH19MhQh4zMvvfBxwHNIlwB3c3KV5qfucNDf6jUXPzcdt0r07KrYLtedJD3EdaIZvtiCjp/t5YAKxrauAs7vdblL0efYuPEBsVkE0wtxj3qjZlZeDQS1sceZj6hCnT+MjZNi1OyC1v+Hdm6Z+bmdwcG0DO6Wk6uHCGZqzRGO4qB6RMv48FxO/i3XgoZ4ZF4Hcuexq/Rm7UavsjKlDE44Cia6az1MC8JnJ6GJEHNWoa1tXJzZr8E=; 25:sku7RQSZIUMswzlg3qnoNM3G9D1ijZ3SqPl23JNxGgo38m8tKLsc8otPuAYCiXAcGP50UoahNgRwzf8zGz7UrQlww99IcjHzKKGTqAZ19N1ZX9SmgByWYzoylOFKAyiaRBWkaCpO7nqIPXmuJWVUI9KoG8r/yTf+ZL0M9//HoNuETjWAR98wdcYj964sUlRCZZ+l0a2P0L/GWp8Tl0qUN4aPwM5B683krQMHFh0n22g+RD8GMX8FAudfSjL37XSORLoeRkLSHLccKzNEquaZlqQoh2UbyFObG1HzrrMmTmwddry2a2d/aLio3RlG5frZh9UFh9XNXgbLVf3ZLJAXxQ== X-MS-TrafficTypeDiagnostic: BN6PR03MB3315: X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB3315; 31:TiC0LSSHLQqUWyVxod21g80oBUdP7aImVzpMx8CxSwX29YP8sQhgxTbNWmaTTJ/osSnLVUV4ns9wfB8x4T1kQietIivORIVPqZJvWnv9PCZfA8mkrV8gIsgewqOa2pjzfSK+z63Y9uq3RPlzCP9yzLeOePnE1VEl+30tkTbsJmSkIW/0vEIavDaQkBgAWpBZzH9Ek1dwfuBwOJwRu2JIyjGW+WejKk7bw7EuizyOmy0=; 4:giyygtkUGl6UO4FL+KScme+EV7d1WNbBHs6B5oC2dCa9kAYVL7XrvXhHLf9nVgfd4Ahl0xTUJyYHwc/sZU7DIcEButpxy1KTUx2T0UVIh54wZvj4PC4NtHCre+eoi/kmKEqAxRYjK3JAm67XaVn1GH7haAwCV60jdMO4QG/1OOMm0UPh75m0PEzndDo6UJlTL3QdmBkz5QdPWxILW2iul2IXgAuAxQ106QNwrHzaV3pMkRb2EgTCZtogq8Bj4BqWhcTXWjCOrwyMZWBJqmf5pi8yEHVoiSOC1Jch6DEKYBo= X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(13018025)(8121501046)(5005006)(13016025)(3002001)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(6055026)(6096035)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123561025)(20161123563025)(20161123556025)(20161123565025)(20161123559100)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR03MB3315; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR03MB3315; X-Forefront-PRVS: 040359335D X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR03MB3315; 23:ZT2HucgeiYaGkocSuK01mNdpzGnZ51xPxXlCmRmDJ?= =?us-ascii?Q?nrbaFs2F2KBqxknnJyv0uSF8LoGEhJ9rNsJHE17Ap2wO061S3w9zWTQ729s/?= =?us-ascii?Q?3D+rUToPXnRVgrKNNVNtln3wgYYHeFzhRk5XMKZ6hcAf2jSHbQYk11uUK8KA?= =?us-ascii?Q?aprbYSNeiGrluItEPU/PC2W2TU/pBV3EPFrd3UbaZ+rFIN4UObaG9eWzPYh3?= =?us-ascii?Q?jBx3FoVGgFrm/JvQbuvO+nlR1Wvn/TDuKsxP8r8bd3ue0SqgKKL6hmImM5Eq?= =?us-ascii?Q?fTDEtjm9VYZAMHOqwTFL5VKaN9ZfJz/hQYVmo3RZpg+ahQ+YxdY06hjpJGki?= =?us-ascii?Q?mZFS57zWbqZrWUMwJXffZQE5rO/KEamu1lPlvpOY27RBdAQKz8y2fC/ZFgd3?= =?us-ascii?Q?xz/jUSmt5FMpBJQwGKLvRVKrs4S+UamrMQyXYkVDjtZA6UlN43UOPH6aRHx4?= =?us-ascii?Q?/paG9mU8LL/bjZQjMcSHW4HpH4TLz2IHUDiRtfUqhO1RCfMciZbQ4dzfWacd?= =?us-ascii?Q?BhWxAGTQx7559yPYRP3WxdcxYVA9XNxjA2TErjvHjBS4g7q1menCkLb79kam?= =?us-ascii?Q?JdSqDYX3E2O4c+G8SoAd32CMn7NRugUjkpgIBmps+pT+nB/vDl7GR76Zpgse?= =?us-ascii?Q?BtFPO+3mCLw5fFcm4boKmfhk3hJTSrQZnAuW4Xj5qUms2ZSZ0a33LCKQY9Hs?= =?us-ascii?Q?17QRDa0Aaars+vAnLdx2YNKNxgrKipNRLNbdbOrTWnqWqPNc3MEjA02BMySp?= =?us-ascii?Q?IR2WLpBclXB2xrO9f1OcQDg0IaJTZynOusAKcmSI7P4znBlpNq/Cju1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; 7:IA9qnEw4Mj1jKuHsQHTB3jLXpysLvl/BfpFnYQGQzUDM+DsjnXza/LgO+p9TQkACAs/tpScMCZYecmSQl9mXiRdC6FX0SDHk8DBf1TepGoWoOA2juv7xrEFsPQiXAiHQQ2tLuh12CWsTYWBMWVOwaUA1CLWurgY7UI4oYtUVU7z1z8zTe1ArHXK5tBdjJ+7ycAb6D7IPa2KM6qbzU+gsu0qpdNJPMEbD0JEhx5NzXYU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Aug 2017 12:44:20.7005 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR03MB3315 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170818_054444_579217_385B947D X-CRM114-Status: GOOD ( 11.76 ) 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: fabio.estevam@nxp.com, Vanessa Maegima , linux-arm-kernel@lists.infradead.org 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 imx7d-pico has an ap6212 wifi chip connected to usdhc2 port. Add support for the usdhc2 port and to the WL_REG_ON regulator so Wifi can be functional on this board. Signed-off-by: Vanessa Maegima --- Change since v2: - Fix bad identation. arch/arm/boot/dts/imx7d-pico.dts | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/arch/arm/boot/dts/imx7d-pico.dts b/arch/arm/boot/dts/imx7d-pico.dts index e78c2c9..bea0095 100644 --- a/arch/arm/boot/dts/imx7d-pico.dts +++ b/arch/arm/boot/dts/imx7d-pico.dts @@ -52,6 +52,17 @@ reg = <0x80000000 0x80000000>; }; + reg_ap6212: regulator-ap6212 { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_reg_ap6212>; + regulator-name = "AP6212"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&gpio4 16 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + reg_2p5v: regulator-2p5v { compatible = "regulator-fixed"; regulator-name = "2P5V"; @@ -271,6 +282,17 @@ status = "okay"; }; +&usdhc2 { /* Wifi SDIO */ + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usdhc2>; + no-1-8-v; + non-removable; + keep-power-in-suspend; + wakeup-source; + vmmc-supply = <®_ap6212>; + status = "okay"; +}; + &usdhc3 { pinctrl-names = "default", "state_100mhz", "state_200mhz"; pinctrl-0 = <&pinctrl_usdhc3>; @@ -326,6 +348,12 @@ >; }; + pinctrl_reg_ap6212: regap6212grp { + fsl,pins = < + MX7D_PAD_ECSPI1_SCLK__GPIO4_IO16 0x59 + >; + }; + pinctrl_sai1: sai1grp { fsl,pins = < MX7D_PAD_ENET1_RX_CLK__SAI1_TX_BCLK 0x1f @@ -348,6 +376,17 @@ >; }; + pinctrl_usdhc2: usdhc2grp { + fsl,pins = < + MX7D_PAD_SD2_CMD__SD2_CMD 0x59 + MX7D_PAD_SD2_CLK__SD2_CLK 0x19 + MX7D_PAD_SD2_DATA0__SD2_DATA0 0x59 + MX7D_PAD_SD2_DATA1__SD2_DATA1 0x59 + MX7D_PAD_SD2_DATA2__SD2_DATA2 0x59 + MX7D_PAD_SD2_DATA3__SD2_DATA3 0x59 + >; + }; + pinctrl_usdhc3: usdhc3grp { fsl,pins = < MX7D_PAD_SD3_CMD__SD3_CMD 0x59