boards/adi/eval_adin2111ebz/doc/index.html · boards/adi/eval_adin2111ebz/doc/index.rst 공식 원문 ↗

Zephyr 3.7.0 · Analog Devices · ADIN2111

ADI EVAL-ADIN2111EBZ 평가 보드

Single Pair Ethernet 두 port를 store-and-forward 또는 cut-through switch로 사용하는 설정과 Zephyr 연결을 설명합니다.

Official pathboards/adi/eval_adin2111ebz/doc/index.html
Source fileboards/adi/eval_adin2111ebz/doc/index.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

본문 기준: Zephyr 3.7.0 LTS3 · 이후 유지보수 패치는 별도입니다.

Part 1

요약·해설

EVAL-ADIN2111EBZ는 견고하고 저전력인 ADIN2111 10BASE-T1L 2-port Ethernet switch를 빠르게 평가하는 platform입니다. 10 Mbit/s Single Pair Ethernet(SPE) channel 2개가 각각 최대 1.7 km link를 제공합니다.

internal switch는 두 10BASE-T1L channel과 SPI host 사이에서 store-and-forward mode로 설정할 수 있습니다. Port 1과 Port 2 사이에는 cut-through mode도 있으며 SPI host 없이 unmanaged configuration으로 사용할 수 있습니다.

USB로 PC에 연결하면 evaluation firmware의 serial command interface를 통해 ADIN2111 register, link quality monitoring과 diagnostics를 사용할 수 있습니다. 또는 firmware 없이 Port 1과 Port 2 사이의 cut-through unmanaged switch로 동작시킬 수 있습니다. jumper와 switch로 두 link를 설정하며 activity LED 두 개가 port별 상태를 표시합니다.

custom firmware도 개발할 수 있고 driver support package에 시작용 project example이 포함됩니다. SPI interface는 switch management register, PHY 두 개 설정, SPI host와 port 사이의 data exchange에 접근합니다.

ADI EVAL-ADIN2111EBZ
ADI EVAL-ADIN2111EBZ. 이미지 출처: Analog Devices, Zephyr 3.7.0.
Link

10 Mbit/s 10BASE-T1L, 최대 1.7 km, 2 ports

Host

STM32L4 계열 MCU, SPI와 FT232 USB-UART

Debug

on-board ST-LINK/V2-1 JTAG/SWD, OpenOCD

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 B4C8AFF992EEF21711837B1B737FFED4A2841733D16412A2AC528B90454338C8
.. _adi_eval_adin2111ebz:

ADI 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.

.. figure:: ../../../../../../../boards/adi/eval_adin2111ebz/doc/img/adi_eval_adin2111ebz.webp
   :align: center
   :alt: ADI EVAL-ADIN2111EBZ

   ADI EVAL-ADIN2111EBZ (Credit: Analog Devices, Inc.)

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 adi_eval_adin2111ebz board configuration supports the
following hardware features:

+--------------+------------+-------------------------------------+
| Interface    | Controller | Driver/Component                    |
+==============+============+=====================================+
| NVIC         | on-chip    | nested vector interrupt controller  |
+--------------+------------+-------------------------------------+
| UART         | on-chip    | serial port-polling;                |
|              |            | serial port-interrupt               |
+--------------+------------+-------------------------------------+
| PINMUX       | on-chip    | pinmux                              |
+--------------+------------+-------------------------------------+
| GPIO         | on-chip    | gpio                                |
+--------------+------------+-------------------------------------+
| I2C          | on-chip    | i2c                                 |
+--------------+------------+-------------------------------------+
| SPI          | on-chip    | spi                                 |
+--------------+------------+-------------------------------------+
| PWM          | on-chip    | pwm                                 |
+--------------+------------+-------------------------------------+
| WATCHDOG     | on-chip    | independent watchdog                |
+--------------+------------+-------------------------------------+
| ADIN2111     | spi        | adin2111 10BASE-T1L mac/phy         |
+--------------+------------+-------------------------------------+
| FT232        | uart       | usb-uart                            |
+--------------+------------+-------------------------------------+


The default configuration can be found in the defconfig file:

	:zephyr_file:`boards/adi/eval_adin2111ebz/adi_eval_adin2111ebz_defconfig`


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 <https://wiki.analog.com/resources/eval/user-guides/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:

.. code-block:: console

   $ 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 :ref:`hello_world` application.

.. zephyr-app-commands::
   :zephyr-app: samples/hello_world
   :board: adi_eval_adin2111ebz
   :goals: build flash

You should see the following message on the console:

.. code-block:: console

   Hello World! adi_eval_adin2111ebz

Debugging
=========

You can debug an application in the usual way.  Here is an example for the :ref:`hello_world`
application.

.. zephyr-app-commands::
   :zephyr-app: samples/hello_world
   :board: adi_eval_adin2111ebz
   :maybe-skip-config:
   :goals: debug

.. _EVAL-ADIN2111EBZ evaluation board website:
   https://www.analog.com/en/design-center/evaluation-hardware-and-software/evaluation-boards-kits/eval-adin2111.html

