Hello TI Team,
We need your quick help on below please.
We are testing QSPI NAND FLASH memory with AM6254 CPU but are not successful for memory detection. Please see below images for the interfacing.
QSPI FLASH PART# - W25N02JWTBIF
Please see below for the Device tree implementation.
&ospi0 {
spi-nand@0 {
compatible = "winbond,W25n02jw";
reg = <0x0>;
spi-tx-bus-width = <1>;
spi-rx-bus-width = <4>;
spi-max-frequency = <25000000>;
nand-ecc-mode = "hw";
nand-ecc-strength = <8>;
nand-ecc-step-size = <512>;
nand-bbt-options = "pagewise";
nand-on-flash-bbt;
nand-oob-size = <64>;
nand-page-size = <2048>;
nand-pages-per-block = <64>;
nand-block-size = <131072>;
nand-num-chips = <1>;
ti,spi-num-cs = <1>;
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>;
};
};
};
};
&ospi0 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&ospi0_pins_default>;
};
ospi0_pins_default: ospi0-pins-default {
pinctrl-single,pins = <
AM62X_IOPAD(0x000, PIN_OUTPUT, 0) /* (H24) OSPI0_CLK */
AM62X_IOPAD(0x00c, PIN_INPUT, 0) /* (E25) OSPI0_D0 */
AM62X_IOPAD(0x010, PIN_INPUT, 0) /* (G24) OSPI0_D1 */
AM62X_IOPAD(0x014, PIN_INPUT, 0) /* (F25) OSPI0_D2 */
AM62X_IOPAD(0x018, PIN_INPUT, 0) /* (F24) OSPI0_D3*/
>;
};
[ 1.127635] cadence-qspi fc40000.spi: registered master spi0
[ 1.127673] spi spi0.0: setup mode 0, 8 bits/w, 25000000 Hz max --> 0
[ 1.528003] spi-nand: probe of spi0.0 failed with error -110
[ 1.533695] cadence-qspi fc40000.spi: registered child spi0.0
Request you to suggest us debugging steps/if any corrections needed for the resolution.
Thanks,
Brijesh K