EVAL-ADIN2111EVB Evaluation board
Overview
The EVAL-ADIN2111EBZ is a flexible platform enabling quick evaluation of the ADIN2111, robust, low power 10BASE-T1L 2-Port Ethernet switch. The evaluation board provides 2 10BASE-T1L channels with 10Mbit per second Single Pair Ethernet (SPE) connections reaching up to 1.7km of link distance.
The ADIN2111 internal switch can be configured in store and forward mode between the two 10BASE-T1L channels and the SPI host. Cut through mode is also available between Port 1 and Port 2 and can be used without the need of the SPI host (unmanaged configuration).
The evaluation board offers two modes of operation for maximum flexibility: Connected to a PC via USB port, the full set of ADIN2111 register settings and features such as link quality monitoring and diagnostics can be accessed over the USB using the serial command interface implemented in the evaluation firmware.
Alternatively, the board can operate in cut-through mode between Port 1 and Port 2 (unmanaged configuration without firmware) where the EVAL-ADIN2111EBZ acts as a network switch forwarding packets between the 2x 10BASE-T1L ports. The 2x links are configured by setting the ADIN2111 hardware configuration pins jumper and switches. The 2x On-board Activity LEDs provide Link activity status indication for each port.
Custom firmware can also be developed and the ADIN2111 driver support package includes simple project examples to start a custom implementation.
The SPI interface provides access to the management registers required for the switch configuration, the 2 PHYs configuration and data exchange between SPI host and ports.
Important
S1 DIP switches are shipped in Open Alliance SPI mode. The current Zephyr
default board configuration is set to work as “Generic SPI, CRC enabled”,
so the S1 DIP switches must be set as SPI_CFG0 OFF and SPI_CFG1 OFF
.
An inconsistent S1 DIP switches configuration will halt the boot.
Hardware
The ADI EVAL-ADIN2111EBZ hardware features list is available here:
https://wiki.analog.com/resources/eval/user-guides/eval-adin2111ebz-user-guide
Supported Features
The adi_eval_adin2111ebz
board supports the hardware features listed below.
- on-chip / on-board
- Feature integrated in the SoC / present on the board.
- 2 / 2
-
Number of instances that are enabled / disabled.
Click on the label to see the first instance of this feature in the board/SoC DTS files. -
vnd,foo
-
Compatible string for the Devicetree binding matching the feature.
Click on the link to view the binding documentation.
adi_eval_adin2111ebz/stm32l4s5xx
target
Type |
Location |
Description |
Compatible |
---|---|---|---|
CPU |
on-chip |
ARM Cortex-M4F CPU1 |
|
ADC |
on-chip |
STM32 ADC2 |
|
CAN |
on-chip |
STM32 CAN controller1 |
|
Clock control |
on-chip |
STM32 RCC (Reset and Clock controller)1 |
|
on-chip |
STM32 HSE Clock1 |
||
on-chip |
Generic fixed-rate clock provider3 |
||
on-chip |
STM32 MSI Clock1 |
||
on-chip |
STM32 LSE Clock1 |
||
on-chip |
STM32L4/L5 main PLL1 |
||
on-chip |
STM32 Microcontroller Clock Output (MCO)1 |
||
Counter |
on-chip |
STM32 counters9 |
|
Cryptographic accelerator |
on-chip |
STM32L4 AES Accelerator1 |
|
DAC |
on-chip |
STM32 family DAC1 |
|
DMA |
on-chip |
||
on-chip |
STM32 DMAMUX controller1 |
||
Ethernet |
on-board |
ADIN2111 standalone 10BASE-T1L Ethernet controller with SPI interface1 |
|
on-board |
ADIN2111 PHY2 |
||
Flash controller |
on-chip |
STM32 Family flash controller1 |
|
GPIO & Headers |
on-chip |
STM32 GPIO Controller9 |
|
I2C |
on-chip |
STM32 I2C V2 controller4 |
|
Interrupt controller |
on-chip |
ARMv7-M NVIC (Nested Vectored Interrupt Controller)1 |
|
on-chip |
STM32 External Interrupt Controller1 |
||
LED |
on-board |
Group of GPIO-controlled LEDs1 |
|
MDIO |
on-board |
ADIN2111 MDIO Driver node1 |
|
Memory controller |
on-chip |
STM32 Battery Backed RAM1 |
|
MMC |
on-chip |
STM32 SDMMC Disk Access1 |
|
MTD |
on-chip |
STM32 flash memory1 |
|
on-board |
Fixed partitions of a flash (or other non-volatile storage) memory1 |
||
on-board |
Properties supporting Zephyr spi-nor flash driver (over the Zephyr SPI API) control of serial flash memories using the standard M25P80-based command set1 |
||
OCTOSPI |
on-chip |
STM32 OSPI Controller2 |
|
PHY |
on-chip |
This binding is to be used by all the usb transceivers which are built-in with USB IP1 |
|
Pin control |
on-chip |
STM32 Pin controller1 |
|
Power management |
on-chip |
STM32 power controller1 |
|
PWM |
on-chip |
STM32 PWM10 |
|
Reset controller |
on-chip |
STM32 Reset and Clock Control (RCC) Controller1 |
|
RNG |
on-chip |
STM32 Random Number Generator1 |
|
RTC |
on-chip |
STM32 RTC1 |
|
Sensors |
on-chip |
STM32 family TEMP node for production calibrated sensors with two calibration temperatures1 |
|
on-chip |
STM32 VREF+1 |
||
on-chip |
STM32 VBAT1 |
||
Serial controller |
on-chip |
||
on-chip |
STM32 LPUART1 |
||
on-chip |
STM32 UART2 |
||
SMbus |
on-chip |
STM32 SMBus controller4 |
|
SPI |
on-chip |
||
SRAM |
on-chip |
Generic on-chip SRAM description1 |
|
Timer |
on-chip |
ARMv7-M System Tick1 |
|
on-chip |
STM32 timers11 |
||
on-chip |
STM32 low-power timer (LPTIM)2 |
||
USB |
on-chip |
STM32 OTGFS controller1 |
|
Watchdog |
on-chip |
STM32 watchdog1 |
|
on-chip |
STM32 system window watchdog1 |
Connections and IOs
ADI ADIN2111EBZ evaluation board has 7 GPIO controllers (from A to G). These controllers are responsible for pin muxing, input/output, pull-up, etc.
For mode details please refer to EVAL-ADIN2111EBZ User Guide.
Default Zephyr Peripheral Mapping:
UART_1 TX/RX : PA9/PA10 (UART to FT232, console)
SPI1 SCK/MISO/MOSI : PA5/PA6/PA7 (SPI to external nor flash IS25LP128)
SPI2 SCK/MISO/MOSI : PB13/PB14/PB15 (SPI to external ADIN2111)
LED1 : POWER (Green LED)
UC_LED1 : PB6 (Blue LED)
MOD LED1 : PE2 (SR LED)
MOD LED2 : PE6 (BG LED)
NET LED1 : PB10 (SR LED)
NET LED2 : PB11 (BG LED)
System Clock
EVAL-ADIN2111EBZ System Clock could be driven by an internal or external oscillator, as well as the main PLL clock. By default the System clock is driven by the PLL clock at 80MHz, driven by the 16MHz high speed internal oscillator.
Serial Port
EVAL-ADIN2111EBZ has 1 U(S)ART. The Zephyr console output is assigned to UART1 that is connected to a FT232, available through Micro USB connector. Default settings are 115200 8N1. Same UART1 TX and RX cmos signals are available before the FT232, at P9 connector.
Programming and Debugging
Flashing
EVAL-ADIN2111EBZ includes an ST-LINK/V2-1 JTAG/SWD 10 or 20 pin connector. This interface is supported by the openocd version included in Zephyr SDK.
Flashing an application to Discovery kit
Connect the EVAL-ADIN2111EBZ to your host computer using the USB port, then run a serial host program to connect with your ADI board. For example:
$ minicom -D /dev/serial/by-id/usb-ADI_EVAL-ADIN2111EBZ_XXXXXX-12-if00-port0
where XXXXXX is the serial number of the connected device. Then, build and flash in the usual way. Here is an example for the Hello World application.
# From the root of the zephyr repository
west build -b adi_eval_adin2111ebz samples/hello_world
west flash
You should see the following message on the console:
Hello World! adi_eval_adin2111ebz
Debugging
You can debug an application in the usual way. Here is an example for the Hello World application.
# From the root of the zephyr repository
west build -b adi_eval_adin2111ebz samples/hello_world
west debug