ARM: dts: imx7d-nitrogen7: Fix the description of the Wifi clock
Subsystems (2)
Fabio Estevam
reviewerPATCH 1/1 ARM: dts: imx7d-nitrogen7: Fix the description of the Wifi clock
According to bindings/regulator/fixed-regulator.txt the 'clocks' and 'clock-names' properties are not valid ones.
In order to turn on the Wifi clock the correct location for describing the CLKO2 clock is via a mmc-pwrseq handle, so do it accordingly.
--- arch/arm/boot/dts/imx7d-nitrogen7.dts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
arch/arm/boot/dts/imx7d-nitrogen7.dts +7 -2
@@ -87,13 +87,17 @@ compatible = "regulator-fixed"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; - clocks = <&clks IMX7D_CLKO2_ROOT_DIV>; - clock-names = "slow"; regulator-name = "reg_wlan"; startup-delay-us = <70000>; gpio = <&gpio4 21 GPIO_ACTIVE_HIGH>; enable-active-high; }; + + usdhc2_pwrseq: usdhc2_pwrseq { + compatible = "mmc-pwrseq-simple"; + clocks = <&clks IMX7D_CLKO2_ROOT_DIV>; + clock-names = "slow"; + }; }; &adc1 {
@@ -376,6 +380,7 @@ bus-width = <4>; non-removable; vmmc-supply = <®_wlan>; + mmc-pwrseq = <&usdhc2_pwrseq>; cap-power-off-card; keep-power-in-suspend; status = "okay";
Signature · 7 lines
2.7.4 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Hi,
Quoted 19 lines · Fabio Estevam
According to
bindings/regulator/fixed-regulator.txtthe 'clocks' and 'clock-names' properties are not valid ones.In order to turn on the Wifi clock the correct location for describing the CLKO2 clock is via a mmc-pwrseq handle, so do it accordingly.
Fixes 56354959cfec ("ARM: dts: imx: add Boundary Devices Nitrogen7 board")Signed-off-by Fabio Estevam <[email protected]>Acked-by Troy Kisky <[email protected]>--- arch/arm/boot/dts/imx7d-nitrogen7.dts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)arch/arm/boot/dts/imx7d-nitrogen7.dts +0
-0
arch/arm/boot/dts/imx7d-nitrogen7.dts line 94
Quoted 10 lines
arch/arm/boot/dts/imx7d-nitrogen7.dts +0
-2@@ -87,13 +87,17 @@ compatible = "regulator-fixed"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; - clocks = <&clks IMX7D_CLKO2_ROOT_DIV>; - clock-names = "slow"; regulator-name = "reg_wlan"; startup-delay-us = <70000>; gpio = <&gpio4 21 GPIO_ACTIVE_HIGH>; enable-active-high; };
Actually the whole regulator should be changed into a pwrseq as it is really a WL_EN signal.
arch/arm/boot/dts/imx7d-nitrogen7.dts line 99
Quoted 5 lines
arch/arm/boot/dts/imx7d-nitrogen7.dts +5
-0+ + usdhc2_pwrseq: usdhc2_pwrseq { + compatible = "mmc-pwrseq-simple"; + clocks = <&clks IMX7D_CLKO2_ROOT_DIV>; + clock-names = "slow";
Shouldn't the name be "ext_clock"?
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/mmc/core/pwrseq_simple.c#n121
Regards,
Gary
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Fabio Estevam
reviewerHi Gary,
Quoted 2 lines · Gary Bisson
Actually the whole regulator should be changed into a pwrseq as it is really a
WL_ENsignal.
Documentation/devicetree/bindings/mmc/mmc-pwrseq-simple.txt only lists a 'reset-gpios' entry, so it seems this should stays as regulator.
Quoted 7 lines
arch/arm/boot/dts/imx7d-nitrogen7.dts line 99
Quoted 5 lines
arch/arm/boot/dts/imx7d-nitrogen7.dts +5
-0+ + usdhc2_pwrseq: usdhc2_pwrseq { + compatible = "mmc-pwrseq-simple"; + clocks = <&clks IMX7D_CLKO2_ROOT_DIV>; + clock-names = "slow";Shouldn't the name be "
ext_clock"?
Yes, you are correct.
If you agree that we should keep the regulator as is, then I can send a v2.
Thanks
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 17 lines · Fabio Estevam
Hi Gary,
Quoted 2 lines · Gary Bisson
Actually the whole regulator should be changed into a pwrseq as it is really a
WL_ENsignal.
Documentation/devicetree/bindings/mmc/mmc-pwrseq-simple.txtonly lists a 'reset-gpios' entry, so it seems this should stays as regulator.Quoted 6 lines
Quoted 5 lines
arch/arm/boot/dts/imx7d-nitrogen7.dts +5
-0+ + usdhc2_pwrseq: usdhc2_pwrseq { + compatible = "mmc-pwrseq-simple"; + clocks = <&clks IMX7D_CLKO2_ROOT_DIV>; + clock-names = "slow";
Quoted 5 lines
Quoted 1 line
Shouldn't the name be "
ext_clock"?Yes, you are correct.
If you agree that we should keep the regulator as is, then I can send a v2.
Okay, dropped RFC patch and waiting for new version.
Shawn
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel