Skip to content

Conversation

@quytranpzz
Copy link
Contributor

Based on #93498 merged, add Data Transfer Controller (DTC) support for SPI and I2C driver of Renesas RX

@JarmouniA
Copy link
Contributor

@KhiemNguyenT Please do not assign draft PRs, let the bot do the assignment when the PR becomes ready to review.

quytranpzz and others added 3 commits October 22, 2025 02:25
Add dtc device support for i2c and spi node

Signed-off-by: Quy Tran <[email protected]>
Support DTC transfer for I2C module on rsk_rx130_512kb board

Signed-off-by: Minh Tang <[email protected]>
This commit is to add DTC transfer feature for both SPI controller mode
and peripheral mode on board RSK-RX130-512KB

Signed-off-by: Minh Tang <[email protected]>
@quytranpzz quytranpzz force-pushed the rx_support_dtc_spi_i2c branch from 19babff to 0045087 Compare October 22, 2025 02:36
@sonarqubecloud
Copy link

bool do_rx_now;
bool do_tx;
rspi_str_tranmode_t rx_data_tran_mode;
rspi_str_tranmode_t tx_data_tran_mode;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move these 2 line 35

/* dtc device handle */
const struct device *dtc;
/* TX */
uint8_t tx_dtc_activation_irq;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move the uint8_t at the end

transfer_info_t tx_dtc_info;
/* RX */
uint8_t rx_dtc_activation_irq;
transfer_info_t rx_dtc_info;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

uint8_t slv_addr;
struct i2c_msg *msgs;
uint8_t num_msgs;
uint8_t num_processed_msgs;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

re-position the attributes for better alignment

goto end;
}
#endif /* CONFIG_SPI_RENESAS_RX_DTC */

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no idea how dtc works, but you start the transfer above (and you did provide the buffers to it), but here you anyway call the R_RSPI_Write/R_RSPI_Read functions as before? (is it what's really going to trigger the transfer, or is this a mistake?)

@JarmouniA JarmouniA changed the title Add DTC support for SPI and I2C drivers Renesas: Add DTC support for SPI and I2C drivers Oct 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants