-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Support renesas ra sci i2c #86627
Add Support renesas ra sci i2c #86627
Conversation
thaoluonguw
commented
Mar 4, 2025
- Add I2C driver use SCI_B I2C
- Add support and test for I2C driver use SCI_B I2C on EK-RA8M1, EK-RA8D1 and MCK-RA8T1
The following west manifest projects have changed revision in this Pull Request:
✅ All manifest checks OK Note: This message is automatically posted and updated by the Manifest GitHub Action. |
e28b8aa
to
0c7b10c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The driver looks ok to me though honestly I wonder if it'd be simpler to avoid the HAL stuff here, it seems to add a lot of code for what is almost certainly a few register reads/writes underneath all of it.
uint16_t sda_output_delay; | ||
}; | ||
|
||
struct sci_b_i2c_data { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is quite a struct to do i2c... somewhat surprising we need all of this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@teburd : Thank you so much for your feedback. Actually, all fields are necessary. We used DTC (Data Transfer Controller) in transferring, DTC only supports in HAL layer, so, there are some additional fields...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get it, not a blocker from me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
drivers/i2c/Kconfig.renesas_ra
Outdated
if I2C_RENESAS_RA_SCI_B | ||
config I2C_RENESAS_RA_SCI_B_DTC | ||
bool "DTC on Transmission and Reception" | ||
default y | ||
select USE_RA_FSP_DTC | ||
help | ||
Enable DTC on transmission and reception | ||
endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if I2C_RENESAS_RA_SCI_B | |
config I2C_RENESAS_RA_SCI_B_DTC | |
bool "DTC on Transmission and Reception" | |
default y | |
select USE_RA_FSP_DTC | |
help | |
Enable DTC on transmission and reception | |
endif | |
if I2C_RENESAS_RA_SCI_B | |
config I2C_RENESAS_RA_SCI_B_DTC | |
bool "DTC on Transmission and Reception" | |
default y | |
select USE_RA_FSP_DTC | |
help | |
Enable DTC on transmission and reception | |
endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nordicjm : Thank you for your feedback. I updated it. Could you please re-check it again?
drivers/i2c/Kconfig.renesas_ra
Outdated
@@ -1,6 +1,6 @@ | |||
# Renesas RA Family | |||
|
|||
# Copyright (c) 2024 Renesas Electronics Corporation | |||
# Copyright (c) 2024 - 2025 Renesas Electronics Corporation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
usually done as # Copyright (c) 2024-2025 Renesas Electronics Corporation
without space (non-blocking)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your feedback. I updated it.
8e4a97a
8e4a97a
to
d1ea929
Compare
Rebase to re-confirm for twister test. |
First commit to add support for Renesas RA i2c sci-b driver Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com> Signed-off-by: Thao Luong <thao.luong.uw@renesas.com>
This commit to add i2c device node to support i2c sci-b driver on Renesas RA SoCs Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com> Signed-off-by: Thao Luong <thao.luong.uw@renesas.com>
Enable support of i2c sci-b driver on these boards: ek_ra8m1, ek_ra8d1, mck_ra8t1 Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com> Signed-off-by: Thao Luong <thao.luong.uw@renesas.com>
Add Renesas RA board support for i2c test use sci_b_i2c: - tests/drivers/i2c/i2c_api Example for i2c use sci_b_i2c: west build -b ek_ra8m1 tests/drivers/i2c/i2c_api/ -p always \ -DDTC_OVERLAY_FILE=boards/ek_ra8m1_sci_b_i2c.overlay \ -DCONF_FILE="boards/ek_ra8m1_sci_b_i2c.conf" Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com> Signed-off-by: Thao Luong <thao.luong.uw@renesas.com>
26a9294
d1ea929
to
26a9294
Compare
Rebase to solve conflict. |