.. _EVAL-ADIN2111EBZ board User Guide:
   https://wiki.analog.com/resources/eval/user-guides/eval-adin2111ebz-user-guide

.. _ADIN2111 Datasheet:
   https://www.analog.com/media/en/technical-documentation/data-sheets/adin2111.pdf

.. _STM32L4S5QII3P reference manual:
   https://www.st.com/resource/en/reference_manual/rm0432-stm32l4-series-advanced-armbased-32bit-mcus-stmicroelectronics.pdf

Part 3

한국어 전문 번역

개요

EVAL-ADIN2111EBZ는 견고하고 저전력인 ADIN2111 10BASE-T1L 2-port Ethernet switch를 빠르게 평가하는 platform입니다. 10 Mbit/s Single Pair Ethernet(SPE) channel 2개가 각각 최대 1.7 km link를 제공합니다.

internal switch는 두 10BASE-T1L channel과 SPI host 사이에서 store-and-forward mode로 설정할 수 있습니다. Port 1과 Port 2 사이에는 cut-through mode도 있으며 SPI host 없이 unmanaged configuration으로 사용할 수 있습니다.

USB로 PC에 연결하면 evaluation firmware의 serial command interface를 통해 ADIN2111 register, link quality monitoring과 diagnostics를 사용할 수 있습니다. 또는 firmware 없이 Port 1과 Port 2 사이의 cut-through unmanaged switch로 동작시킬 수 있습니다. jumper와 switch로 두 link를 설정하며 activity LED 두 개가 port별 상태를 표시합니다.

custom firmware도 개발할 수 있고 driver support package에 시작용 project example이 포함됩니다. SPI interface는 switch management register, PHY 두 개 설정, SPI host와 port 사이의 data exchange에 접근합니다.

ADI EVAL-ADIN2111EBZ
ADI EVAL-ADIN2111EBZ. 이미지 출처: Analog Devices.

하드웨어

hardware 기능 목록은 EVAL-ADIN2111EBZ user guide에서 확인할 수 있습니다.

지원 기능

ADI adi_eval_adin2111ebz board configuration은 다음 hardware 기능을 지원합니다.

InterfaceControllerDriver/Component
NVICon-chipnested vector interrupt controller
UARTon-chipserial port polling·interrupt
PINMUXon-chippinmux
GPIOon-chipgpio
I2Con-chipi2c
SPIon-chipspi
PWMon-chippwm
WATCHDOGon-chipindependent watchdog
ADIN2111spiadin2111 10BASE-T1L mac/phy
FT232uartusb-uart

기본 설정은 boards/adi/eval_adin2111ebz/adi_eval_adin2111ebz_defconfig에서 확인할 수 있습니다.

연결과 I/O

EVAL-ADIN2111EBZ에는 A~G의 GPIO controller 7개가 있으며 pin muxing, input/output, pull-up 등을 담당합니다. mode의 자세한 내용은 board user guide를 참고합니다.

Zephyr 기본 peripheral mapping

PeripheralPinsPurpose
UART_1 TX/RXPA9/PA10FT232 console
SPI1 SCK/MISO/MOSIPA5/PA6/PA7external NOR flash IS25LP128
SPI2 SCK/MISO/MOSIPB13/PB14/PB15external ADIN2111
LED1POWERGreen LED
UC_LED1PB6Blue LED
MOD LED1PE2SR LED
MOD LED2PE6BG LED
NET LED1PB10SR LED
NET LED2PB11BG LED

System clock

system clock은 internal/external oscillator 또는 main PLL로 구동할 수 있습니다. 기본값은 16 MHz high-speed internal oscillator가 구동하는 PLL의 80 MHz clock입니다.

Serial port

EVAL-ADIN2111EBZ에는 U(S)ART 1개가 있습니다. Zephyr console은 FT232에 연결된 UART1이며 Micro USB에서 사용할 수 있습니다. 같은 UART1 TX/RX CMOS signal을 FT232 앞의 P9 connector에서도 사용할 수 있습니다. 기본 설정은 115200 8N1입니다.

프로그래밍과 디버깅

EVAL-ADIN2111EBZ에는 ST-LINK/V2-1 JTAG/SWD 10-pin 또는 20-pin connector가 있습니다. Zephyr SDK에 포함된 OpenOCD가 이 interface를 지원합니다.

Discovery kit에 application flash

USB로 board를 host에 연결한 뒤 serial host program을 실행합니다. XXXXXX는 연결된 device의 serial number입니다.

$ minicom -D /dev/serial/by-id/usb-ADI_EVAL-ADIN2111EBZ_XXXXXX-12-if00-port0

hello_world를 build하고 flash합니다.

west build -b adi_eval_adin2111ebz samples/hello_world
west flash

console에 Hello World! adi_eval_adin2111ebz가 표시돼야 합니다.

Debugging

일반적인 방법으로 application을 debug할 수 있습니다.

west debug

참고 자료

Source

출처

영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.