From: E Shattow Date: Fri, 2 May 2025 10:30:42 +0000 (-0700) Subject: riscv: dts: starfive: jh7110-common: qspi flash setting read-delay 2 cycles max 100MHz X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=59404dceb303712faa9507b27c6fb14d8629c528;p=users%2Fjedix%2Flinux-maple.git riscv: dts: starfive: jh7110-common: qspi flash setting read-delay 2 cycles max 100MHz Use qspi flash read-delay and spi-max-frequency settings compatible with U-Boot bootloader. Observations from testing on Pine64 Star64 hardware within U-Boot bootloader and read-delay=2 are spi-max-frequency less than 49.8MHz fails to write, corrupt data writes at 25MHz to 49.799999MHz, and valid data writes at 49.8MHz to 100MHz (not tested above 100MHz). No valid spi-max-frequency was found for 1 Reviewed-by: Hal Feng Acked-by: Emil Renner Berthing Signed-off-by: Conor Dooley --- diff --git a/arch/riscv/boot/dts/starfive/jh7110-common.dtsi b/arch/riscv/boot/dts/starfive/jh7110-common.dtsi index cf1ee98454d6f..0d69322209682 100644 --- a/arch/riscv/boot/dts/starfive/jh7110-common.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110-common.dtsi @@ -318,8 +318,8 @@ nor_flash: flash@0 { compatible = "jedec,spi-nor"; reg = <0>; - cdns,read-delay = <5>; - spi-max-frequency = <12000000>; + cdns,read-delay = <2>; + spi-max-frequency = <100000000>; cdns,tshsl-ns = <1>; cdns,tsd2d-ns = <1>; cdns,tchsh-ns = <1>;