From patchwork Wed Jun 14 08:23:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 9785731 X-Patchwork-Delegate: bhelgaas@google.com 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 BA38F60325 for ; Wed, 14 Jun 2017 08:26:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A22F726E1A for ; Wed, 14 Jun 2017 08:26:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 96D3828385; Wed, 14 Jun 2017 08:26:52 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5AD6726E1A for ; Wed, 14 Jun 2017 08:26:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750751AbdFNI0s (ORCPT ); Wed, 14 Jun 2017 04:26:48 -0400 Received: from mail-pg0-f44.google.com ([74.125.83.44]:36708 "EHLO mail-pg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932112AbdFNI0F (ORCPT ); Wed, 14 Jun 2017 04:26:05 -0400 Received: by mail-pg0-f44.google.com with SMTP id a70so72565075pge.3 for ; Wed, 14 Jun 2017 01:26:05 -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=AvERY0feIN3608+ekSRZER7BggHoQFadXQvnFdZBHULvqz32VvJEfA0PZplg3kP65P aeon3iyHtPiI5a+k86QJZDKThnFQhBfEPM5wUu+9Pzmx2XnUv0XIBEC9sFsOWBlTQV84 c0NV4ifNsYpF/uFhJQdI7yIuQM4tkRwUCCIew= 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=RcHCxauLP8W1bKzi6gHPFpp5oOBUmuniFe9TplKbfu0msc7J0/6NUsAZVOBE2lP0By /ZEPDJnJ1hjNrXFTxo2F86GhTm0+gnVVKI2aVD7xIE725OQpjkbrfvHKpEN5LfT9inbz scWGv9p9phaIM68geUrbpkgQ70Y975Y7JQxPzhgtgw2VZhdraKTCxM1YSpvrEfflh289 wkcRNNv0YLz40f7PnsyAc+Pe11JD5MBgIoLFs4ZELI+97mNVq5kkQnRgw0Yuku3Bg0Pv F6P1v6F7lG2R6dqG3HfmsDWppiOD4R9MRMoP5T3GHUU+UOzUgj4nqqsWRhGJXr7wb0n1 rveA== X-Gm-Message-State: AKS2vOwx86Vjkr8d1/lF4uEN7iXjVk3ZgyuIz8LIWlApy/EoInWHFqMX Z8Kj2bwZZXf91Ju8 X-Received: by 10.98.80.76 with SMTP id e73mr2946192pfb.31.1497428764557; Wed, 14 Jun 2017 01:26:04 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.56.159.99]) by smtp.gmail.com with ESMTPSA id h14sm766802pfh.71.2017.06.14.01.25.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Jun 2017 01:26:04 -0700 (PDT) From: Guodong Xu To: robh+dt@kernel.org, mark.rutland@arm.com, xuwei5@hisilicon.com, catalin.marinas@arm.com, will.deacon@arm.com, wangkefeng.wang@huawei.com, xuejiancheng@hisilicon.com, peter.griffin@linaro.org, puck.chen@hisilicon.com, lee.jones@linaro.org, ulf.hansson@linaro.org, bhelgaas@google.com, arnd@arndb.de Cc: zhangfei.gao@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org, linux-pci@vger.kernel.org, Guodong Xu Subject: [PATCH v3 21/21] arm64: dts: hi3660-hikey960: add nodes for WiFi Date: Wed, 14 Jun 2017 16:23:38 +0800 Message-Id: <20170614082338.15673-22-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170614082338.15673-1-guodong.xu@linaro.org> References: <20170614082338.15673-1-guodong.xu@linaro.org> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(+) 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>; + }; +};