1 From 83b944174ad79825ae84a47af1a0354485b24602 Mon Sep 17 00:00:00 2001
2 From: Jan Kiszka <jan.kiszka@siemens.com>
3 Date: Thu, 24 Jan 2019 08:52:33 +0100
4 Subject: arm64: dts: hikey: Give wifi some time after power-on
6 From: Jan Kiszka <jan.kiszka@siemens.com>
8 commit 83b944174ad79825ae84a47af1a0354485b24602 upstream.
10 Somewhere along recent changes to power control of the wl1835, power-on
11 became very unreliable on the hikey, failing like this:
13 wl1271_sdio: probe of mmc2:0001:1 failed with error -16
14 wl1271_sdio: probe of mmc2:0001:2 failed with error -16
16 After playing with some dt parameters and comparing to other users of
17 this chip, it turned out we need some power-on delay to make things
18 stable again. In contrast to those other users which define 200 ms, the
19 hikey would already be happy with 1 ms. Still, we use the safer 10 ms,
22 Fixes: ea452678734e ("arm64: dts: hikey: Fix WiFi support")
23 Cc: <stable@vger.kernel.org> #4.12+
24 Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
25 Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
26 Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
27 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
30 arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 1 +
31 1 file changed, 1 insertion(+)
33 --- a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts
34 +++ b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts
36 reset-gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
38 clock-names = "ext_clock";
39 + post-power-on-delay-ms = <10>;
40 power-off-delay-us = <10>;