Skip to content

drivers: dma/spi: add rtl87x2j dma/spi driver#238

Merged
ZhiyuanTang17 merged 11 commits into
rtkconnectivity:realtek-main-v4.4from
YuzhuoLiuRTK:downstream/rtl87x2j/drivers/dma/add-driver
May 22, 2026
Merged

drivers: dma/spi: add rtl87x2j dma/spi driver#238
ZhiyuanTang17 merged 11 commits into
rtkconnectivity:realtek-main-v4.4from
YuzhuoLiuRTK:downstream/rtl87x2j/drivers/dma/add-driver

Conversation

@YuzhuoLiuRTK

@YuzhuoLiuRTK YuzhuoLiuRTK commented May 20, 2026

Copy link
Copy Markdown
Collaborator
  • add rtl87x2j dma driver
  • add rtl87x2j uart async api
  • add rtl87x2j spi driver

@YuzhuoLiuRTK
YuzhuoLiuRTK force-pushed the downstream/rtl87x2j/drivers/dma/add-driver branch from aad514b to d747c16 Compare May 21, 2026 09:34
@YuzhuoLiuRTK YuzhuoLiuRTK changed the title drivers: dma: add rtl87x2j dma driver drivers: dma: add rtl87x2j dma/spi driver May 21, 2026
@YuzhuoLiuRTK
YuzhuoLiuRTK marked this pull request as draft May 21, 2026 10:16
@YuzhuoLiuRTK
YuzhuoLiuRTK force-pushed the downstream/rtl87x2j/drivers/dma/add-driver branch from d747c16 to 651368b Compare May 21, 2026 10:19
@YuzhuoLiuRTK YuzhuoLiuRTK reopened this May 21, 2026
Add UART asynchronous driver support for Realtek Bee series SoCs,
including RTL87x2G, RTL8752H and RTL87X2J.

This driver supports:
- Asynchronous TX/RX transfers

Signed-off-by: Yuzhuo Liu <yuzhuo_liu@realsil.com.cn>
Convert cached flash addresses to non-cached flash addresses in Realtek
Bee DMA driver. Without this conversion, DMA may access an invalid flash
mapping and read back 0xdeadbeef.

Signed-off-by: Yuzhuo Liu <yuzhuo_liu@realsil.com.cn>
Enable the UART async API test for Realtek Bee series SoCs.
Add configurations for the following boards:
- rtl87x2g_evb_a_rtl8762gku
- rtl8752h_evb_rtl8752hjl

Signed-off-by: Yuzhuo Liu <yuzhuo_liu@realsil.com.cn>
Add rtl87x2j series in bee dma driver.

Signed-off-by: Yuzhuo Liu <yuzhuo_liu@realsil.com.cn>
Enable the dma loop_transfer test for Realtek Bee series
rtl87x2j_evb_rtl8762jth board.

Signed-off-by: Yuzhuo Liu <yuzhuo_liu@realsil.com.cn>
Enable the uart_async_api test for Realtek Bee series
rtl87x2j_evb_rtl8762jth board.

Signed-off-by: Yuzhuo Liu <yuzhuo_liu@realsil.com.cn>
Add SPI driver support for Realtek Bee series SoCs,
including RTL87x2G and RTL8752H.

This driver supports:
- Master and Slave operation modes
- Polling, Interrupt, and DMA transfer modes
- Transmit (TX) and Receive (RX) functionality

Signed-off-by: Yuzhuo Liu <yuzhuo_liu@realsil.com.cn>
The original test used tx_data (a const char array) directly as the
source buffer for SPI transmission. tx_data may be placed in the
.rodata section which is not guaranteed to be aligned to the cache
line or DMA requirements. This caused DMA transfer failures on
platforms with strict alignment constraints.

This commit changes the TX buffer from tx_data to buffer_tx.
buffer_tx is explicitly declared with __BUF_ALIGN and __NOCACHE
attributes, ensuring it satisfies the DMA alignment and cache
coherency requirements.

Signed-off-by: Yuzhuo Liu <yuzhuo_liu@realsil.com.cn>
Enable spi_loopback and spi_controller_peripheral tests for
Realtek Bee series SoCs.
Add configurations for the following boards:
- rtl87x2g_evb_a_rtl8762gku
- rtl8752h_evb_rtl8752hjl

Signed-off-by: Yuzhuo Liu <yuzhuo_liu@realsil.com.cn>
Add rtl87x2j series in bee spi driver.

Signed-off-by: Yuzhuo Liu <yuzhuo_liu@realsil.com.cn>
@YuzhuoLiuRTK
YuzhuoLiuRTK force-pushed the downstream/rtl87x2j/drivers/dma/add-driver branch from 651368b to 57522a3 Compare May 21, 2026 10:24
Enable the spi_loopback and spi_controller_peripheral tests
for Realtek Bee series rtl87x2j_evb_rtl8762jth board.

Signed-off-by: Yuzhuo Liu <yuzhuo_liu@realsil.com.cn>
@YuzhuoLiuRTK
YuzhuoLiuRTK force-pushed the downstream/rtl87x2j/drivers/dma/add-driver branch from 57522a3 to e933358 Compare May 22, 2026 06:06
@YuzhuoLiuRTK
YuzhuoLiuRTK marked this pull request as ready for review May 22, 2026 06:13
@YuzhuoLiuRTK YuzhuoLiuRTK changed the title drivers: dma: add rtl87x2j dma/spi driver drivers: dma/spi: add rtl87x2j dma/spi driver May 22, 2026
@ZhiyuanTang17
ZhiyuanTang17 merged commit 5b95597 into rtkconnectivity:realtek-main-v4.4 May 22, 2026
7 of 8 checks passed
@YuzhuoLiuRTK
YuzhuoLiuRTK deleted the downstream/rtl87x2j/drivers/dma/add-driver branch May 22, 2026 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants