Tool/software:
We have custom board based on AM69 SOC and trying to use mcu-ospi0 in a QUAD mode with a flash memory MX25U25645GXDI00. When trying to use MX25U25645GXDI00 in QUAD mode, observed below warning message in a kernel logs.
[ 2.863502] spi spi0.0: setup: ignoring unsupported mode bits 200 [ 2.869857] spi-nor spi0.0: mx25u25635f (32768 Kbytes)
Questions :
- Is QSPI QUAD mode supported in current AM69 base SDK ? (from spi-cadence-quadspi.c or something else) ?
- In addition, memory could not work at all at desired frequency of 66 MHz as per the part's datasheet. Any reasons/hints for such a failure ?
pinctrl and DT snippets:
&wkup_pmx0 { pinctrl_mcu_ospi0_4bit: mcu-ospi0-4bit-default-pins { pinctrl-single,pins = < J784S4_WKUP_IOPAD(0x000, PIN_OUTPUT, 0) /* (E32) MCU_OSPI0_CLK */ /* AQUILA B65 */ J784S4_WKUP_IOPAD(0x00c, PIN_INPUT, 0) /* (B33) MCU_OSPI0_D0 */ /* AQUILA B68 */ J784S4_WKUP_IOPAD(0x010, PIN_INPUT, 0) /* (B32) MCU_OSPI0_D1 */ /* AQUILA B67 */ J784S4_WKUP_IOPAD(0x014, PIN_INPUT, 0) /* (C33) MCU_OSPI0_D2 */ /* AQUILA B61 */ J784S4_WKUP_IOPAD(0x018, PIN_INPUT, 0) /* (C35) MCU_OSPI0_D3 */ /* AQUILA B60 */ J784S4_WKUP_IOPAD(0x008, PIN_INPUT, 0) /* (C34) MCU_OSPI0_DQS */ /* AQUILA B63 */ >; }; pinctrl_mcu_ospi0_cs0: mcu-ospi0-cs0-default-pins { pinctrl-single,pins = < J784S4_WKUP_IOPAD(0x02c, PIN_OUTPUT, 0) /* (A32) MCU_OSPI0_CSn0 */ /* AQUILA B66 */ >; }; ... }; &ospi0 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_mcu_ospi0_4bit>, <&pinctrl_mcu_ospi0_cs0>; status = "okay"; flash@0 { compatible = "jedec,spi-nor"; reg = <0x0>; spi-max-frequency = <50000000>; spi-rx-bus-width = <4>; spi-tx-bus-width = <4>; cdns,read-delay = <0>; cdns,tchsh-ns = <3>; cdns,tsd2d-ns = <10>; cdns,tshsl-ns = <30>; cdns,tslch-ns = <8>; }; };
We are running everything latest and greatest from 09.02.00.010 tag from SW side.
Regards,
Parth P