-
Notifications
You must be signed in to change notification settings - Fork 8.2k
drivers: ethernet: add support for microchip lan9250 #77035
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| # LAN9250 Stand-alone Ethernet Controller configuration options | ||
|
|
||
| # Copyright (c) 2024 Mario Paja | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
|
|
||
| menuconfig ETH_LAN9250 | ||
| bool "LAN9250 Ethernet Controller" | ||
| default y | ||
| depends on DT_HAS_MICROCHIP_LAN9250_ENABLED | ||
| select SPI | ||
| help | ||
| LAN9250 Stand-Alone Ethernet Controller | ||
| with SPI Interface | ||
|
|
||
| if ETH_LAN9250 | ||
|
|
||
| config ETH_LAN9250_RX_THREAD_STACK_SIZE | ||
| int "Stack size for internal incoming packet handler" | ||
| default 800 | ||
| help | ||
| Size of the stack used for internal thread which is ran for | ||
| incoming packet processing. | ||
|
|
||
| config ETH_LAN9250_RX_THREAD_PRIO | ||
| int "Priority for internal incoming packet handler" | ||
| default 2 | ||
| help | ||
| Priority level for internal thread which is ran for incoming | ||
| packet processing. | ||
|
|
||
| config ETH_LAN9250_BUF_ALLOC_TIMEOUT | ||
| int "Network buffer allocation timeout" | ||
| default 100 | ||
| help | ||
| Given timeout in milliseconds. Maximum amount of time | ||
| that the driver will wait from the IP stack to get | ||
| a memory buffer before the Ethernet frame is dropped. | ||
|
|
||
| endif |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Maybe a bit off-topic. It looks like second MicroClick modules are used as based board. Is there any plan to add them to zephyr as "capes"? IIRC for LAN8651 I also wanted to add it - in a way similar to:
https://github.com/zephyrproject-rtos/zephyr/tree/main/boards/shields/mikroe_wifi_bt_click
or
https://github.com/zephyrproject-rtos/zephyr/tree/main/boards/shields/mikroe_eth_click
but the reply was that we cannot tie to any specific board (like with
microe_wifi_bt_click.Uh oh!
There was an error while loading. Please reload this page.
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.
@lmajewski I was also thinking adding it as a shield in a second PR. At the moment I want to pass only a minimal implementation of the driver.
I know that we should not tie drivers to specific shields but also Microship itself is using this module to demonstrate LAN9250 on their Quick Start Guide