-
Notifications
You must be signed in to change notification settings - Fork 7.2k
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
Multiple SocketCAN instance support. #51457
base: main
Are you sure you want to change the base?
Multiple SocketCAN instance support. #51457
Conversation
cedbad8
to
8508cd2
Compare
@sumitbatra-nxp @bperseghetti in order to have multiple CAN interfaces running simultaneously (likely with differing protocols) |
No. I am working on a different approach. |
Thanks @henrikbrixandersen |
Thanks. That does not impact the solution here, as GPIO-controlled CAN transceivers are already supported. |
@henrikbrixandersen Is there a WIP branch/PR for your approach/work that you could potentially reference in the comments of this PR? |
Unfortunately, the work is not yet ready for consumption/review. I have done a few refactoring PRs in the last month, which lead up to adding this. The basic idea is to have |
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
@henrikbrixandersen should we just close this instead of removing the stale label, it does not look like this is progressing in over two years? |
We could, but I still plan to address it. The solution is pending another change in the CAN driver subsystem, which I am currently working on formalizing as an RFC. We can move this issue to just be labeled CAN, if that helps. |
No worries at all and no need to remove the net label, just wondering what the plan was. |
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
Adding support for multiple socketCAN interfaces by
making use of instances of DT_DRV_COMPAT for
network devices instead of a single network interface
Each socketCAN instance has a corresponding
DT Node named net_canbus<0>,<1>.
The net_canbus DT Node needs to be a child of the CAN DT Node.
The CAN and socketCAN devices can be accessed
by applications by parent child DT macros.
SocketCAN applications can access socketCAN node and
hence the network interface with its node id.
Tested on RDDRONE board.
Signed-off-by: Benjamin Perseghetti bperseghetti@rudislabs.com
Co-authored-by: Sumit Batra sumit.batra@nxp.com