devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/1] Add basic SPI support on TH1520
@ 2024-07-05  9:34 Kanak Shilledar
  2024-07-05  9:34 ` [PATCH v3 1/1] riscv: dts: thead: add basic spi node Kanak Shilledar
  2024-07-26  3:52 ` [PATCH v3 0/1] Add basic SPI support on TH1520 Drew Fustini
  0 siblings, 2 replies; 9+ messages in thread
From: Kanak Shilledar @ 2024-07-05  9:34 UTC (permalink / raw)
  Cc: Kanak Shilledar, Jisheng Zhang, Guo Ren, Fu Wei, Conor Dooley,
	Rob Herring, Krzysztof Kozlowski, Paul Walmsley, Palmer Dabbelt,
	Albert Ou, linux-riscv, devicetree, linux-kernel

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.

[2] Driver Patch discussion
[3] Devicetree binding discussion

Changes made in v3:
- Dropped the driver patch as the generic fallback compatible was
  working properly. [2]
- Removed the devicetree binding patch as it got accepted and is already
  in the linux-next branch. [3]
- Arranged the devicetree aliases alphabetically in the DTS files.

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
[2] https://lore.kernel.org/all/20240701121355.262259-4-kanakshilledar@gmail.com/
[3] https://lore.kernel.org/all/20240701121355.262259-3-kanakshilledar@gmail.com/


Kanak Shilledar (1):
  riscv: dts: thead: add basic spi node

 .../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 ++++++++++++++++
 4 files changed, 34 insertions(+)


base-commit: 22a40d14b572deb80c0648557f4bd502d7e83826
-- 
2.45.2


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

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

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-05  9:34 [PATCH v3 0/1] Add basic SPI support on TH1520 Kanak Shilledar
2024-07-05  9:34 ` [PATCH v3 1/1] riscv: dts: thead: add basic spi node Kanak Shilledar
2024-07-12  8:41   ` Kanak Shilledar
2024-07-12 13:48     ` Conor Dooley
2024-07-12 16:05       ` Drew Fustini
2024-07-14  7:11         ` Kanak Shilledar
2024-07-26  3:52 ` [PATCH v3 0/1] Add basic SPI support on TH1520 Drew Fustini
2024-07-26  8:19   ` Emil Renner Berthing
2024-07-26 16:05     ` Drew Fustini

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).