Received: by 10.192.165.148 with SMTP id m20csp4630036imm; Tue, 1 May 2018 00:20:23 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpDOYmYmE0kQhdxEynpFy6i9Rw5DV08Jt/fk8ROmIlHGD8HybGgeoUL0X0ah7gAJ7tRLcEI X-Received: by 2002:a17:902:7596:: with SMTP id j22-v6mr15376428pll.334.1525159223260; Tue, 01 May 2018 00:20:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525159223; cv=none; d=google.com; s=arc-20160816; b=fp34xPhQRRGvsLx+Ls/hdZsG7GdN0c7QyLfZMMqqCVxhBHSieaz5Ct7OXMo8iGYDJo zx8HgdDelEX6SFIgawEjP5eFao3XtCo/sFZCHiEYDnZ0meRJAa88bc7PPdvcDQejTktM Av+SEDHB88/CW9mHfBAXs45M+Ye6aLtFNEFdWzvynbduTcFvcaJhaRg9ok4gcDJ2H+DU eMB2U5Wk0ULtI1RfRhWqORhfIIlhGPmvsrempZ6IHmyPIaIYhRanVXNusFnOURQTGOZB +oij/oXtRFUdfsEY6teJo63x/1nAICWDWSXnQ9/dDbtF4Cdu3InCjkoDuctmO6f93wB9 3iVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:to:from:dkim-signature :arc-authentication-results; bh=aM9i8zu9U7FxMN8H6m6ZVrFyriey4rGDJhqU7M+XyOk=; b=LntJFLg/sdO+JfxLreN2r204L0W8N/wwvw6bvaJsFHSapU8tOVH3VyhwnEF17J56oB +Z1HWoawPsNPJjEN66Js9EvEjC0ClHkSCaFYtH8WFFSM22CaCAXXCeoPnz1w9mq+Ih40 r5w/qA/ZDArP2hGSLdBmiCnliyEJ7mowiCx1lxfXV13TumBMLWB94sA11zGEX4cGIb1h RGSXvl7OQOkXc7SnSyZzhTvh1nI7zo8lIIz7QRjuF6F+GsMqytzpg7iqf+7g7XEycn4G g0Fq7bn8Hc5PVSCBxj4HecyfGnf9JG0WGfdMD/ayWUyo4kDgOHxm136u+3TiJ764mBsj 8P2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=aXrgVDGe; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u8-v6si8867809plh.22.2018.05.01.00.20.08; Tue, 01 May 2018 00:20:23 -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=@ti.com header.s=ti-com-17Q1 header.b=aXrgVDGe; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752012AbeEAHSu (ORCPT + 99 others); Tue, 1 May 2018 03:18:50 -0400 Received: from lelnx193.ext.ti.com ([198.47.27.77]:24793 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751240AbeEAHSs (ORCPT ); Tue, 1 May 2018 03:18:48 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id w417Ifcc010722; Tue, 1 May 2018 02:18:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1525159121; bh=7KirsL/qD6JbXH1dV9D5pjfMRtwo6LiHzl49kZMm1n4=; h=From:To:Subject:Date:References:In-Reply-To; b=aXrgVDGeJj3mJ/NJ6UlZQ45Y02f2EYdBsOB39JwlFEWZOyjD3yr0RG9GmGD8MVkHj y/KSACe6773xo5H3xUUY3JsLZyynqtH0cOnf1DG3BDy53Ad5iG4c/iLVIa0g0aYlf4 BlT8SkVyzct7CMD0R081oO2zVySGwOTwp3suI3Do= Received: from DFLE101.ent.ti.com (dfle101.ent.ti.com [10.64.6.22]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w417Ifb1012846; Tue, 1 May 2018 02:18:41 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Tue, 1 May 2018 02:18:41 -0500 Received: from DFLE103.ent.ti.com ([fe80::7431:ea48:7659:dc14]) by DFLE103.ent.ti.com ([fe80::7431:ea48:7659:dc14%17]) with mapi id 15.01.1466.003; Tue, 1 May 2018 02:18:41 -0500 From: "Reizer, Eyal" To: Eyal Reizer , "bcousson@baylibre.com" , "tony@atomide.com" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "linux-omap@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [EXTERNAL] [tiL4.14-CON PATCH v2] ARM: dts: am437x-sk-evm: add wilink8 support Thread-Topic: [EXTERNAL] [tiL4.14-CON PATCH v2] ARM: dts: am437x-sk-evm: add wilink8 support Thread-Index: AQHT4RvpFac1ronb+Ua+LEoMa2fEH6QadrEg Date: Tue, 1 May 2018 07:18:41 +0000 Message-ID: <72f9d7d4f85b4ebdb1d15a0a642c7a20@ti.com> References: <1525158789-32255-1-git-send-email-eyalr@ti.com> In-Reply-To: <1525158789-32255-1-git-send-email-eyalr@ti.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [137.167.25.139] x-exclaimer-md-config: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Please discard. Wrong patch header. Will resend. Sorry about that. >=20 > enable mmc3 used for wlan and uart1 used for bluetooth > configure the gpios used for wlan and bluetooth controls > add fixed voltage regulator used for wlan power control >=20 > Signed-off-by: Eyal Reizer > --- > arch/arm/boot/dts/am437x-sk-evm.dts | 115 > ++++++++++++++++++++++++++++++++++++ > 1 file changed, 115 insertions(+) >=20 > diff --git a/arch/arm/boot/dts/am437x-sk-evm.dts > b/arch/arm/boot/dts/am437x-sk-evm.dts > index 16d9db0..afffdb1 100644 > --- a/arch/arm/boot/dts/am437x-sk-evm.dts > +++ b/arch/arm/boot/dts/am437x-sk-evm.dts > @@ -15,6 +15,7 @@ > #include > #include > #include > +#include >=20 > / { > model =3D "TI AM437x SK EVM"; > @@ -158,6 +159,22 @@ > }; > }; > }; > + > + vmmcwl_fixed: fixedregulator-mmcwl { > + /* > + * WL_EN is not SDIO standard compliant. It is an out of band > + * signal and hard to be dealt with in a standard way by the > + * SDIO core driver. > + * So modelling the WL_EN line as a regulator was a natural > + * choice as the MMC core already deals with MMC supplies. > + */ > + compatible =3D "regulator-fixed"; > + regulator-name =3D "vmmcwl_fixed"; > + regulator-min-microvolt =3D <1800000>; > + regulator-max-microvolt =3D <1800000>; > + gpio =3D <&gpio4 8 GPIO_ACTIVE_HIGH>; > + enable-active-high; > + }; > }; >=20 > &am43xx_pinmux { > @@ -424,6 +441,62 @@ > AM4372_IOPAD(0xac4, PIN_OUTPUT | > MUX_MODE0) /* usb0_drvvbus.usb0_drvvbus */ > >; > }; > + > + mmc3_pins_default: pinmux_mmc3_pins_default { > + pinctrl-single,pins =3D < > + AM4372_IOPAD(0x9f0, PIN_INPUT_PULLUP | > MUX_MODE3) /* (AD21) cam1_data2.mmc2_clk */ > + AM4372_IOPAD(0x9f4, PIN_INPUT_PULLUP | > MUX_MODE3) /* (AE22) cam1_data3.mmc2_cmd */ > + AM4372_IOPAD(0x9f8, PIN_INPUT_PULLUP | > MUX_MODE3) /* (AD22) cam1_data4.mmc2_dat0 */ > + AM4372_IOPAD(0x9fc, PIN_INPUT_PULLUP | > MUX_MODE3) /* (AE23) cam1_data5.mmc2_dat1 */ > + AM4372_IOPAD(0xa00, PIN_INPUT_PULLUP | > MUX_MODE3) /* (AD23) cam1_data6.mmc2_dat2 */ > + AM4372_IOPAD(0xa04, PIN_INPUT_PULLUP | > MUX_MODE3) /* (AE24) cam1_data7.mmc2_dat3 */ > + >; > + }; > + > + mmc3_pins_sleep: pinmux_mmc3_pins_sleep { > + pinctrl-single,pins =3D < > + AM4372_IOPAD(0x9f0, PIN_INPUT_PULLDOWN | > MUX_MODE7) /* (AD21) cam1_data2.mmc2_clk */ > + AM4372_IOPAD(0x9f4, PIN_INPUT_PULLDOWN | > MUX_MODE7) /* (AE22) cam1_data3.mmc2_cmd */ > + AM4372_IOPAD(0x9f8, PIN_INPUT_PULLDOWN | > MUX_MODE7) /* (AD22) cam1_data4.mmc2_dat0 */ > + AM4372_IOPAD(0x9fc, PIN_INPUT_PULLDOWN | > MUX_MODE7) /* (AE23) cam1_data5.mmc2_dat1 */ > + AM4372_IOPAD(0xa00, PIN_INPUT_PULLDOWN | > MUX_MODE7) /* (AD23) cam1_data6.mmc2_dat2 */ > + AM4372_IOPAD(0xa04, PIN_INPUT_PULLDOWN | > MUX_MODE7) /* (AE24) cam1_data7.mmc2_dat3 */ > + >; > + }; > + > + wlan_pins_default: pinmux_wlan_pins_default { > + pinctrl-single,pins =3D < > + AM4372_IOPAD(0x9d0, PIN_OUTPUT_PULLDOWN | > MUX_MODE7) /* cam1_data8.gpio4_8 WL_EN */ > + AM4372_IOPAD(0x9e4, PIN_INPUT | > WAKEUP_ENABLE | MUX_MODE7) /* cam1_wen.gpio4_13 WL_IRQ */ > + >; > + }; > + > + wlan_pins_sleep: pinmux_wlan_pins_sleep { > + pinctrl-single,pins =3D < > + AM4372_IOPAD(0x9d0, PIN_OUTPUT_PULLDOWN | > MUX_MODE7) /* cam1_data8.gpio4_8 WL_EN */ > + AM4372_IOPAD(0x9e4, PIN_INPUT | > WAKEUP_ENABLE | MUX_MODE7) /* cam1_wen.gpio4_13 WL_IRQ */ > + >; > + }; > + > + uart1_bt_pins_default: pinmux_uart1_bt_pins_default { > + pinctrl-single,pins =3D < > + AM4372_IOPAD(0x980, PIN_INPUT | MUX_MODE0) > /* uart1_rxd.uart1_rxd */ > + AM4372_IOPAD(0x984, PIN_OUTPUT_PULLDOWN | > MUX_MODE0) /* uart1_txd.uart1_txd */ > + AM4372_IOPAD(0x978, PIN_INPUT_PULLUP | > MUX_MODE0) /* uart1_ctsn.uart1_ctsn */ > + AM4372_IOPAD(0x97c, PIN_OUTPUT_PULLDOWN | > MUX_MODE0) /* uart1_rtsn.uart1_rtsn */ > + AM4372_IOPAD(0x9cc, PIN_OUTPUT_PULLDOWN | > MUX_MODE7) /* cam1_data9.gpio4_7 BT_EN */ > + >; > + }; > + > + uart1_bt_pins_sleep: pinmux_uart1_bt_pins_sleep { > + pinctrl-single,pins =3D < > + AM4372_IOPAD(0x980, PIN_OUTPUT_PULLDOWN | > MUX_MODE7) /* uart1_rxd.uart1_rxd */ > + AM4372_IOPAD(0x984, PIN_OUTPUT_PULLDOWN | > MUX_MODE7) /* uart1_txd.uart1_txd */ > + AM4372_IOPAD(0x978, PIN_OUTPUT_PULLDOWN | > MUX_MODE7) /* uart1_ctsn.uart1_ctsn */ > + AM4372_IOPAD(0x97c, PIN_OUTPUT_PULLDOWN | > MUX_MODE7) /* uart1_rtsn.uart1_rtsn */ > + AM4372_IOPAD(0x9cc, PIN_OUTPUT_PULLUP | > MUX_MODE7) /* cam1_data9.gpio4_7 BT_EN */ > + >; > + }; > }; >=20 > &i2c0 { > @@ -606,6 +679,10 @@ > status =3D "okay"; > }; >=20 > +&gpio4 { > + status =3D "okay"; > +}; > + > &gpio5 { > status =3D "okay"; > }; > @@ -620,6 +697,44 @@ > cd-gpios =3D <&gpio0 6 GPIO_ACTIVE_LOW>; > }; >=20 > +&uart1 { > + status =3D "okay"; > + pinctrl-names =3D "default", "sleep"; > + pinctrl-0 =3D <&uart1_bt_pins_default>; > + pinctrl-1 =3D <&uart1_bt_pins_sleep>; > +}; > + > +&mmc3 { > + status =3D "okay"; > + /* > + * these are on the crossbar and are outlined in the > + * xbar-event-map element > + */ > + dmas =3D <&edma_xbar 30 0 1>, > + <&edma_xbar 31 0 2>; > + dma-names =3D "tx", "rx"; > + vmmc-supply =3D <&vmmcwl_fixed>; > + bus-width =3D <4>; > + pinctrl-names =3D "default", "sleep"; > + pinctrl-0 =3D <&mmc3_pins_default>; > + pinctrl-1 =3D <&mmc3_pins_sleep>; > + cap-power-off-card; > + keep-power-in-suspend; > + ti,non-removable; > + > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + wlcore: wlcore@0 { > + compatible =3D "ti,wl1835"; > + pinctrl-names =3D "default", "sleep"; > + pinctrl-0 =3D <&wlan_pins_default>; > + pinctrl-1 =3D <&wlan_pins_sleep>; > + reg =3D <2>; > + interrupt-parent =3D <&gpio4>; > + interrupts =3D <13 IRQ_TYPE_LEVEL_HIGH>; > + }; > +}; > + > &usb2_phy1 { > status =3D "okay"; > }; > -- > 2.7.4