Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: qcom: msm8974-hammerhead: add WiFi support

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>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>

Signed-off-by: Andy Gross <andy.gross@linaro.org>

authored by

Jonathan Marek and committed by
Andy Gross
ec4c6c57 57c23241

+70
+70
arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
··· 220 220 }; 221 221 }; 222 222 }; 223 + 224 + vreg_wlan: wlan-regulator { 225 + compatible = "regulator-fixed"; 226 + 227 + regulator-name = "wl-reg"; 228 + regulator-min-microvolt = <3300000>; 229 + regulator-max-microvolt = <3300000>; 230 + 231 + gpio = <&msmgpio 26 GPIO_ACTIVE_HIGH>; 232 + enable-active-high; 233 + 234 + pinctrl-names = "default"; 235 + pinctrl-0 = <&wlan_regulator_pin>; 236 + }; 223 237 }; 224 238 225 239 &soc { ··· 252 238 cmd-data { 253 239 pins = "sdc1_cmd", "sdc1_data"; 254 240 drive-strength = <10>; 241 + bias-pull-up; 242 + }; 243 + }; 244 + 245 + sdhc2_pin_a: sdhc2-pin-active { 246 + clk { 247 + pins = "sdc2_clk"; 248 + drive-strength = <6>; 249 + bias-disable; 250 + }; 251 + 252 + cmd-data { 253 + pins = "sdc2_cmd", "sdc2_data"; 254 + drive-strength = <6>; 255 255 bias-pull-up; 256 256 }; 257 257 }; ··· 309 281 310 282 pinctrl-names = "default"; 311 283 pinctrl-0 = <&sdhc1_pin_a>; 284 + }; 285 + 286 + sdhci@f98a4900 { 287 + status = "ok"; 288 + 289 + max-frequency = <100000000>; 290 + bus-width = <4>; 291 + non-removable; 292 + vmmc-supply = <&vreg_wlan>; 293 + vqmmc-supply = <&pm8941_s3>; 294 + 295 + pinctrl-names = "default"; 296 + pinctrl-0 = <&sdhc2_pin_a>; 297 + 298 + #address-cells = <1>; 299 + #size-cells = <0>; 300 + 301 + bcrmf@1 { 302 + compatible = "brcm,bcm4339-fmac", "brcm,bcm4329-fmac"; 303 + reg = <1>; 304 + 305 + brcm,drive-strength = <10>; 306 + 307 + pinctrl-names = "default"; 308 + pinctrl-0 = <&wlan_sleep_clk_pin>; 309 + }; 312 310 }; 313 311 314 312 gpio-keys { ··· 423 369 function = "normal"; 424 370 425 371 bias-pull-up; 372 + power-source = <PM8941_GPIO_S3>; 373 + }; 374 + 375 + wlan_sleep_clk_pin: wl-sleep-clk { 376 + pins = "gpio16"; 377 + function = "func2"; 378 + 379 + output-high; 380 + power-source = <PM8941_GPIO_S3>; 381 + }; 382 + 383 + wlan_regulator_pin: wl-reg-active { 384 + pins = "gpio17"; 385 + function = "normal"; 386 + 387 + bias-disable; 426 388 power-source = <PM8941_GPIO_S3>; 427 389 }; 428 390 };