linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: shawnguo@kernel.org (Shawn Guo)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/3] ARM: dts: imx7d-sdb: Add Wifi support
Date: Mon, 5 Jun 2017 09:54:02 +0800	[thread overview]
Message-ID: <20170605015401.GF4094@dragon> (raw)
In-Reply-To: <1496084460-20910-2-git-send-email-festevam@gmail.com>

On Mon, May 29, 2017 at 04:00:59PM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@nxp.com>
> 
> imx7d-sdb has a BCM4339 Wifi chip connected to USDHC2.
> 
> Add support for it.
> 
> While at it, move the WL_REG_ON pin to the correct pinctrl node.
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
> ---
>  arch/arm/boot/dts/imx7d-sdb.dts | 32 +++++++++++++++++++++++++++++++-
>  1 file changed, 31 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/arm/boot/dts/imx7d-sdb.dts b/arch/arm/boot/dts/imx7d-sdb.dts
> index 38944ca..fc7e0b0 100644
> --- a/arch/arm/boot/dts/imx7d-sdb.dts
> +++ b/arch/arm/boot/dts/imx7d-sdb.dts
> @@ -105,6 +105,18 @@
>  		regulator-min-microvolt = <1800000>;
>  		regulator-max-microvolt = <1800000>;
>  	};
> +
> +	reg_brcm: regulator-brcm {
> +		compatible = "regulator-fixed";
> +		gpio = <&gpio4 21 GPIO_ACTIVE_HIGH>;
> +		enable-active-high;
> +		regulator-name = "brcm_reg";
> +		pinctrl-names = "default";
> +		pinctrl-0 = <&pinctrl_brcm_reg>;
> +		regulator-min-microvolt = <3300000>;
> +		regulator-max-microvolt = <3300000>;
> +		startup-delay-us = <200000>;
> +	};
>  };
>  
>  &adc1 {
> @@ -379,6 +391,19 @@
>  	status = "okay";
>  };
>  
> +&usdhc2 {
> +	pinctrl-names = "default", "state_100mhz", "state_200mhz";
> +	pinctrl-0 = <&pinctrl_usdhc2>;
> +	pinctrl-1 = <&pinctrl_usdhc2_100mhz>;
> +	pinctrl-2 = <&pinctrl_usdhc2_200mhz>;
> +	enable-sdio-wakeup;

Use 'wakeup-source' instead.

Shawn

> +	keep-power-in-suspend;
> +	non-removable;
> +	vmmc-supply = <&reg_brcm>;
> +	fsl,tuning-step = <2>;
> +	status = "okay";
> +};
> +
>  &usdhc3 {
>  	pinctrl-names = "default", "state_100mhz", "state_200mhz";
>  	pinctrl-0 = <&pinctrl_usdhc3>;
> @@ -403,6 +428,12 @@
>  	pinctrl-0 = <&pinctrl_hog>;
>  
>  	imx7d-sdb {
> +		pinctrl_brcm_reg: brcmreggrp {
> +			fsl,pins = <
> +				MX7D_PAD_ECSPI2_MOSI__GPIO4_IO21	0x14
> +			>;
> +		};
> +
>  		pinctrl_ecspi3: ecspi3grp {
>  			fsl,pins = <
>  				MX7D_PAD_SAI2_TX_SYNC__ECSPI3_MISO	0x2
> @@ -570,7 +601,6 @@
>  				MX7D_PAD_SD2_DATA1__SD2_DATA1		0x59
>  				MX7D_PAD_SD2_DATA2__SD2_DATA2		0x59
>  				MX7D_PAD_SD2_DATA3__SD2_DATA3		0x59
> -				MX7D_PAD_ECSPI2_MOSI__GPIO4_IO21	0x59 /* WL_REG_ON */
>  			>;
>  		};
>  
> -- 
> 2.7.4
> 

  reply	other threads:[~2017-06-05  1:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-29 19:00 [PATCH 1/3] ARM: dts: imx7d-sdb: Adjust the regulator nodes Fabio Estevam
2017-05-29 19:00 ` [PATCH 2/3] ARM: dts: imx7d-sdb: Add Wifi support Fabio Estevam
2017-06-05  1:54   ` Shawn Guo [this message]
2017-05-29 19:01 ` [PATCH 3/3] ARM: dts: imx7d-sdb: Add Bluetooth support Fabio Estevam
2017-06-05  2:02   ` Shawn Guo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170605015401.GF4094@dragon \
    --to=shawnguo@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).