Skip to contentSkip to conversation

ARM: dts: imx7d-nitrogen7: Fix the description of the Wifi clock

PATCH Superseded Fabio Estevam 3 participants 4 messages Nov 30, 2018 – Dec 5, 2018

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 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.

Fixes 56354959cfec ("ARM: dts: imx: add Boundary Devices Nitrogen7 board")
---
 arch/arm/boot/dts/imx7d-nitrogen7.dts | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
arch/arm/boot/dts/imx7d-nitrogen7.dts +7 -2
index 4fb7e84..9ba9084 100644
@@ -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 = <&reg_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
#1 lore raw

Hi,

Quoted 19 lines · Fabio Estevam

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.

Fixes 56354959cfec ("ARM: dts: imx: add Boundary Devices Nitrogen7 board")
---
 arch/arm/boot/dts/imx7d-nitrogen7.dts | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
arch/arm/boot/dts/imx7d-nitrogen7.dts +0 -0
index 4fb7e84..9ba9084 100644

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

author reviewer
#2 lore raw

Hi Gary,

Quoted 2 lines · Gary Bisson

Actually the whole regulator should be changed into a pwrseq as it is really a WL_EN signal.

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

#3 lore raw
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_EN signal.

Documentation/devicetree/bindings/mmc/mmc-pwrseq-simple.txt only 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