Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8737511ybn; Tue, 1 Oct 2019 12:10:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqz2Fekx9yNcHM3glb4zeqHje6ITROKM3JbP75iutvV72QBMs7Eaqul34QecnTAGGW9oZ9sg X-Received: by 2002:a05:6402:120e:: with SMTP id c14mr10064148edw.272.1569957024100; Tue, 01 Oct 2019 12:10:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569957024; cv=none; d=google.com; s=arc-20160816; b=XhQ0930eyG5E170TtvARNP7wa69S0q9BpRSE/zLKsBDOmmIYUwP+laSbEOn5LjZlIo HzY5TQny9frr2jNJmSm+CoCnxLS5ZJP0KMteXNzEjKvlcH//fOFp6LL+IENU6ZOXgM76 qs5XyZ9FRYrOG5p8Bepe9Vc30yvPSnOS+SkSGVIuEDmLVfusxgHjskNZmulwC1p4uPgK WDg50YquB5lZnzDPJWRGOCfVMeSRfKqu2RmQaIjNrk7/t36YstvESy3uNcm0uvfaV8NN 1mlL1HwZCZAoLiAJXYSKeZ1jz01nTdkjXHxafgMcbQbE1ZsyeVNMORWUDn6SQMg/OUXe bkOA== 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=pJXS5CSOKJt6vZeKgtLUrGBDbc15BV54mK5EnzXsnh4eCfNKCoLNaU7BPGnfscIT/l Q14DN0vEC854+iAF8Z315TD8V0YkskLWW6c8niBffiT5lre/WKDQ8rKrn2poczgj2PRu DKncMZNIiHvxWMTCqIbHLbxMW4M1wWLiCIf+MLkrEZ3HIJOMVcejb/BFgDuSAjqgr2P/ RoEyEqBp00FSzzm2V2nnKxLeXeQwOKzdhLliabFIt3AKhFYhSvegSMSxt4fN9+IlXLo2 TPIgzivoo+e5B73J0ZWIHtotknIKEt+Imqz0YsGOVc56p87ZXB1vlI0Irecow5BF3uZf GOFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@deutnet.info header.s=default header.b=hyeDqkxT; 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 n2si9457612edt.408.2019.10.01.12.09.59; Tue, 01 Oct 2019 12:10:24 -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=hyeDqkxT; 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 S1726793AbfJATJT (ORCPT + 99 others); Tue, 1 Oct 2019 15:09:19 -0400 Received: from srv1.deutnet.info ([116.203.153.70]:55186 "EHLO srv1.deutnet.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726626AbfJATJT (ORCPT ); Tue, 1 Oct 2019 15:09:19 -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=hyeDqkxTHwl3KMeLhhxJXmK2P IVw/gCQ6gF7cIEP3dXZw13tslPofEqCL3vpq0nnUb6fWGyFSzjMquugg4YtNUKhxkuPczX21DYwS1 jPnmCMNjvWEbX3rvzqo5l0nrP5OC+xFEXRJ5zkJTfMEDevBV8LgJ7nJgfNCa3/wKfs0JNqIRmus4F 0NaygMfOSbKcyA93CAKUjytYIdCN7OBTXGmL6mkcDuS86VzHC4yC6bt/QPUSTUuuyGM47sUoz+6bL O6J5rWQjPFdwhyc8tNUZ3mZtVa9OqdetHoEzG9H+4Lh+DPZIaGyQw7JbDlWtihcldhtQ/4B/zJHO1 o/+IvPWjw==; 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 1iFNWN-0000q2-Cb; Tue, 01 Oct 2019 21:09:15 +0200 Received: from agriveaux by localhost with local (Exim 4.92) (envelope-from ) id 1iFNWN-00BgMy-1K; Tue, 01 Oct 2019 21:09:15 +0200 Date: Tue, 1 Oct 2019 21:09:14 +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 v2 3/5] MIPS: CI20: DTS: Add IW8103 Wifi + bluetooth Message-ID: 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