linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: qcom: msm8974-hammerhead: add WiFi support
@ 2018-11-04 21:50 Brian Masney
  2018-11-28 23:07 ` Bjorn Andersson
  0 siblings, 1 reply; 2+ messages in thread
From: Brian Masney @ 2018-11-04 21:50 UTC (permalink / raw)
  To: andy.gross, david.brown, robh+dt, mark.rutland
  Cc: linux-arm-msm, linux-soc, devicetree, linux-kernel, Jonathan Marek

From: Jonathan Marek <jonathan@marek.ca>

This patch adds WiFi support to the LG Nexus 5 (hammerhead) phone.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
[masneyb@onstation.org: Enabled wlan_regulator_pin and wlan_sleep_clk_pin]
Signed-off-by: Brian Masney <masneyb@onstation.org>
---
 .../qcom-msm8974-lge-nexus5-hammerhead.dts    | 70 +++++++++++++++++++
 1 file changed, 70 insertions(+)

diff --git a/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts b/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
index fe2b5524a679..7fad5a48d4a3 100644
--- a/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
+++ b/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
@@ -221,6 +221,20 @@
 			};
 		};
 	};
+
+	vreg_wlan: wlan-regulator {
+		compatible = "regulator-fixed";
+
+		regulator-name = "wl-reg";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+
+		gpio = <&msmgpio 26 GPIO_ACTIVE_HIGH>;
+		enable-active-high;
+
+		pinctrl-names = "default";
+		pinctrl-0 = <&wlan_regulator_pin>;
+	};
 };
 
 &soc {
@@ -253,6 +267,20 @@
 			};
 		};
 
+		sdhc2_pin_a: sdhc2-pin-active {
+			clk {
+				pins = "sdc2_clk";
+				drive-strength = <6>;
+				bias-disable;
+			};
+
+			cmd-data {
+				pins = "sdc2_cmd", "sdc2_data";
+				drive-strength = <6>;
+				bias-pull-up;
+			};
+		};
+
 		i2c3_pins: i2c3 {
 			mux {
 				pins = "gpio10", "gpio11";
@@ -324,6 +352,32 @@
 		pinctrl-0 = <&sdhc1_pin_a>;
 	};
 
+	sdhci@f98a4900 {
+		status = "ok";
+
+		max-frequency = <100000000>;
+		bus-width = <4>;
+		non-removable;
+		vmmc-supply = <&vreg_wlan>;
+		vqmmc-supply = <&pm8941_s3>;
+
+		pinctrl-names = "default";
+		pinctrl-0 = <&sdhc2_pin_a>;
+
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		bcrmf@1 {
+			compatible = "brcm,bcm4339-fmac", "brcm,bcm4329-fmac";
+			reg = <1>;
+
+			brcm,drive-strength = <10>;
+
+			pinctrl-names = "default";
+			pinctrl-0 = <&wlan_sleep_clk_pin>;
+		};
+	};
+
 	gpio-keys {
 		compatible = "gpio-keys";
 		input-name = "gpio-keys";
@@ -463,6 +517,22 @@
 				output-high;
 				line-name = "otg-gpio";
 			};
+
+			wlan_sleep_clk_pin: wl-sleep-clk {
+				pins = "gpio16";
+				function = "func2";
+
+				output-high;
+				power-source = <PM8941_GPIO_S3>;
+			};
+
+			wlan_regulator_pin: wl-reg-active {
+				pins = "gpio17";
+				function = "normal";
+
+				bias-disable;
+				power-source = <PM8941_GPIO_S3>;
+			};
 		};
 	};
 };
-- 
2.17.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ARM: dts: qcom: msm8974-hammerhead: add WiFi support
  2018-11-04 21:50 [PATCH] ARM: dts: qcom: msm8974-hammerhead: add WiFi support Brian Masney
@ 2018-11-28 23:07 ` Bjorn Andersson
  0 siblings, 0 replies; 2+ messages in thread
From: Bjorn Andersson @ 2018-11-28 23:07 UTC (permalink / raw)
  To: Brian Masney
  Cc: andy.gross, david.brown, robh+dt, mark.rutland, linux-arm-msm,
	linux-soc, devicetree, linux-kernel, Jonathan Marek

