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: 9785811 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 7205C60384 for ; Wed, 14 Jun 2017 08:49:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 534DD28583 for ; Wed, 14 Jun 2017 08:49:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 44FE22858F; Wed, 14 Jun 2017 08:49:14 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID 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 DA06828583 for ; Wed, 14 Jun 2017 08:49:13 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To: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:List-Owner; bh=rGh70nl0OThcVQsQGxir7fzN44kY57IVPEQntKs8nJU=; b=KngRllUwfdfKWuvcNyTCdwx7Km Rh7LXn/YQEk1/niCYTVJqZOEBZ3DGTX0IDBHCuUc+yg7Jv0lbYgUyGN/0iF5jEfJJkMX0mFpfNRj5 4DJjdLBQXd33hX72PLPEmqka8LRHv02DfoXMDPglI/SbTKQbuaKsTiNAiil5/IxgNhZ9rJrIou/GC MsachseT7RJJRV/H9C9y9cqW2eE/fdevJfoedHNVPUQxyUaTC3RfUyoIsDdSrM+uFfuZV74LKeMc2 Mjf3ZinYkDgwEW6RrNg7H5quEjEDFrBvCelx5N4ALDFQhostY8atmfMeZVBPmrRNjYRtHz7w+Y1pN falBKNew==; 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 1dL3zF-0001A7-1P; Wed, 14 Jun 2017 08:49:13 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dL3zD-0001A1-Fg for linux-arm-kernel@bombadil.infradead.org; Wed, 14 Jun 2017 08:49:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=RJOMtlQz706HpYCjUPrIeGDbOiI8QjXxJMk4XFwLaKc=; b=ah87qjH6lGfwoRlb6C4i+Zdag /eH+d8mpbDmoPAGLIvvefINRo8SKR3rn5Jfy3VAirl+d3YMsTg8rnCPeN/zjybXSxsxdqhvDJVU1b cuyD316jYvTmxydSo7dGKMZJuUjLVLyoi6BfTZ+xTYswhWM5xrh+qDaSH8Afc9icCdZA65cyAegkA oxF0vl2ysNm9msxPRD6sExbVvh4khErBCY3x7kGCYjYOm5GiF4Ulhf4TSAFHytd8FfT7dbzXFlsxc tYO/Wxu19EGEdA4Kw8wcm6yw7yNxxGmOT1wvQtiYZDThpuFQM/Wcrzw2bXIHnG5s3QoeOoewGZ92v b/PWhvOlg==; Received: from mail-pg0-x236.google.com ([2607:f8b0:400e:c05::236]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dL3dC-0003Fu-S6 for linux-arm-kernel@lists.infradead.org; Wed, 14 Jun 2017 08:26:27 +0000 Received: by mail-pg0-x236.google.com with SMTP id f185so72609987pgc.0 for ; Wed, 14 Jun 2017 01:26:06 -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=c6ATt7OC1/CuIqObMcVP6w1TPKNP05p2UOVSC7CfkqkH/A7Yyy4xLBzI6+KHzFMCwf e2DEiOgpTyc7okcJle/ZDozKjT7gTUOm0Jku6mLBpj7Yl31K2atemssBwMi8FJywDRfx PCHzkNBurr5OFvEyugPu/4PXg/1W0OW/5OR6G+XqyOsyUFRLA6oZbOGoF5+QpgwISUnw iI/dvA/IhwZ5qhbqzsj+k0TvAMc+Nq3Q9axejDqOp/yrcvymbkrTdTuWkvK655STyzUa F/UljZj3Oz6CEM3jtsyjxSI2R8SSzblT0UkO0AkmZv+tbdIXSLRsJVwGC8O7POEy6m4J JjSw== X-Gm-Message-State: AKS2vOyjskBf0tKq8mJX8wvnhp9e9/kBjyz5ibB/2wWmPH9l3qB+WVkh FDBJ9TjnLgO1gBtY 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 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> 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: devicetree@vger.kernel.org, Guodong Xu , linux-pci@vger.kernel.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, zhangfei.gao@linaro.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 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 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>; + }; +};