Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp780724ybn; Tue, 24 Sep 2019 09:22:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzt8l1PJIs7OxMw7oka7uIcsQd8sl2rmi1We30vEledLeYBgJBmj3TGg08k3arQ5jGIs5DL X-Received: by 2002:a05:600c:238a:: with SMTP id m10mr1028976wma.51.1569342175172; Tue, 24 Sep 2019 09:22:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569342175; cv=none; d=google.com; s=arc-20160816; b=iNDSONPekTKVMxdajDOl6Cy36Iiprn/OdJsiErvVwY64oB8wUYkqStwlc2jXHf/26b dgMvhUSPTVTE7acnUmgidfMLGTMBQWOjUhrX9rENNsZPM/28uMnLtDpNAY0fyH3Eg5KH xRxqdmK9a4EZgThin51aipVylVVUTxYQFZG7YoCXW62EaUAo1/YniAdvcP3Q/cYNYRaS pNgYJgvNZBjSqRaI9E7c2+RZnMrZp68p4wpgViUrmQWqAKEHZm8TzJO3jxocdQ8PJy2J m4V+Q/RugxxA3T4DGanY1ynMcxRElMcAbuR6F6+pBa4ioMp+V9UFNPG1hs8a99yIWzLn kz4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=5UXMOr/ulTWR012xYXMNl3dPd+SSd8gi2/c+EtqMttc=; b=fzUzipdNesXvysi1apypCEKmQN8oRCJ1/CruTsMdZ9+fHCoAI4LvV47lU5+Yfd+O8e 5v3R7P7pRkioouaPM011rgx3uLeIX3lgyncxZEJLMuU7yq26o2RU6WJnT6HZX7HLMJIJ Uq8nAAbHtYUVw5IVVPdcOaxE57IaSQoA+7e1wvkxS1pZWdvvUh81xJio4dJ3Id4uDaGk NnhO94V1cvSk8EehD2gyQTxEBqnyvTfF9pQskSZEp6IaqYjXcxa0ldena8AtfYKxZZP6 QXRVpd0By1bpj6ztQmP5bDTCXpPWjqONAfMPRWTTIP03lMi3kmiKpLbpUrmnS2qguvgC J0HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@deutnet.info header.s=default header.b=lWw29Rey; 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=REJECT sp=REJECT dis=NONE) header.from=deutnet.info Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y13si1156941ejw.2.2019.09.24.09.22.31; Tue, 24 Sep 2019 09:22:55 -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=@deutnet.info header.s=default header.b=lWw29Rey; 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=REJECT sp=REJECT dis=NONE) header.from=deutnet.info Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731683AbfIVUMo (ORCPT + 99 others); Sun, 22 Sep 2019 16:12:44 -0400 Received: from srv1.deutnet.info ([116.203.153.70]:44672 "EHLO srv1.deutnet.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729892AbfIVUMn (ORCPT ); Sun, 22 Sep 2019 16:12:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deutnet.info; s=default; h=In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=5UXMOr/ulTWR012xYXMNl3dPd+SSd8gi2/c+EtqMttc=; b=lWw29ReyagtKHd1f82LKd0b97 WQM1Rpw83bmgFSPxqa3D24ITEJRCOnU8rjEc8U2oJX+KBHbnFkvooU1gVk0cLMvJtYzvrFh7xbnDQ Kin9nO5nikeQehai/HiAqVKpY5JleyRug9p+tD+CNLMKaHaeJOegakfNHbLhmQ7ZU5bplalujyfq8 ZN90iZIKJmqW8bXNj/TtWPiN5ergAvqnvNT1OQIpH29HHeAXgAfC6CC6+CuM05blABSpKgb58++3A lV8ycy/iSAkUDgaQZzLTEatOiq7bNz3qUYUDzkg2vh4lyWFZO7tQOrGtFuDHKZb6CfDKjhSzjA7JP S6aJEuLAg==; Received: from [2001:bc8:3dc9::1] (helo=localhost) by srv1.deutnet.info with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iC8Dl-0007tN-Pg; Sun, 22 Sep 2019 22:12:37 +0200 Received: from agriveaux by localhost with local (Exim 4.92) (envelope-from ) id 1iC8Dl-007vee-Du; Sun, 22 Sep 2019 22:12:37 +0200 Date: Sun, 22 Sep 2019 22:12:37 +0200 From: Alexandre GRIVEAUX To: robh+dt@kernel.org, mark.rutland@arm.com, ralf@linux-mips.org, paul.burton@mips.com, jhogan@kernel.org, agriveaux@deutnet.info Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/4] MIPS: CI20: DTS: Add IW8103 Wifi + bluetooth Message-ID: <2ab4eb8e7f2c1de24228dd9216cd42e8dd2007a4.1569181001.git.agriveaux@deutnet.info> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add IW8103 Wifi + bluetooth module to device tree and related power domain. Signed-off-by: Alexandre GRIVEAUX --- arch/mips/boot/dts/ingenic/ci20.dts | 39 +++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/arch/mips/boot/dts/ingenic/ci20.dts b/arch/mips/boot/dts/ingenic/ci20.dts index 4a77fa30a9cd..c62c36ae94c2 100644 --- a/arch/mips/boot/dts/ingenic/ci20.dts +++ b/arch/mips/boot/dts/ingenic/ci20.dts @@ -31,6 +31,13 @@ gpio = <&gpb 25 GPIO_ACTIVE_LOW>; enable-active-high; }; + + wlan0_power: fixedregulator@1 { + compatible = "regulator-fixed"; + regulator-name = "wlan0_power"; + gpio = <&gpb 19 GPIO_ACTIVE_LOW>; + enable-active-high; + }; }; &ext { @@ -54,9 +61,18 @@ bus-width = <4>; max-frequency = <50000000>; + non-removable; pinctrl-names = "default"; pinctrl-0 = <&pins_mmc1>; + + brcmf: wifi@1 { +/* reg = <4>;*/ + compatible = "brcm,bcm4330-fmac"; + vcc-supply = <&wlan0_power>; + device-wakeup-gpios = <&gpd 9 GPIO_ACTIVE_HIGH>; + shutdown-gpios = <&gpf 7 GPIO_ACTIVE_LOW>; + }; }; &uart0 { @@ -73,6 +89,23 @@ pinctrl-0 = <&pins_uart1>; }; +&uart2 { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&pins_uart2>; + uart-has-rtscts; + + bluetooth { + compatible = "brcm,bcm4330-bt"; + reset-gpios = <&gpf 8 GPIO_ACTIVE_HIGH>; + vcc-supply = <&wlan0_power>; + device-wakeup-gpios = <&gpf 5 GPIO_ACTIVE_HIGH>; + host-wakeup-gpios = <&gpf 6 GPIO_ACTIVE_HIGH>; + shutdown-gpios = <&gpf 4 GPIO_ACTIVE_LOW>; + }; +}; + &uart3 { status = "okay"; @@ -314,6 +347,12 @@ bias-disable; }; + pins_uart2: uart2 { + function = "uart2"; + groups = "uart2-data", "uart2-hwflow"; + bias-disable; + }; + pins_uart3: uart3 { function = "uart3"; groups = "uart3-data", "uart3-hwflow"; -- 2.20.1