-
Notifications
You must be signed in to change notification settings - Fork 8.2k
drivers: can: stm32: initial CAN/CANFD support for STM32H7 #41549
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
Conversation
91e8e5f to
2ef52f8
Compare
|
Looks good, but we need to find some more generic way to handle the msg_ram addressing. The Bosch m_can (i.e. used in Microchip SAM) addresses the msg_sram like it is in the current implementation. |
9fc3b26 to
49d188d
Compare
I've added options to choose between absolute (SAME-style) and relative (STM32H7 and NXP-style) addressing for Message RAM. Based on what @henrikbrixandersen is doing in #35832, should be easy to slot in his #ifdef as well. |
92bdf8c to
ccd0196
Compare
24ba97f to
88f0fd6
Compare
|
I think that I've covered everything at this point, unless we're unhappy with the handling of message_ram addresses. Just finished adopting the |
|
@henrikbrixandersen, @alexanderwachter, @gmarull can you have a new look ? |
henrikbrixandersen
left a comment
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.
Only two minor issues:
88f0fd6 to
a02f8b3
Compare
|
Thanks @gmarull for your review! |
a02f8b3 to
1eab91b
Compare
1eab91b to
4482ac2
Compare
henrikbrixandersen
left a comment
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.
🥳
mbolivar-nordic
left a comment
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.
ACK on the binding
alexanderwachter
left a comment
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.
Sorry for being pedantic.
Otherwise LGTM!
4482ac2 to
d1af82d
Compare
* New m_can driver variant for STM32H7, as it uses the complete m_can register set. * Fix definitions for CAN_MCAN_RXF0S_F0FL, CAN_MCAN_TXEFC_EFSA_POS. Signed-off-by: Jeremy Wood <[email protected]>
* Add can peripheral to stm32h7.dtsi. * Add binding for m_can stm32h7 driver. Signed-off-by: Jeremy Wood <[email protected]>
* Enable and configure can1 for nucleo_h743/753. * Update documentation. Signed-off-by: Jeremy Wood <[email protected]>
d1af82d to
1534ea1
Compare
alexanderwachter
left a comment
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.
Thanks for this work!
Adds support for CAN/CANFD for the STM32H7 series. Tested working on NUCLEO-H753 and proprietary hardware.
Builds on the existing m_can driver, fixed some issues in the generic implementation.