Hello,
I put the OSPI boot log below. The existing reference clock is 133MHz. Everything works fine with this. As the phy_mode is enabled, is the clock output to flash device same as 133MHz ref_clk?
The problem is the lower 100MHz. After I change the assigned-clock-rates to 100MHz in the below u-boot device tree, "sf probe" command at u-boot prompt doesn't recognize the flash device at SD boot.
Do I need to change other codes accordingly when the assigned-clock-rates is changed?
Thanks.
- OSPI boot log
U-Boot SPL 2020.01-dirty (May 10 2023 - 19:36:58 -0700)
SYSFW ABI: 3.0 (firmware rev 0x0014 '20.04.1-v2020.04a (Terrific Lla')
Trying to boot from SPI
cadence_spi_ofdata_to_platdata: regbase=47040000 ahbbase=50000000 max-frequency=50000000 page-size=256 phy_mode=1
cadence_qspi_apb_config_baudrate_div: ref_clk 133333333Hz sclk 50000000Hz Div 0x1, actual 33333333Hz
cadence_spi_set_speed: speed=50000000
cadence_qspi_apb_chipselect : chipselect 0 decode 0
READ : Opcode : 0x9f, C.W 1, A.W 1, D.W 1
- u-boot device tree
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 = <100000000>;//<133333333>;
power-domains = <&k3_pds 103 TI_SCI_PD_EXCLUSIVE>;
#address-cells = <1>;
#size-cells = <0>;
};