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: 9787941 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 F0D8B60384 for ; Thu, 15 Jun 2017 03:09:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E7715283A6 for ; Thu, 15 Jun 2017 03:09:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DBE2D283DA; Thu, 15 Jun 2017 03:09:46 +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 6D2F5283A6 for ; Thu, 15 Jun 2017 03:09:46 +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=ndP7tueHg/fXVO7IRa405IdKDT vmiBx6msFyl8RRFPXh0Az4Y3+wBr8LvX7pWfnihNSzJwGp+Ose21boyPcA3oUUMxZVb86kpDJPJRP e0KLLZceVn8yCgWTv6EwEGQ69Dc46wRD/z4ra/bIM996FEiaG6uykRhAhTY5cxldmk+8v9/SztJ2V 397WOD3LzgU0ce25zHlklhys1W1alQsf65prUF2Il0R/QgMwXWlEmBQRtp2Vi1TjdPZ/X9755lOF3 Xq2c9DqkwOgK7kK7UqMipDLj3XAFMlM4+TOlHb4lmzXIwkAb9yQAqAfHVmV0/l6DiQlLYhogsPs14 seoi5P3Q==; 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 1dLLAH-0005Kn-Hn; Thu, 15 Jun 2017 03:09:45 +0000 Received: from mail-pf0-x22f.google.com ([2607:f8b0:400e:c00::22f]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dLL8e-0003HO-Rl for linux-arm-kernel@lists.infradead.org; Thu, 15 Jun 2017 03:08:09 +0000 Received: by mail-pf0-x22f.google.com with SMTP id s66so1419182pfs.1 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=cmtmauAsOITjf7Lqld7BOf8HlCLrPJrgLb3LgDz9rU9vZQ6ny+FwlWgjPVwSknGSc3 q+1rfqz0Fu0db2sr04xxYw96/agX80k15OY4IHK0UJdYDOvwRTj2n6mKZbQUdL2MDRLF GRfZVmVz94IPmoioeTYt4oL7Rm8zSVeIjWwrEOBjg3hVEieFi5lGZrLglzpFxMBd/8QF dOWOvvdtB81d2JEuuUYR+FQs8yKi7rC3WjSNar1lHuSw6EVyYj+kRzEytQhao3oqx9Z4 qQw4dxRruNgVif1yCsavEPAStBfnEHj7yF2cwl6BWGs4eSv3JNdzo+P0GMJy6ofplbbN E6Ew== X-Gm-Message-State: AKS2vOyECd5IbDhAkyoM7nfGQnENsdrW1z3/0lWQripKjyQhPnXorMLQ 85uwfBLK4hT3KqFl 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170614_200805_547609_B544160C X-CRM114-Status: UNSURE ( 8.87 ) X-CRM114-Notice: Please train this message. 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 , hw.wangxiaoyin@hisilicon.com, linux-kernel@vger.kernel.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>; + }; +};