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: 105485 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp180592qgd; Wed, 14 Jun 2017 01:26:18 -0700 (PDT) X-Received: by 10.99.55.18 with SMTP id e18mr2996404pga.245.1497428777899; Wed, 14 Jun 2017 01:26:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497428777; cv=none; d=google.com; s=arc-20160816; b=n6ECc7ZvKKFcQmEfSVIPmKQVvC+fyxUIUGomU/wpU3WHsLwrSEFECji3I/WuFo3Kdd ABcFGO146GKMqfGgiHkTznKL3VQIH5BXC71PKvhvX5sAy7dtw1hft8Y7nhPewWlbsYn9 Xzj06PKgbXGOcV5CDm0N0WUd5LA6Bye+D/gFvn3n+yatM1hvO26Rm91HJNZJ6et4uvVQ IwNXnXZXdWYGLA0pvz1zWInZC5B5494IfRz/sH1BKPRHCTuS27iqLt5xYRY4ODoV6HXg 1k4CbyJ1sHdxjjWnPga1/2krAfT+gvQFOI7c/8Rl4hgrvh8HAavz3G0qkaxtzJ1JnaAb OLrg== 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=E+DLm3ka0HXRJft8K+MnLOnlP/g4ERXXjvMa9CiQFgU=; b=ipSZBi1VEv+8gHQp4v4YgulY5fK2fiMUFUcnxT+cMEBwMw4S3bY81uTY5eIVPeLqfY tvhDyfSfVYX4bnHjUWZ8p+YZbW84QmO67dUqpFpGn7F50COvO7d+BkVFNbKDhAdg8XXX U1IYFiysE82nbOZVLIWDCBi89EqDduMBlI5eKb8qsenr6e1fPdCgvYDDwOBjtbQ5HeTz hFbisapNBVx8yTXQYZMHpKBesC++F/z326dHF0PtZJ7t8GE2L0masmM2nUDMzLND9BGY LXIdTzJw4DMU3uImVhiNaca9x0AIfBWVtqrfsF0/4LDit7kTGgiPlSThK7r+DJk0hBpm aAeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.b=AvERY0fe; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (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 q8si154001plk.486.2017.06.14.01.26.17; Wed, 14 Jun 2017 01:26:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.b=AvERY0fe; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932152AbdFNI0N (ORCPT + 7 others); Wed, 14 Jun 2017 04:26:13 -0400 Received: from mail-pg0-f42.google.com ([74.125.83.42]:34701 "EHLO mail-pg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932151AbdFNI0K (ORCPT ); Wed, 14 Jun 2017 04:26:10 -0400 Received: by mail-pg0-f42.google.com with SMTP id v18so72605161pgb.1 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=TV6YHMs+00wato1DZ6pUnUnb0J8b3sBHMOYJA6vQCYp/HhHbY6ekWpr8fLt48JUOen 7gDMO/5UMKp5UwnNKdHMoBb7cONKE1jVAXB36W+EuNh9FHe5Fn45X8YhUFfgS9kPs5IU 9uydEkz4P8WRVU/4eY2ALx99eidwB0nMCPttplkjlmyKyPSSRRDz8kaPwP/TMPWeE3DS AuKx5oBnIf32mACRGuwtB5pRvLHhAHhOT4qpXc6+c1752zTU2FFOZmcQXtqsRX9VeYaU M/MjfiXjo+ZOzra+hF01JX6bDP6x5VvqIPMkuRS2RHr97HQwQU3byylSdd//4DZ6N0vA uY6w== X-Gm-Message-State: AKS2vOxcYcrIEyFcEBLsEcKkB2+uai2XsR6rQ92m8bxgBZSOo9PWwogm oRdLLce8pktGuSAM 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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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>; + }; +};