forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
driver: eth: Support for lan8651 T1S ETH
This patch set provides support for T1S ethernet device - LAN8651. For SPI communication the implementation of Open Alliance TC6 specification is used. The driver implementation focuses mostly on reducing memory footprint, as the used SoC (STM32G491) for development has only 32 KiB RAM in total. Signed-off-by: Lukasz Majewski <[email protected]>
- Loading branch information
1 parent
1cef7f3
commit 12665a0
Showing
7 changed files
with
761 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 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 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 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,50 @@ | ||
# Copyright (c) 2023 DENX Software Engineering GmbH | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
menuconfig ETH_LAN865X | ||
bool "LAN865X 10BASE-T1S Controller" | ||
default y | ||
depends on DT_HAS_MICROCHIP_LAN865X_ENABLED | ||
select SPI | ||
help | ||
The LAN865X is a low power, 10BASE-T1S transceiver compliant with | ||
the IEEE® 802.3cg-2019™ Ethernet standard for long reach, 10 | ||
Mbps single pair Ethernet (SPE). | ||
|
||
Featuring an integrated media access control (MAC) and a PHY, | ||
the LAN865X enables direct connectivity with a variety of controllers | ||
via a serial peripheral inter-face (SPI). | ||
|
||
if ETH_LAN865X | ||
|
||
config ETH_LAN865X_INIT_PRIORITY | ||
int "LAN865X driver init priority" | ||
default 72 | ||
help | ||
LAN865X device driver initialization priority. | ||
Must be initialized after SPI. | ||
|
||
|
||
config ETH_LAN865X_IRQ_THREAD_STACK_SIZE | ||
int "Stack size for a thread that processes IRQ" | ||
default 512 | ||
help | ||
Size of the stack used for internal thread which is ran to | ||
process raised INT IRQ. | ||
|
||
config ETH_LAN865X_IRQ_THREAD_PRIO | ||
int "Priority for internal incoming packet handler" | ||
default 2 | ||
help | ||
Priority level for internal thread which is ran for LAN | ||
INT IRQ processing. | ||
|
||
config ETH_LAN865X_TIMEOUT | ||
int "IP buffer 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 # ETH_LAN865X |
Oops, something went wrong.