linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Add basic SPI support on TH1520
@ 2024-07-01 12:13 Kanak Shilledar
  2024-07-01 12:13 ` [PATCH v2 1/3] dt-bindings: spi: snps,dw-apb-ssi.yaml: update compatible property Kanak Shilledar
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Kanak Shilledar @ 2024-07-01 12:13 UTC (permalink / raw)
  Cc: Kanak Shilledar, Serge Semin, Mark Brown, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Jisheng Zhang, Guo Ren, Fu Wei,
	Paul Walmsley, Palmer Dabbelt, Albert Ou, linux-spi, devicetree,
	linux-kernel, linux-riscv

Implemented basic SPI support for TH1520 SoC. There are two SPIs reserved
on the LicheePi4A, one on the SPI Flash pads that are blanked out on the
back, and one on the pins. I implemented the one connected to the pad.

It is using a fixed clock of 396MHz. The address and clock frequency was
referenced from the TH1520 System Reference Manual [1].

I have tested this on the LicheePi4A.

Changes made in v2:
- Changed from single patch file to a patchset by splitting the single
commit into dt-bindings, driver and the devicetree.

[1] https://openbeagle.org/beaglev-ahead/beaglev-ahead/-/blob/main/docs/TH1520%20System%20User%20Manual.pdf

Kanak Shilledar (3):
  dt-bindings: spi: snps,dw-apb-ssi.yaml: update compatible property
  spi: dw-mmio: update dw_spi_mmio_of_match struct with thead
  riscv: dts: thead: add basic spi node

 .../devicetree/bindings/spi/snps,dw-apb-ssi.yaml |  4 ++++
 .../boot/dts/thead/th1520-beaglev-ahead.dts      |  9 +++++++++
 .../boot/dts/thead/th1520-lichee-module-4a.dtsi  |  4 ++++
 .../riscv/boot/dts/thead/th1520-lichee-pi-4a.dts |  5 +++++
 arch/riscv/boot/dts/thead/th1520.dtsi            | 16 ++++++++++++++++
 drivers/spi/spi-dw-mmio.c                        |  1 +
 6 files changed, 39 insertions(+)


base-commit: 6ba59ff4227927d3a8530fc2973b80e94b54d58f
-- 
2.45.2


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

end of thread, other threads:[~2024-07-05  9:11 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-01 12:13 [PATCH v2 0/3] Add basic SPI support on TH1520 Kanak Shilledar
2024-07-01 12:13 ` [PATCH v2 1/3] dt-bindings: spi: snps,dw-apb-ssi.yaml: update compatible property Kanak Shilledar
2024-07-01 14:10   ` Conor Dooley
2024-07-01 12:13 ` [PATCH v2 2/3] spi: dw-mmio: update dw_spi_mmio_of_match struct with thead Kanak Shilledar
2024-07-01 13:17   ` Samuel Holland
2024-07-01 18:57     ` Serge Semin
2024-07-03  7:28       ` Conor Dooley
2024-07-03 13:12         ` Kanak Shilledar
2024-07-03 14:27           ` Conor Dooley
2024-07-03 14:37             ` Kanak Shilledar
2024-07-01 12:13 ` [PATCH v2 3/3] riscv: dts: thead: add basic spi node Kanak Shilledar
2024-07-03 14:45   ` Conor Dooley
2024-07-04  5:42     ` Kanak Shilledar
2024-07-04 16:49       ` Conor Dooley
2024-07-04 16:59     ` Drew Fustini
2024-07-04 17:53       ` Drew Fustini
2024-07-05  9:11         ` Kanak Shilledar
2024-07-01 18:55 ` (subset) [PATCH v2 0/3] Add basic SPI support on TH1520 Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).