From patchwork Wed Aug 26 05:57:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 11737215 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5C39B14E5 for ; Wed, 26 Aug 2020 05:59:31 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 34D36206FA for ; Wed, 26 Aug 2020 05:59:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="YC13lpaZ"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="Zik0cEXf" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 34D36206FA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.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=GWWEzUlWndO3DdtSLEh4A5E9AId2jzJrQSertiCDQ0E=; b=YC13lpaZMIwVS+AWelBVLS9I3k uWULybmNITMN9+Fj+oXu8w2R/NI7mpJViGXJix+fdMHmdA8iBDkgr1eyNhmwiCz9NkUFf59W3z95+ f0Gt7gytESTH/Gt9lrOM9JTOxpzeNMcrcGIb8uKaRdZ3sRRU11kxJNy7RzjP/tnbGvFycKNOXe0dt 2FO02j+yejLTOr1j5JrytPC6Wb/0b1VJ2BfFDXBDFM4nqRIlP8EspaRKcuSRtvIbqgrfwN/xPOuxe DfHvH8++1X/9DjiurBUWIl91qZ+65Kg9tcCwxfKL8SGy17iFWte7hk6mAi5ods8qnGM+iHBsIN5fY oMxdRVAw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kAoRO-0007YE-NT; Wed, 26 Aug 2020 05:57:46 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kAoRM-0007XU-Ms for linux-arm-kernel@lists.infradead.org; Wed, 26 Aug 2020 05:57:45 +0000 Received: from mail.kernel.org (ip5f5ad5c5.dynamic.kabel-deutschland.de [95.90.213.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E342B206FA; Wed, 26 Aug 2020 05:57:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598421464; bh=VIUzUu/h2wdFkcTjJvViiZyHJeKsITsy61I885Oe8qQ=; h=From:To:Cc:Subject:Date:From; b=Zik0cEXf4IOd/9yoCR/qz/EWtsqQkZRCrQmFbTJm1tFt8saY4cZh4rB8BBqTPb5YM Mkvk6bheqdV44uKQsT9EdDU1uRjG84aUNUwMcHaBLC8S7aoMZrmX5ob/HTJKi9q3IK areZpymcNtdpul0a1xA4GbLC+eBarOo9mUHi3dnw= Received: from mchehab by mail.kernel.org with local (Exim 4.94) (envelope-from ) id 1kAoRJ-001PY0-SQ; Wed, 26 Aug 2020 07:57:41 +0200 From: Mauro Carvalho Chehab To: Rob Herring Subject: [PATCH] dtbs: hikey970: add wifi support Date: Wed, 26 Aug 2020 07:57:40 +0200 Message-Id: X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200826_015744_888503_D3D108DE X-CRM114-Status: GOOD ( 11.93 ) X-Spam-Score: -6.2 (------) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-6.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [198.145.29.99 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -1.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Manivannan Sadhasivam , Mauro Carvalho Chehab , linuxarm@huawei.com, Wei Xu , linux-kernel@vger.kernel.org, John Stultz , mauro.chehab@huawei.com, 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 The dwmmc2 is used on Hikey 970 for WiFi support. The hi3670.dtsi adds it, but with status="disabled". For WiFi to work,it needs to be enabled. While here, add the missing properties: #address-cells = <0x1>; #size-cells = <0x0>; and add ti,non-removable To DT properties, as the WiFi support is on a non-removable slot. Signed-off-by: Mauro Carvalho Chehab --- arch/arm64/boot/dts/hisilicon/hi3670-hikey970.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3670-hikey970.dts b/arch/arm64/boot/dts/hisilicon/hi3670-hikey970.dts index f218acceec0b..a2b0d2a1d09d 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3670-hikey970.dts +++ b/arch/arm64/boot/dts/hisilicon/hi3670-hikey970.dts @@ -402,6 +402,7 @@ &sd_clk_cfg_func &dwmmc2 { /* WIFI */ bus-width = <0x4>; + ti,non-removable; non-removable; broken-cd; cap-power-off-card; @@ -409,8 +410,12 @@ &dwmmc2 { /* WIFI */ pinctrl-0 = <&sdio_pmx_func &sdio_clk_cfg_func &sdio_cfg_func>; + status = "ok"; + /* WL_EN */ vmmc-supply = <&wlan_en>; + #address-cells = <0x1>; + #size-cells = <0x0>; status = "ok"; wlcore: wlcore@2 {