Tool/software:
Hi,
I've try to configure the nor-spi on sdk 10 version, compiling using yocto,
here is my dts node: (u-boot dts)
&ospi0 {
bootph-all;
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&mcu_fss0_ospi0_pins_default>, <&mcu_fss0_ospi0_1_pins_default>;
ospi0_nor: flash@0 {
status = "okay";
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <25000000>;
spi-tx-bus-width = <8>;
spi-rx-bus-width = <8>;
cdns,tshsl-ns = <10>;
cdns,tsd2d-ns = <30>;
cdns,tchsh-ns = <2>;
cdns,tslch-ns = <2>;
cdns,read-delay = <4>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "ospi.tiboot3";
reg = <0x0 0x80000>;
};
partition@80000 {
label = "ospi.tispl";
reg = <0x80000 0x200000>;
};
partition@280000 {
label = "ospi.u-boot";
reg = <0x280000 0x400000>;
};
partition@680000 {
label = "ospi.env";
reg = <0x680000 0x40000>;
};
partition@6c0000 {
label = "ospi.env.backup";
reg = <0x6c0000 0x40000>;
};
partition@800000 {
label = "ospi.rootfs";
reg = <0x800000 0x37c0000>;
};
partition@3fc0000 {
bootph-all;
label = "ospi.phypattern";
reg = <0x3fc0000 0x40000>;
};
};
};
};
But, it doesn't work, I'm getting following error while try to probe from U-boot CLI
Hit any key to stop autoboot: 0
=>
=>
=>
=>
=>
=> sf
sf - SPI flash sub-system
Usage:
sf probe [[bus:]cs] [hz] [mode] - init flash device on given SPI bus
and chip select
sf read addr offset|partition len - read `len' bytes starting at
`offset' or from start of mtd
`partition'to memory at `addr'
sf write addr offset|partition len - write `len' bytes from memory
at `addr' to flash at `offset'
or to start of mtd `partition'
sf erase offset|partition [+]len - erase `len' bytes from `offset'
or from start of mtd `partition'
`+len' round up `len' to block size
sf update addr offset|partition len - erase and write `len' bytes from memory
at `addr' to flash at `offset'
or to start of mtd `partition'
sf protect lock/unlock sector len - protect/unprotect 'len' bytes starting
at address 'sector'
=> sf probe
Error: subnode with SPI flash config missing!
Invalid bus 0 (err=-19)
"Synchronous Abort" handler, esr 0x96000021, far 0x4a
elr: 00000000808350dc lr : 000000008081fd64 (reloc)
elr: 00000000fff230dc lr : 00000000fff0dd64
x0 : 0000000000000002 x1 : 0000000000000000
x2 : 000000000000000a x3 : 0000000042300000
x4 : 0000000042300000 x5 : 00000000fde899dc
x6 : 0000000000000039 x7 : 00000000fde89e70
x8 : 0000000000000001 x9 : 00000000ffffffd8
x10: 000000000000000d x11: 0000000000000006
x12: 00000000fde89d9c x13: 00000000fde8a290
x14: 00000000fffffffe x15: 00000000fde899dc
x16: 00000000fff4bfe8 x17: 0000000000000000
x18: 00000000fdeaddb0 x19: 0000000000000000
x20: 0000000000000000 x21: 0000000000000000
x22: 0000000000000000 x23: 00000000017d7840
x24: 00000000ffffffed x25: 0000000000000001
x26: 00000000fffe7000 x27: 0000000000000000
x28: 00000000fdeb6700 x29: 00000000fde89ef0
Code: b4000040 f9401c00 d65f03c0 b4000040 (f9402400)
Resetting CPU ...
from this my understanding is, the sub node which is related to spi-nor is missing
could you help me on this?