On Sun 04 Nov 13:50 PST 2018, Brian Masney wrote:

> From: Jonathan Marek <jonathan@marek.ca>
> 
> This patch adds WiFi support to the LG Nexus 5 (hammerhead) phone.
> 
> Signed-off-by: Jonathan Marek <jonathan@marek.ca>
> [masneyb@onstation.org: Enabled wlan_regulator_pin and wlan_sleep_clk_pin]
> Signed-off-by: Brian Masney <masneyb@onstation.org>

Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>

Regards,
Bjorn

> ---
>  .../qcom-msm8974-lge-nexus5-hammerhead.dts    | 70 +++++++++++++++++++
>  1 file changed, 70 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts b/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
> index fe2b5524a679..7fad5a48d4a3 100644
> --- a/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
> +++ b/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
> @@ -221,6 +221,20 @@
>  			};
>  		};
>  	};
> +
> +	vreg_wlan: wlan-regulator {
> +		compatible = "regulator-fixed";
> +
> +		regulator-name = "wl-reg";
> +		regulator-min-microvolt = <3300000>;
> +		regulator-max-microvolt = <3300000>;
> +
> +		gpio = <&msmgpio 26 GPIO_ACTIVE_HIGH>;
> +		enable-active-high;
> +
> +		pinctrl-names = "default";
> +		pinctrl-0 = <&wlan_regulator_pin>;
> +	};
>  };
>  
>  &soc {
> @@ -253,6 +267,20 @@
>  			};
>  		};
>  
> +		sdhc2_pin_a: sdhc2-pin-active {
> +			clk {
> +				pins = "sdc2_clk";
> +				drive-strength = <6>;
> +				bias-disable;
> +			};
> +
> +			cmd-data {
> +				pins = "sdc2_cmd", "sdc2_data";
> +				drive-strength = <6>;
> +				bias-pull-up;
> +			};
> +		};
> +
>  		i2c3_pins: i2c3 {
>  			mux {
>  				pins = "gpio10", "gpio11";
> @@ -324,6 +352,32 @@
>  		pinctrl-0 = <&sdhc1_pin_a>;
>  	};
>  
> +	sdhci@f98a4900 {
> +		status = "ok";
> +
> +		max-frequency = <100000000>;
> +		bus-width = <4>;
> +		non-removable;
> +		vmmc-supply = <&vreg_wlan>;
> +		vqmmc-supply = <&pm8941_s3>;
> +
> +		pinctrl-names = "default";
> +		pinctrl-0 = <&sdhc2_pin_a>;
> +
> +		#address-cells = <1>;
> +		#size-cells = <0>;
> +
> +		bcrmf@1 {
> +			compatible = "brcm,bcm4339-fmac", "brcm,bcm4329-fmac";
> +			reg = <1>;
> +
> +			brcm,drive-strength = <10>;
> +
> +			pinctrl-names = "default";
> +			pinctrl-0 = <&wlan_sleep_clk_pin>;
> +		};
> +	};
> +
>  	gpio-keys {
>  		compatible = "gpio-keys";
>  		input-name = "gpio-keys";
> @@ -463,6 +517,22 @@
>  				output-high;
>  				line-name = "otg-gpio";
>  			};
> +
> +			wlan_sleep_clk_pin: wl-sleep-clk {
> +				pins = "gpio16";
> +				function = "func2";
> +
> +				output-high;
> +				power-source = <PM8941_GPIO_S3>;
> +			};
> +
> +			wlan_regulator_pin: wl-reg-active {
> +				pins = "gpio17";
> +				function = "normal";
> +
> +				bias-disable;
> +				power-source = <PM8941_GPIO_S3>;
> +			};
>  		};
>  	};
>  };
> -- 
> 2.17.2
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-11-28 23:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-04 21:50 [PATCH] ARM: dts: qcom: msm8974-hammerhead: add WiFi support Brian Masney
2018-11-28 23:07 ` Bjorn Andersson

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).