Skip to content

Commit 69dcdde

Browse files
committed
Merge tag 'imx-fixes-4.20-3' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux into fixes
i.MX fixes for 4.20, round 3: - A couple of fixes on imx7d-pico and imx7d-nitrogen7 boards to correct the description of the Wifi clock. - Change SW2ISO count to get a safer ARM LDO ramp-up time, so that different boards can be covered. This fixes the ARM LDO failure seen on some customer boards. * tag 'imx-fixes-4.20-3' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux: ARM: dts: imx7d-nitrogen7: Fix the description of the Wifi clock ARM: imx: update the cpu power up timing setting on i.mx6sx ARM: dts: imx7d-pico: Describe the Wifi clock Signed-off-by: Olof Johansson <olof@lixom.net>
2 parents d9536e8 + f15096f commit 69dcdde

File tree

3 files changed

+29
-4
lines changed

3 files changed

+29
-4
lines changed

arch/arm/boot/dts/imx7d-nitrogen7.dts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,17 @@
8686
compatible = "regulator-fixed";
8787
regulator-min-microvolt = <3300000>;
8888
regulator-max-microvolt = <3300000>;
89-
clocks = <&clks IMX7D_CLKO2_ROOT_DIV>;
90-
clock-names = "slow";
9189
regulator-name = "reg_wlan";
9290
startup-delay-us = <70000>;
9391
gpio = <&gpio4 21 GPIO_ACTIVE_HIGH>;
9492
enable-active-high;
9593
};
94+
95+
usdhc2_pwrseq: usdhc2_pwrseq {
96+
compatible = "mmc-pwrseq-simple";
97+
clocks = <&clks IMX7D_CLKO2_ROOT_DIV>;
98+
clock-names = "ext_clock";
99+
};
96100
};
97101

98102
&adc1 {
@@ -375,6 +379,7 @@
375379
bus-width = <4>;
376380
non-removable;
377381
vmmc-supply = <&reg_wlan>;
382+
mmc-pwrseq = <&usdhc2_pwrseq>;
378383
cap-power-off-card;
379384
keep-power-in-suspend;
380385
status = "okay";

arch/arm/boot/dts/imx7d-pico.dtsi

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,19 @@
100100
regulator-min-microvolt = <1800000>;
101101
regulator-max-microvolt = <1800000>;
102102
};
103+
104+
usdhc2_pwrseq: usdhc2_pwrseq {
105+
compatible = "mmc-pwrseq-simple";
106+
clocks = <&clks IMX7D_CLKO2_ROOT_DIV>;
107+
clock-names = "ext_clock";
108+
};
109+
};
110+
111+
&clks {
112+
assigned-clocks = <&clks IMX7D_CLKO2_ROOT_SRC>,
113+
<&clks IMX7D_CLKO2_ROOT_DIV>;
114+
assigned-clock-parents = <&clks IMX7D_CKIL>;
115+
assigned-clock-rates = <0>, <32768>;
103116
};
104117

105118
&i2c4 {
@@ -199,12 +212,13 @@
199212

200213
&usdhc2 { /* Wifi SDIO */
201214
pinctrl-names = "default";
202-
pinctrl-0 = <&pinctrl_usdhc2>;
215+
pinctrl-0 = <&pinctrl_usdhc2 &pinctrl_wifi_clk>;
203216
no-1-8-v;
204217
non-removable;
205218
keep-power-in-suspend;
206219
wakeup-source;
207220
vmmc-supply = <&reg_ap6212>;
221+
mmc-pwrseq = <&usdhc2_pwrseq>;
208222
status = "okay";
209223
};
210224

@@ -301,6 +315,12 @@
301315
};
302316

303317
&iomuxc_lpsr {
318+
pinctrl_wifi_clk: wificlkgrp {
319+
fsl,pins = <
320+
MX7D_PAD_LPSR_GPIO1_IO03__CCM_CLKO2 0x7d
321+
>;
322+
};
323+
304324
pinctrl_wdog: wdoggrp {
305325
fsl,pins = <
306326
MX7D_PAD_LPSR_GPIO1_IO00__WDOG1_WDOG_B 0x74

arch/arm/mach-imx/cpuidle-imx6sx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ int __init imx6sx_cpuidle_init(void)
110110
* except for power up sw2iso which need to be
111111
* larger than LDO ramp up time.
112112
*/
113-
imx_gpc_set_arm_power_up_timing(2, 1);
113+
imx_gpc_set_arm_power_up_timing(0xf, 1);
114114
imx_gpc_set_arm_power_down_timing(1, 1);
115115

116116
return cpuidle_register(&imx6sx_cpuidle_driver, NULL);

0 commit comments

Comments
 (0)