This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-J784S4: J784S4 uboot SPI 获取不到nor flash的id

Part Number: PROCESSOR-SDK-J784S4

使用ti-processor-sdk-linux-j784s4-evm-08_06_01_02 该sdk版本,处理器型号为J784S4

使用make uboot 之后,将tiboot3.bin 烧录到nor flash中;启动的时候,打印如下;

U-Boot SPL 2021.01 (Mar 08 2024 - 16:29:13 +0800)
SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.3--1-g2249f (Chill Capybara')
SPL initial stack usage: 13472 bytes
Trying to boot from SPI
jedec_spi_nor flash@0: unrecognized JEDEC id bytes: ff, ff, ff

使用示波器抓取,确实没有信号发出,感觉是spi控制器没有配置好,或者总线没配置好;

要识别 spi nor flash的id ,需要配置什么吗?

修改过

K3-J784S4-evm.dts

flash@0 {
compatible = "jedec,spi-nor";
reg = <0x0>;
spi-tx-bus-width = <4>;
spi-rx-bus-width = <4>;
spi-max-frequency = <10000000>;
cdns,tshsl-ns = <60>;
cdns,tsd2d-ns = <60>;
cdns,tchsh-ns = <60>;
cdns,tslch-ns = <60>;
cdns,read-delay = <2>;
cdns,phy-mode;
#address-cells = <1>;
#size-cells = <1>;
u-boot,dm-spl;
};

mcu_fss0_ospi0_pins_default: mcu-fss0-ospi0-pins-default {
pinctrl-single,pins = <
J784S4_WKUP_IOPAD(0x000, PIN_OUTPUT, 0) /* (E32) MCU_OSPI0_CLK */
J784S4_WKUP_IOPAD(0x02c, PIN_OUTPUT, 0) /* (A32) MCU_OSPI0_CSn0 */
J784S4_WKUP_IOPAD(0x00c, PIN_INPUT, 0) /* (B33) MCU_OSPI0_D0 */
J784S4_WKUP_IOPAD(0x010, PIN_INPUT, 0) /* (B32) MCU_OSPI0_D1 */
J784S4_WKUP_IOPAD(0x014, PIN_INPUT, 0) /* (C33) MCU_OSPI0_D2 */
J784S4_WKUP_IOPAD(0x018, PIN_INPUT, 0) /* (C35) MCU_OSPI0_D3 */
J784S4_WKUP_IOPAD(0x008, PIN_INPUT, 0) /* (C34) MCU_OSPI0_DQS */
J784S4_WKUP_IOPAD(0x004, PIN_INPUT, 0) /* (D32) MCU_OSPI0_LBCLKO */
>;
};

nor flash的id 还是ff;