Skip to content

Commit 7d63646

Browse files
mniestrojnashif
authored andcommitted
shields: seeed_w5500: new shield
Support "W5500 Ethernet Shield" manufactured by Seeed Studio. [1] https://www.seeedstudio.com/W5500-Ethernet-Shield.html Signed-off-by: Marcin Niestroj <[email protected]>
1 parent 6532c2f commit 7d63646

File tree

5 files changed

+103
-0
lines changed

5 files changed

+103
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Copyright (c) 2024 Marcin Niestroj
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
if SHIELD_SEEED_W5500
5+
6+
if NETWORKING
7+
8+
config NET_L2_ETHERNET
9+
default y
10+
11+
endif # NETWORKING
12+
13+
endif # SHIELD_SEEED_W5500
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (c) 2024 Marcin Niestroj
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config SHIELD_SEEED_W5500
5+
def_bool $(shields_list_contains,seeed_w5500)
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
.. _seeed_w5500:
2+
3+
Seeed W5500 Ethernet Shield
4+
###########################
5+
6+
Overview
7+
********
8+
9+
Seeed `W5500 Ethernet Shield`_ is an Arduino connector shield with:
10+
11+
- `W5500`_ 10/100 MBPS stand alone Ethernet controller with on-board MAC & PHY
12+
and 16 KiloBytes for FIFO buffer,
13+
- SPI serial interface,
14+
- Grove UART connector,
15+
- Grove I2C connector,
16+
- SD card slot.
17+
18+
.. figure:: seeed_w5500.webp
19+
:align: center
20+
:alt: Seeed W5500 Ethernet Shield
21+
22+
Seeed W5500 Ethernet Shield
23+
24+
Pins Assignment of the W5500 Shield
25+
===================================
26+
27+
+-----------------------+---------------------------------------------+
28+
| Shield Connector Pin | Function |
29+
+=======================+=============================================+
30+
| RST | Ethernet Controller's Reset |
31+
+-----------------------+---------------------------------------------+
32+
| D2 | Ethernet Controller's Interrupt Output |
33+
+-----------------------+---------------------------------------------+
34+
| D10 | SPI's Chip Select |
35+
+-----------------------+---------------------------------------------+
36+
| D11 | SPI's Master Output Slave Input (MOSI) |
37+
+-----------------------+---------------------------------------------+
38+
| D12 | SPI's Master Input Slave Output (MISO) |
39+
+-----------------------+---------------------------------------------+
40+
| D13 | SPI's Clock |
41+
+-----------------------+---------------------------------------------+
42+
43+
Requirements
44+
************
45+
46+
This shield can only be used with a board that provides a configuration
47+
for Arduino connectors and defines node aliases for SPI and GPIO interfaces
48+
(see :ref:`shields` for more details).
49+
50+
Programming
51+
***********
52+
53+
Set ``--shield seeed_w5500`` when you invoke ``west build``. For example:
54+
55+
.. zephyr-app-commands::
56+
:zephyr-app: samples/net/dhcpv4_client
57+
:board: nrf52840dk/nrf52840
58+
:shield: seeed_w5500
59+
:goals: build
60+
61+
References
62+
**********
63+
64+
.. target-notes::
65+
66+
.. _W5500:
67+
https://wiznet.io/products/iethernet-chips/w5500
68+
69+
.. _W5500 Ethernet Shield:
70+
https://wiki.seeedstudio.com/W5500_Ethernet_Shield_v1.0
14.8 KB
Loading
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* Copyright (c) 2024 Marcin Niestroj
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
&arduino_spi {
7+
status = "okay";
8+
9+
eth_w5500: eth-w5500@0 {
10+
compatible = "wiznet,w5500";
11+
reg = <0x0>;
12+
spi-max-frequency = <DT_FREQ_M(20)>;
13+
int-gpios = <&arduino_header 8 GPIO_ACTIVE_LOW>; /* D2 */
14+
};
15+
};

0 commit comments

Comments
 (0)