Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions boards/shields/seeed_w5500/Kconfig.defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright (c) 2024 Marcin Niestroj
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice to have: SPDX-FileCopyrightText:

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for suggestion. Haven't found any SPDX-FileCopyrightText: use in boards/ directory yet. I would rather leave it as is for now just for consistency.

# SPDX-License-Identifier: Apache-2.0

if SHIELD_SEEED_W5500

if NETWORKING

config NET_L2_ETHERNET
default y

endif # NETWORKING

endif # SHIELD_SEEED_W5500
5 changes: 5 additions & 0 deletions boards/shields/seeed_w5500/Kconfig.shield
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright (c) 2024 Marcin Niestroj
# SPDX-License-Identifier: Apache-2.0

config SHIELD_SEEED_W5500
def_bool $(shields_list_contains,seeed_w5500)
70 changes: 70 additions & 0 deletions boards/shields/seeed_w5500/doc/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
.. _seeed_w5500:

Seeed W5500 Ethernet Shield
###########################

Overview
********

Seeed `W5500 Ethernet Shield`_ is an Arduino connector shield with:

- `W5500`_ 10/100 MBPS stand alone Ethernet controller with on-board MAC & PHY
and 16 KiloBytes for FIFO buffer,
- SPI serial interface,
- Grove UART connector,
- Grove I2C connector,
- SD card slot.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seeed W5500 Ethernet Shield_ is an Arduino connector shield with:

  • W5500_ 10/100 MBPS stand alone Ethernet controller with on-board
    MAC & PHY and 16 KiloBytes for FIFO buffer
  • SPI serial interface
  • Grove UART connector
  • Grove I2C connector
  • SD card slot.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applied, thanks!

.. figure:: seeed_w5500.webp
:align: center
:alt: Seeed W5500 Ethernet Shield

Seeed W5500 Ethernet Shield

Pins Assignment of the W5500 Shield
===================================

+-----------------------+---------------------------------------------+
| Shield Connector Pin | Function |
+=======================+=============================================+
| RST | Ethernet Controller's Reset |
+-----------------------+---------------------------------------------+
| D2 | Ethernet Controller's Interrupt Output |
+-----------------------+---------------------------------------------+
| D10 | SPI's Chip Select |
+-----------------------+---------------------------------------------+
| D11 | SPI's Master Output Slave Input (MOSI) |
+-----------------------+---------------------------------------------+
| D12 | SPI's Master Input Slave Output (MISO) |
+-----------------------+---------------------------------------------+
| D13 | SPI's Clock |
+-----------------------+---------------------------------------------+

Requirements
************

This shield can only be used with a board that provides a configuration
for Arduino connectors and defines node aliases for SPI and GPIO interfaces
(see :ref:`shields` for more details).

Programming
***********

Set ``--shield seeed_w5500`` when you invoke ``west build``. For example:

.. zephyr-app-commands::
:zephyr-app: samples/net/dhcpv4_client
:board: nrf52840dk/nrf52840
:shield: seeed_w5500
:goals: build

References
**********

.. target-notes::

.. _W5500:
https://wiznet.io/products/iethernet-chips/w5500

.. _W5500 Ethernet Shield:
https://wiki.seeedstudio.com/W5500_Ethernet_Shield_v1.0
Binary file added boards/shields/seeed_w5500/doc/seeed_w5500.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions boards/shields/seeed_w5500/seeed_w5500.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* Copyright (c) 2024 Marcin Niestroj
* SPDX-License-Identifier: Apache-2.0
*/

&arduino_spi {
status = "okay";

eth_w5500: eth-w5500@0 {
compatible = "wiznet,w5500";
reg = <0x0>;
spi-max-frequency = <DT_FREQ_M(20)>;
int-gpios = <&arduino_header 8 GPIO_ACTIVE_LOW>; /* D2 */
};
};
Loading