[U-Boot] [EXT] [PATCH v3 1/3] spi: nxp_fspi: new driver for the FlexSPI controller

Kuldeep Singh kuldeep.singh at nxp.com
Wed Nov 6 10:19:27 UTC 2019


Hi,

> -----Original Message-----
> From: Michael Walle <michael at walle.cc>
> Sent: Wednesday, November 6, 2019 4:33 AM
> To: u-boot at lists.denx.de
> Cc: Vignesh R <vigneshr at ti.com>; Prabhakar X
> <prabhakar.kushwaha at nxp.com>; Kuldeep Singh <kuldeep.singh at nxp.com>;
> Michael Walle <michael at walle.cc>; Jagan Teki
> <jagan at amarulasolutions.com>
> Subject: [EXT] [PATCH v3 1/3] spi: nxp_fspi: new driver for the FlexSPI
> controller
> 
> Caution: EXT Email
> 
> This is a port of the kernel's spi-nxp-fspi driver. It uses the new spi-mem
> interface and does not expose the more generic spi-xfer interface. The source
> was taken from the v5.3-rc3 tag.
> 
> The port was straightforward:
>  - remove the interrupt handling and the completion by busy polling the
>    controller
>  - remove locks
>  - move the setup of the memory windows into claim_bus()
>  - move the setup of the speed into set_speed()
>  - port the device tree bindings from the original fspi_probe() to
>    ofdata_to_platdata()
> 
> There were only some style change fixes, no change in any logic. For example,
> there are busy loops where the return code is not handled correctly, eg. only
> prints a warning with WARN_ON(). This port intentionally left most functions
> unchanged to ease future bugfixes.
> 
> This was tested on a custom LS1028A board. Because the LS1028A doesn't
> have proper clock framework support, changing the clock speed was not
> tested. This also means that it is not possible to change the SPI speed on
> LS1028A for now (neither is it possible in the linux driver).
> 
> Signed-off-by: Michael Walle <michael at walle.cc>
> Reviewed-by: Jagan Teki <jagan at amarulasolutions.com>

Tested on LS1028A-RDB and LX2160A-RDB
Tested-by: Kuldeep Singh <kuldeep.singh at nxp.com>

Regards,
Kuldeep


More information about the U-Boot mailing list