1# Copyright (c) 2023 PHOENIX CONTACT Electronics GmbH
2# SPDX-License-Identifier: Apache-2.0
3
4menuconfig ETH_ADIN2111
5	bool "ADIN2111 2-port 10BASE-T1L Controller"
6	default y
7	depends on DT_HAS_ADI_ADIN2111_ENABLED || DT_HAS_ADI_ADIN1110_ENABLED
8	select SPI
9	select MDIO
10	imply CRC
11	help
12	  The ADIN2111 is a low power, 2-port 10BASE-T1L transceiver
13	  designed for industrial Ethernet applications, and is compliant with
14	  the IEEE® 802.3cg-2019™ Ethernet standard for long reach, 10
15	  Mbps single pair Ethernet (SPE).
16
17	  Featuring an integrated media access control (MAC) and a switch,
18	  the ADIN2111 enables direct connectivity with a variety of controllers
19	  via a serial peripheral inter-face (SPI).
20
21if ETH_ADIN2111
22
23config ETH_ADIN2111_IRQ_THREAD_STACK_SIZE
24	int "Stack size for a thread that processes ADIN IRQ"
25	default 2048
26	help
27	  Size of the stack used for internal thread which is ran to
28	  process raised INT IRQ.
29
30config ETH_ADIN2111_IRQ_THREAD_PRIO
31	int "Priority for internal incoming packet handler"
32	default 2
33	help
34	  Priority level for internal thread which is ran for ADIN
35	  INT IRQ processing.
36
37config ETH_ADIN2111_TIMEOUT
38	int "IP buffer timeout"
39	default 100
40	help
41	  Given timeout in milliseconds. Maximum amount of time
42	  that the driver will wait from the IP stack to get
43	  a memory buffer before the Ethernet frame is dropped.
44
45config ETH_ADIN2111_SPI_CFG0
46	bool "SPI_CFG0"
47	default y
48	help
49	  Must be set when ADIN uses 8-bit CRC (Generic SPI)
50	  or Protection Mode (OPEN Alliance) on the SPI Host Interface.
51
52config ETH_ADIN2111_BUFFER_SIZE
53	int "Buffer size in bytes use for frame transmission"
54	default 1524
55	help
56	  Transmission and reception buffer size.
57
58endif # ETH_ADIN2111
59