Tool/software: Linux
Hi
We have a custom board with the AM5718 and doing the board bring up.
We using the latest u-boot, private .dts and dtsi files (based on the am571x-idk and am571x-evm files.
our schematic look like this
our .dtsi file look like this (no qspi references are in our .dts file), it is essential a modified copy from am57xx-idk-common.dtsi
&qspi {
status = "okay";
spi-max-frequency = <76800000>;
m25p80@0 {
compatible = "s25fl512s", "jedec,spi-nor";
spi-max-frequency = <76800000>;
reg = <0>;
spi-tx-bus-width = <4>;
spi-rx-bus-width = <4>;
#address-cells = <1>;
#size-cells = <1>;
cdns,tshsl-ns = <392>;
cdns,tsd2d-ns = <392>;
cdns,tchsh-ns = <100>;
cdns,tslch-ns = <100>;
/* MTD partition table.
* The ROM checks the first four physical blocks
* for a valid file to boot and the flash here is
* 64KiB block size.
*/
partition@0 {
label = "QSPI.SPL";
reg = <0x00000000 0x000040000>;
};
partition@1 {
label = "QSPI.u-boot";
reg = <0x00040000 0x00100000>;
};
partition@2 {
label = "QSPI.u-boot-spl-os";
reg = <0x00140000 0x00080000>;
};
partition@3 {
label = "QSPI.u-boot-env";
reg = <0x001c0000 0x00010000>;
};
partition@4 {
label = "QSPI.u-boot-env.backup1";
reg = <0x001d0000 0x0010000>;
};
partition@5 {
label = "QSPI.kernel";
reg = <0x001e0000 0x0800000>;
};
partition@6 {
label = "QSPI.file-system";
reg = <0x009e0000 0x01620000>;
};
};
};
We have updated our own mux file based on the output from the pinmuxtool
{GPMC_A13, (M1 | PIN_INPUT | MANUAL_MODE)}, /* R3 gpmc_a13.qspi1_rtclk */
{GPMC_A14, (M1 | PIN_INPUT | MANUAL_MODE)}, /* T2 gpmc_a14.qspi1_d3 */
{GPMC_A15, (M1 | PIN_INPUT | MANUAL_MODE)}, /* U2 gpmc_a15.qspi1_d2 */
{GPMC_A16, (M1 | PIN_INPUT | MANUAL_MODE)}, /* U1 gpmc_a16.qspi1_d0 */
{GPMC_A17, (M1 | PIN_INPUT | MANUAL_MODE)}, /* P3 gpmc_a17.qspi1_d1 */
{GPMC_A18, (M1 | PIN_OUTPUT | MANUAL_MODE)}, /* R2 gpmc_a18.qspi1_sclk */
.
.
.
.
{GPMC_CS2, (M1 | PIN_OUTPUT | MANUAL_MODE)}, /* P2 gpmc_cs2.qspi1_cs0 */
The output from the u-boot prompt on "sf probe" is
=> sf probe unrecognized JEDEC id bytes: 00, 00, 00 Failed to initialize SPI flash at 0:0 (error -2)
Do anyone have any ideas why ?
Do we need to add something in arch/arm/dts/dra72x-mmc-iodelay.dtsi ?
Should spi-tx-bus-width be
spi-tx-bus-width = <1>;
or
spi-tx-bus-width = <4>;
Should it be s25fl256s1 or s25fl256s1_512 ?
Do we need the cdns,ts parameters ?
Regards



