62756964

Date: 2020-07-06 14:24:35
Score: 6
Natty:
Report link

I have the same issue on a special board, so there is no sample code to refer in u-boot-2020.04, please help to me to detailed information as follows:

  1. spi controller: designware_spi.c, base address in soc: 0x80000000

  2. spi flash: MX25U25635F

  3. CONFIG_DM_SPI_FLASH=y

    CONFIG_SF_DEFAULT_CS=1

    CONFIG_SPI_FLASH_MACRONIX=y

    CONFIG_SPI=y

    CONFIG_DM_SPI=y

    CONFIG_DESIGNWARE_SPI=y

  4. soc.dtsi aliases { serial0 = &uart0; serial1 = &uart1; spi0 = "spi@80000000"; };

    spi0: spi@80000000 { compatible = "snps,dw-apb-ssi"; #address-cells = <1>; #size-cells = <0>; reg = <0x80000000 0x1000>; spi-max-frequency = <4000000>; //interrupts = <0 99 4>; //resets = <&rst SPIM0_RESET>; reg-io-width = <4>; num-cs = <1>; //clocks = <&clkmgr AGILEX_L4_MAIN_CLK>; status = "okay"; spi_flash@0 { compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <4000000>; }; };

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • RegEx Blacklisted phrase (3): please help to
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2): I have the same issue
  • Low reputation (1):
Posted by: qcmao