From patchwork Thu Jun 15 03:04:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 105629 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp596061qgd; Wed, 14 Jun 2017 20:07:52 -0700 (PDT) X-Received: by 10.99.166.18 with SMTP id t18mr3052083pge.218.1497496072646; Wed, 14 Jun 2017 20:07:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497496072; cv=none; d=google.com; s=arc-20160816; b=E/gPuH6/HQkmn8PakLd/CdU7yQLgTgGRkY7dgQSyDBTWFhC2FMxbA+xpSsvhiBiCgd BBinHVsDbtqIllLXbUyTGi5CpZBygZiLVFlBKFFx+75q0R3maNdiyUYDE5mAUt+fh042 gWn0rhxCYeI6vJLRhH4DGYd4k4hJXSbQHc5VzVLug0Lhfik72tB9uRuD3K9Q2lpzS7dy XH9RlBmXHtFwXkFOCoxrDn7A6H4Xw6glnMCMBV2zod9EF9TEwqbRtLgAJTvUPXkKkrtc 3YlgIwssekrd87bIE2/X9lMpRoQxlhD/r2mo9CWhgJfCDMSWAAQbhuxGI4PpxJOL/QUR lh2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=RJOMtlQz706HpYCjUPrIeGDbOiI8QjXxJMk4XFwLaKc=; b=pdjSsOAd+HbCgke3uKCZSLUqf2pvFs04sYsZ3/XuQM7vWHrcsVnHq3DlUYZ3WWIJEH udZTAsNFbpgJGlI6mgVNCKaSqH/PHS9nN/Rti7wf8KwOYOmgfpzhRnBUNHu/AE2rt8PE W41T1twJwSOsWoYU68q2l0BAmNmnHAue6g+wiQv3dge3xMa4XUon0MBa/Soh9Mx+Qdgo LvrF+w4+a/ejPG0Y0YZtZrS9cV5fLl54WXLpXAk7fD5dEjjylj4lEovvtwKDd7D+lIDq XHLlRsLvsZXVBcX4BQKRuDD2LP056Zg1VnMQA1usU3ExyNVHA2IO1RSgtWgjEJYwL4gD VdzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=gaMx1crt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d18si466152plj.132.2017.06.14.20.07.52; Wed, 14 Jun 2017 20:07:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.b=gaMx1crt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752822AbdFODHt (ORCPT + 25 others); Wed, 14 Jun 2017 23:07:49 -0400 Received: from mail-pf0-f176.google.com ([209.85.192.176]:35293 "EHLO mail-pf0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752520AbdFODHp (ORCPT ); Wed, 14 Jun 2017 23:07:45 -0400 Received: by mail-pf0-f176.google.com with SMTP id l89so1404011pfi.2 for ; Wed, 14 Jun 2017 20:07:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=RJOMtlQz706HpYCjUPrIeGDbOiI8QjXxJMk4XFwLaKc=; b=gaMx1crtbyqiSuzJI3qxJW8gNMauO4nwKlBdEhagQoQaDvrkElhn6VQmh17/eNYY7u jnE9ias5WN0UwOb2aLiqAaVa44R+I/JGR4Ozd7W7xKlhWf9Jt47KzxstInTVlpdNDJQe uIKlfJIQlZfu6wjrDUWm8I6gPwkFWpRfmCO3k= 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=RJOMtlQz706HpYCjUPrIeGDbOiI8QjXxJMk4XFwLaKc=; b=nT9zEDVoQA530go79DfRFFvNBF8dcKcsSY+HjxnhqHMqJ0hVJFchLXxScGVyoWtvdA 4efwb7IudLq2SjhJP5w0K/EUHynrNFj0wMFZZIXjnO59uSjpG9KkTMMUCpa2zKoo5+Mx 7CxGL4HDP9SQC3mrlVyuuEerOBqWqdllZ/LnolScIpx4CVaZ5t3xTRQ9Uz6vvLqFKLNJ j+9h7qRwFiM7uOG8ArRSIZ4q+bG7PxYZeGtCiAGXXhw6BBcFUWBN6q7U9Z2ujW/2DTcl 132KohFdVS/gpYNSDLPJ7KkqTPXkmhEw/Lxvg9TQ4Tc4+OKjBs/QtEO7TKbmW/aAKNgZ UsSw== X-Gm-Message-State: AKS2vOw7cZsVFhVKgxyawxO67wCrWGrL6KLJuvtPrxwJ4YRikl8lotsm GD3UDX0uiPwRzElJ X-Received: by 10.84.224.6 with SMTP id r6mr3579230plj.132.1497496064452; Wed, 14 Jun 2017 20:07:44 -0700 (PDT) Received: from localhost.localdomain ([45.56.159.17]) by smtp.gmail.com with ESMTPSA id y65sm2156656pgd.33.2017.06.14.20.07.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Jun 2017 20:07:43 -0700 (PDT) From: Guodong Xu To: lee.jones@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, xuwei5@hisilicon.com, catalin.marinas@arm.com, will.deacon@arm.com, lgirdwood@gmail.com, broonie@kernel.org, khilman@baylibre.com, arnd@arndb.de, gregory.clement@free-electrons.com, horms+renesas@verge.net.au, olof@lixom.net, thomas.petazzoni@free-electrons.com, yamada.masahiro@socionext.com, riku.voipio@linaro.org, treding@nvidia.com, krzk@kernel.org, eric@anholt.net, damm+renesas@opensource.se, ard.biesheuvel@linaro.org, linus.walleij@linaro.org, geert+renesas@glider.be Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, hw.wangxiaoyin@hisilicon.com, Guodong Xu Subject: [PATCH v4 20/20] arm64: dts: hi3660-hikey960: add nodes for WiFi Date: Thu, 15 Jun 2017 11:04:17 +0800 Message-Id: <20170615030417.14059-21-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170615030417.14059-1-guodong.xu@linaro.org> References: <20170615030417.14059-1-guodong.xu@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add nodes for WiFi. HiKey960 is using TI WL1837MOD module. Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 33 +++++++++++++++++++++++ 1 file changed, 33 insertions(+) -- 2.10.2 diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts index cec0b60..6609b0f 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts +++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts @@ -145,6 +145,20 @@ }; }; }; + + wlan_en: wlan-en-1-8v { + compatible = "regulator-fixed"; + regulator-name = "wlan-en-regulator"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + + /* GPIO_051_WIFI_EN */ + gpio = <&gpio6 3 0>; + + /* WLAN card specific delay */ + startup-delay-us = <70000>; + enable-active-high; + }; }; &i2c0 { @@ -208,3 +222,22 @@ vqmmc-supply = <&ldo9>; status = "okay"; }; + +&dwmmc2 { /* WIFI */ + broken-cd; + /* WL_EN */ + vmmc-supply = <&wlan_en>; + ti,non-removable; + non-removable; + #address-cells = <0x1>; + #size-cells = <0x0>; + status = "ok"; + + wlcore: wlcore@2 { + compatible = "ti,wl1837"; + reg = <2>; /* sdio func num */ + /* WL_IRQ, GPIO_179_WL_WAKEUP_AP */ + interrupt-parent = <&gpio22>; + interrupts = <3 IRQ_TYPE_EDGE_RISING>; + }; +};