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

ARM: dts: qs600: add pwrseq support to WLAN

Add pwrseq support to sdcc4 which would enable a proper reset of WLAN
without ugly hacks in the board support file.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Andy Gross <agross@codeaurora.org>

authored by

Srinivas Kandagatla and committed by
Andy Gross
f0b6d950 03f00be5

+32
+32
arch/arm/boot/dts/qcom-apq8064-cm-qs600.dts
··· 1 1 #include "qcom-apq8064-v2.0.dtsi" 2 + #include <dt-bindings/gpio/gpio.h> 3 + #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 2 4 3 5 / { 4 6 model = "CompuLab CM-QS600"; ··· 12 10 13 11 chosen { 14 12 stdout-path = "serial0:115200n8"; 13 + }; 14 + 15 + pwrseq { 16 + #address-cells = <1>; 17 + #size-cells = <1>; 18 + ranges; 19 + compatible = "simple-bus"; 20 + 21 + sdcc4_pwrseq: sdcc4_pwrseq { 22 + pinctrl-names = "default"; 23 + pinctrl-0 = <&wlan_default_gpios>; 24 + compatible = "mmc-pwrseq-simple"; 25 + reset-gpios = <&pm8921_gpio 43 GPIO_ACTIVE_LOW>; 26 + }; 15 27 }; 16 28 17 29 soc { ··· 170 154 regulator-always-on; 171 155 }; 172 156 157 + qcom,ssbi@500000 { 158 + pmic@0 { 159 + gpio@150 { 160 + wlan_default_gpios: wlan-gpios { 161 + pios { 162 + pins = "gpio43"; 163 + function = "normal"; 164 + bias-disable; 165 + power-source = <PM8921_GPIO_S4>; 166 + }; 167 + }; 168 + }; 169 + }; 170 + }; 171 + 173 172 amba { 174 173 /* eMMC */ 175 174 sdcc1: sdcc@12400000 { ··· 203 172 status = "okay"; 204 173 vmmc-supply = <&v3p3_fixed>; 205 174 vqmmc-supply = <&v3p3_fixed>; 175 + mmc-pwrseq = <&sdcc4_pwrseq>; 206 176 }; 207 177 }; 208 178 };