Skip to contentSkip to conversation

arm64: dts: qcom: sc7180-trogdor: Update flash freq to match reality

PATCH Applied Stephen Boyd 3 participants 4 messages May 19, 2021 – Jun 10, 2021

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: qcom: sc7180-trogdor: Update flash freq to match reality

This spi flash part is actually being clocked at 37.5MHz, not 25MHz, because of the way the clk driver is rounding up the rate that is requested to the nearest supported frequency. Let's update the frequency here, and remove the TODO because this is the fastest frequency we're going to be able to use here.

Cc Douglas Anderson <[email protected]>
---
 arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +1 -2
index 24d293ef56d7..af3c0e1e2223 100644
@@ -335,8 +335,7 @@ flash@0 {
 		compatible = "jedec,spi-nor";
 		reg = <0>;
 
-		/* TODO: Increase frequency after testing */
-		spi-max-frequency = <25000000>;
+		spi-max-frequency = <37500000>;
 		spi-tx-bus-width = <2>;
 		spi-rx-bus-width = <2>;
 	};

base-commit: 6efb943b8616ec53a5e444193dccf1af9ad627b5

Signature · 1 line
https://chromeos.dev
Reviewed-by on v1 1/1
#1 lore raw

Hi,

Quoted 18 lines · Stephen Boyd

This spi flash part is actually being clocked at 37.5MHz, not 25MHz, because of the way the clk driver is rounding up the rate that is requested to the nearest supported frequency. Let's update the frequency here, and remove the TODO because this is the fastest frequency we're going to be able to use here.

Cc Douglas Anderson <[email protected]>
---
 arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +0 -0
index 24d293ef56d7..af3c0e1e2223 100644

arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi flash@0 { · line 341

Quoted 9 lines
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +1 -2
@@ -335,8 +335,7 @@ flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
 
-               /* TODO: Increase frequency after testing */
-               spi-max-frequency = <25000000>;
+               spi-max-frequency = <37500000>;
                spi-tx-bus-width = <2>;
                spi-rx-bus-width = <2>;
        };

Thanks. Looks right to me. I confirmed that the clock is 150 MHz in my "clk_summary" which is 4x 37.5.

-Doug

#2 lore raw

Bjorn,

Quoted 35 lines · Doug Anderson

Hi,

Quoted 18 lines · Stephen Boyd

This spi flash part is actually being clocked at 37.5MHz, not 25MHz, because of the way the clk driver is rounding up the rate that is requested to the nearest supported frequency. Let's update the frequency here, and remove the TODO because this is the fastest frequency we're going to be able to use here.

Cc Douglas Anderson <[email protected]>
---
 arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +0 -0
index 24d293ef56d7..af3c0e1e2223 100644

arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi flash@0 { · line 341

Quoted 9 lines
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +1 -2
@@ -335,8 +335,7 @@ flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
 
-               /* TODO: Increase frequency after testing */
-               spi-max-frequency = <25000000>;
+               spi-max-frequency = <37500000>;
                spi-tx-bus-width = <2>;
                spi-rx-bus-width = <2>;
        };

Thanks. Looks right to me. I confirmed that the clock is 150 MHz in my "clk_summary" which is 4x 37.5.

Quoted 1 line

If you agree, I think this patch is ready to land.

-Doug

#3 lore raw
In reply to Stephen Boyd
This patch was applied to qcom/linux.git (refs/heads/for-next):

Hello:

This patch was applied to qcom/linux.git (refs/heads/for-next):

Quoted 10 lines · On Tue, 18 May 2021 22:40:30 -0700 you wrote:

This spi flash part is actually being clocked at 37.5MHz, not 25MHz, because of the way the clk driver is rounding up the rate that is requested to the nearest supported frequency. Let's update the frequency here, and remove the TODO because this is the fastest frequency we're going to be able to use here.

Cc Douglas Anderson <[email protected]>

[...]

Here is the summary with links:
- arm64: dts: qcom: sc7180-trogdor: Update flash freq to match reality

    https://git.kernel.org/qcom/c/729046d4f1ab

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html