All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v7 0/6] rockchip_sfc: add support for Rockchip SFC
@ 2021-08-05  8:26 Jon Lin
  2021-08-05  8:26 ` [PATCH v7 1/6] spi: " Jon Lin
                   ` (4 more replies)
  0 siblings, 5 replies; 23+ messages in thread
From: Jon Lin @ 2021-08-05  8:26 UTC (permalink / raw)
  To: u-boot
  Cc: heiko.stuebner, vigneshr, jagan, kever.yang, philipp.tomsich,
	sjg, macromorgan, Jon Lin



Changes in v7:
- Make sfc-use-dma configurable
- Remove SPI_NOR_HAS_TB and SPI_NOR_HAS_LOCK
- Make px30 SFC clock configurable

Changes in v6:
- Fix dma transfer logic
- Fix the error of the way to wait for dma transfer finished status

Changes in v5:
- Support dma transfer
- Add CONFIG_IS_ENABLED(CLK) limitation
- Support spinand devices
- Support SFC ver4 ver5
- Using "rockchip, sfc" as compatible id
- Get clock from the index to compatible with those case which's
  clock-names is not parsed
- px30 use "rockchip, sfc" as compatible id

Changes in v4:
- None

Changes in v3:
- Added "rockchip_sfc_adjust_op_work()" function from proposed Linux
  driver to fix potential issue on hardware. Note I never noticed
  this issue while testing, so I cannot test if it fixed any specific
  issue for me.
- Updated of-compatible string back to "rockchip,sfc" to match what
  is currently proposed for upstream driver. The hardware itself
  has multiple versions but a register is present in the hardware that
  is read by the driver to set version specific functionality.
- Updated px30.dtsi and rk3266-odroid-go2.dts device-trees so that
  sfc nodes match what is in upstream.

Changes in v2:
- Resending due to glitch with patch file truncating final two lines
  on patch 1/5 and incorrect patch version number on patch 5/5.

Changes in v1:
- Reworked code to utilize spi-mem framework, and based it closely
  off of work in progress code for mainline Linux.
- Removed DMA, as it didn't offer much performance benefit for
  booting (in my test cases), added complexity to the code, and
  interfered with A-TF.
- Updated the names of the bindings to match the work in progress
  Linux code.
- Moved alias to u-boot specific device-tree for Odroid Go Advance.
  Alias is updated with the spi0 node pointing to the SFC to
  help the sf command as well as facilitate booting from the SFC.
- Note 2 below no longer applies, as rebasing this off of upstream
  code should allow the device to work for NAND, and by utilizing
  the spi-mem framework it no longer has to extract the parameters

Chris Morgan (5):
  spi: rockchip_sfc: add support for Rockchip SFC
  rockchip: px30: Add support for using SFC
  rockchip: px30: add the serial flash controller
  mtd: spi-nor-ids: Add XTX XT25F128B
  rockchip: px30: add support for SFC for Odroid Go Advance

Jon Lin (1):
  rockchip: px30: Support configure SFC

 arch/arm/dts/px30.dtsi                     |  38 ++
 arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi |  17 +
 arch/arm/dts/rk3326-odroid-go2.dts         |  16 +
 arch/arm/mach-rockchip/px30/px30.c         |  64 ++
 drivers/clk/rockchip/clk_px30.c            |  32 +
 drivers/mtd/spi/Kconfig                    |   6 +
 drivers/mtd/spi/spi-nor-ids.c              |   4 +
 drivers/spi/Kconfig                        |   8 +
 drivers/spi/Makefile                       |   1 +
 drivers/spi/rockchip_sfc.c                 | 646 +++++++++++++++++++++
 10 files changed, 832 insertions(+)
 create mode 100644 drivers/spi/rockchip_sfc.c

-- 
2.17.1




^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2021-08-11 10:29 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-05  8:26 [PATCH v7 0/6] rockchip_sfc: add support for Rockchip SFC Jon Lin
2021-08-05  8:26 ` [PATCH v7 1/6] spi: " Jon Lin
2021-08-05 11:26   ` Jagan Teki
2021-08-05 16:17     ` Chris Morgan
2021-08-11 10:19   ` Kever Yang
2021-08-11 10:26   ` Philipp Tomsich
2021-08-05  8:26 ` [PATCH v7 2/6] rockchip: px30: Add support for using SFC Jon Lin
2021-08-11 10:19   ` Kever Yang
2021-08-05  8:26 ` [PATCH v7 3/6] rockchip: px30: add the serial flash controller Jon Lin
2021-08-05 11:30   ` Jagan Teki
2021-08-05 15:27     ` Chris Morgan
2021-08-11 10:19   ` Kever Yang
2021-08-05  8:26 ` [PATCH v7 4/6] mtd: spi-nor-ids: Add XTX XT25F128B Jon Lin
2021-08-05 11:34   ` Jagan Teki
2021-08-11 10:19   ` Kever Yang
2021-08-11 10:27   ` Philipp Tomsich
2021-08-05  8:27 ` [PATCH v7 5/6] rockchip: px30: add support for SFC for Odroid Go Advance Jon Lin
2021-08-05  8:27   ` [PATCH v7 6/6] rockchip: px30: Support configure SFC Jon Lin
2021-08-05 11:36     ` Jagan Teki
2021-08-11 10:20     ` Kever Yang
2021-08-11 10:28     ` Philipp Tomsich
2021-08-05 17:32   ` [PATCH v7 5/6] rockchip: px30: add support for SFC for Odroid Go Advance Chris Morgan
2021-08-11 10:20   ` Kever Yang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.