Hi
In SDK8.6, I modified the ospi clock to 166MHZ in dts, but when I conducted flash read and write tests, I measured the ospi clock frequency and found that it was only 20MHZ, and the read and write speed was also very low. Please help to investigate the reason.
ospi0: spi@47040000 {
compatible = "ti,am654-ospi";
reg = <0x0 0x47040000 0x0 0x100>,
<0x5 0x00000000 0x1 0x0000000>;
interrupts = <GIC_SPI 840 IRQ_TYPE_LEVEL_HIGH>;
cdns,fifo-depth = <256>;
cdns,fifo-width = <4>;
cdns,trigger-address = <0x0>;
clocks = <&k3_clks 103 0>;
assigned-clocks = <&k3_clks 103 0>;
assigned-clock-parents = <&k3_clks 103 2>;
assigned-clock-rates = <166666666>;
power-domains = <&k3_pds 103 TI_SCI_PD_EXCLUSIVE>;
#address-cells = <1>;
#size-cells = <0>;
};
ospi read and write speed testing:
[ 268.857782] mtd_speedtest: testing page write speed
[ 324.124031] mtd_speedtest: page write speed is 1185 KiB/s
[ 324.129423] mtd_speedtest: testing page read speed
[ 327.621409] mtd_speedtest: page read speed is 18794 KiB/s