Skip to content
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

boards: others: add support for the CANbardo USB to CAN adapter board #83570

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

henrikbrixandersen
Copy link
Member

@henrikbrixandersen henrikbrixandersen commented Jan 5, 2025

Add support for the open hardware CANbardo Universal Serial Bus (USB) to Controller Area Network (CAN) adapter board.

Documentation preview: https://builds.zephyrproject.io/zephyr/pr/83570/docs/boards/others/canbardo/doc/index.html

Note:
This PR depends on #83547 being merged first (as it contains the same refactoring commit in order to add the needed SoC flash density variant).

nordicjm
nordicjm previously approved these changes Jan 7, 2025
Copy link
Collaborator

@nordicjm nordicjm left a comment

Choose a reason for hiding this comment

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

minor nit.

Supported Features
==================

The ``canboardo`` board configuration supports the following hardware features:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
The ``canboardo`` board configuration supports the following hardware features:
The ``canboardo`` board supports the following hardware features:

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you for reviewing. I've changed the text accordingly.

fabiobaltieri
fabiobaltieri previously approved these changes Jan 8, 2025
transceiver0: can-phy0 {
compatible = "microchip,mcp2558fd", "can-transceiver-gpio";
enable-gpios = <&piod 26 GPIO_ACTIVE_LOW>;
max-bitrate = <8000000>;
Copy link
Member

Choose a reason for hiding this comment

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

may not be a bad idea to switch these to use DT_FREQ_M

Copy link
Member Author

Choose a reason for hiding this comment

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

I have refrained from doing that in the past since it reads wrong. A bitrate is not a frequency as in cycles per second, but rather measured as bit per second.

Copy link
Member

Choose a reason for hiding this comment

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

mmh ok... should there be some aliases for the macros? DT_BITRATE_M? the issue is obviously the number readability on the file though if you have the wrong one here you'd find out pretty quickly

Copy link
Member Author

Choose a reason for hiding this comment

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

Could be an enhancement, sure.

boards/others/canbardo/canbardo.dts Outdated Show resolved Hide resolved
fabiobaltieri
fabiobaltieri previously approved these changes Jan 8, 2025
Supported Features
==================

The ``canboardo`` board supports the following hardware features:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
The ``canboardo`` board supports the following hardware features:
The ``canbardo`` board supports the following hardware features:

Copy link
Member Author

Choose a reason for hiding this comment

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

Gah, thanks! If I had a dime for every time I had writting "CANboardo bard" during the design of this board, I'd be rich.
Fixed.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ya I was gonna say I'm sure there is some kind of pun that I'm missing that led to this board being named the way it is, but it certainly is very typo/error-prone :)

Add support for the open hardware CANbardo Universal Serial Bus (USB) to
Controller Area Network (CAN) adapter board.

Signed-off-by: Henrik Brix Andersen <[email protected]>
Copy link
Member

@martinjaeger martinjaeger left a comment

Choose a reason for hiding this comment

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

Nice project!

@kartben kartben merged commit 31f5819 into zephyrproject-rtos:main Jan 10, 2025
18 checks passed
@henrikbrixandersen henrikbrixandersen deleted the canbardo branch January 10, 2025 20:01
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.

5 participants