Skip to content

Commit fbae9af

Browse files
parthitcembolivar-nordic
authored andcommitted
boards: shield: add arceli w5500 ethernet
add shield for arceli w5500 ethernet breakout with SPI serial bus Signed-off-by: Parthiban Nallathambi <[email protected]>
1 parent 360d70a commit fbae9af

File tree

4 files changed

+98
-0
lines changed

4 files changed

+98
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Copyright (c) 2022 Linumiz
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
if SHIELD_ARCELI_ETH_W5500
5+
6+
if NETWORKING
7+
8+
# W5500 is L2 chip slave on SPI
9+
config SPI
10+
default y
11+
12+
config NET_L2_ETHERNET
13+
default y
14+
15+
# W5500 Ethernet Device
16+
config ETH_W5500
17+
default y
18+
19+
endif # NETWORKING
20+
21+
endif # SHIELD_ARCELI_ETH_W5500
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (c) 2022 Linumiz
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config SHIELD_ARCELI_ETH_W5500
5+
def_bool $(shields_list_contains,arceli_eth_w5500)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/* Copyright (c) 2022 Linumiz
2+
* SPDX-License-Identifier: Apache-2.0
3+
*/
4+
5+
&arduino_spi {
6+
status = "okay";
7+
8+
eth_w5500: eth_w5500@0 {
9+
compatible = "wiznet,w5500";
10+
reg = <0x0>;
11+
spi-max-frequency = <80000000>;
12+
int-gpios = <&arduino_header 15 GPIO_ACTIVE_LOW>; /* D9 */
13+
reset-gpios = <&arduino_header 14 GPIO_ACTIVE_LOW>; /* D8 */
14+
label = "w5500";
15+
};
16+
};
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
.. _arceli_eth_w5500:
2+
3+
ARCELI W5500 ETH
4+
################
5+
6+
Overview
7+
********
8+
9+
ARCELI W5500 etherner is breakout board with SPI bus access over 10 pin header.
10+
`W5500`_ is 10/100 MBPS stand alone Ethernet controller with on-board MAC & PHY,
11+
16 KiloBytes for FIFO buffer and SPI serial interface.
12+
13+
Pins Assignment of the W5500 Shield
14+
===================================
15+
16+
+-----------------------+---------------------------------------------+
17+
| Shield Connector Pin | Function |
18+
+=======================+=============================================+
19+
| RST# | Ethernet Controller's Reset |
20+
+-----------------------+---------------------------------------------+
21+
| CS# | SPI's Chip Select |
22+
+-----------------------+---------------------------------------------+
23+
| SCK | SPI's ClocK |
24+
+-----------------------+---------------------------------------------+
25+
| SDO | SPI's Slave Data Output (MISO) |
26+
+-----------------------+---------------------------------------------+
27+
| SDI | SPI's Slave Data Input (MISO) |
28+
+-----------------------+---------------------------------------------+
29+
| INT | Ethernet Controller's Interrupt Output |
30+
+-----------------------+---------------------------------------------+
31+
32+
33+
Requirements
34+
************
35+
36+
This shield/breakout board can be used with any board with SPI interfaces in
37+
Arduino header or custom header (by adjusting the overlay).
38+
39+
Programming
40+
***********
41+
42+
Set ``-DSHIELD=arceli_eth_w5500`` when you invoke ``west build``. For example:
43+
44+
.. zephyr-app-commands::
45+
:zephyr-app: samples/net/dhcp_client
46+
:board: nrf52840dk_nrf52840
47+
:shield: arceli_eth_w5500
48+
:goals: build
49+
50+
References
51+
**********
52+
53+
.. target-notes::
54+
55+
.. _W5500:
56+
https://www.wiznet.io/product-item/w5500/

0 commit comments

Comments
 (0)