-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Support SPI driver for Renesas RA6, RA4, RA2 devices #79285
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
Support SPI driver for Renesas RA6, RA4, RA2 devices #79285
Conversation
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. |
3ea7407
to
c21060e
Compare
Does this work with RA2, 4, 8? |
c21060e
to
7b62c6c
Compare
Hello @soburi,
It expects to work with RA2 and RA4. We are updating device tree and verifying for RA4 and RA2. They will be update later or in another PR. For RA8, it already supported. It uses sci_b (spi_b_renesas_ra8.c). |
Understood. I was worried that the implementation would need to be tweaked for each model. |
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.
All seems quite fine to me (but for the tiny comment I made on the code part)
Aside of this, could you split your first commit in 3:
- one for the driver (its dts bindings and the actual driver)
- one for the boards
- and one for the tests
drivers/spi/spi_renesas_ra.c
Outdated
case SPI_EVENT_ERR_FRAMING: /* Framing error */ | ||
case SPI_EVENT_ERR_MODE_UNDERRUN: /* Underrun error */ | ||
spi_context_cs_control(&data->ctx, false); | ||
spi_context_complete(&data->ctx, dev, 0); |
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 path seems to be the one for errors, but you still return 0 as code? (it should be -EIO)
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.
@tbursztyka: Thank you for your feedback, we updated it. Could you please re-check again?
7b62c6c
to
ed3ff1d
Compare
Can you rebase and push again? CI is failing but not from your commits |
ed3ff1d
to
a12cc7a
Compare
a12cc7a
to
a37abed
Compare
a37abed
to
581e1dd
Compare
Add and merge SPI support for RA4, RA2 commits into SPI support for RA6 commits |
581e1dd
to
330e613
Compare
just rebase main to solve conflict |
- Add SPI driver support for RA - RA2A1 not support slave select keeping level so disable it in Kconfig Signed-off-by: Tri Nguyen <tri.nguyen.wj@bp.renesas.com> Signed-off-by: Thao Luong <thao.luong.uw@renesas.com> Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
Add device node support SPI driver for ra6-cm4, ra6-cm33, ra4-cm4, ra4-cm33, ra2xx MCU Signed-off-by: Tri Nguyen <tri.nguyen.wj@bp.renesas.com> Signed-off-by: Thao Luong <thao.luong.uw@renesas.com> Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
- Add SPI support for ek_ra6m1, ek_ra6m2, ek_ra6m3, ek_ra6m4, ek_ra6m5, ek_ra6e2, fpb_ra6e1, fpb_ra6e2, ek_ra4e2, ek_ra4m2, ek_ra4m3, ek_ra4w1, ek_ra2a1 - Add SPI support doc for these board Signed-off-by: Tri Nguyen <tri.nguyen.wj@bp.renesas.com> Signed-off-by: Thao Luong <thao.luong.uw@renesas.com> Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
Add overlay and add config to support test spi_loopback for: ek_ra6m1, ek_ra6m2, ek_ra6m3, ek_ra6m4, ek_ra6m5, ek_ra6e2, fpb_ra6e1, fpb_ra6e2, ek_ra4w1, ek_ra4m2, ek_ra4m3, ek_ra4e2, ek_ra2a1. Signed-off-by: Tri Nguyen <tri.nguyen.wj@bp.renesas.com> Signed-off-by: Thao Luong <thao.luong.uw@renesas.com> Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
330e613
to
b98ee25
Compare
rebase main to solve conflicts |
Hallo, |
@stmofek every time a PR is updated, it looses its previous approvals. |
Add support for SPI driver for RA6, RA4, RA2 devices
RA6: EK_RA6E2, EK_RA6M1, EK_RA6M2, EK_RA6M3, EK_RA6M4, EK_RA6M5, FPB_RA6E1, FPB_RA6E2
RA4: EK_RA4W1, EK_RA4M2, EK_RA4M3, EK_RA4E2
RA2: EK_RA2A1