-
Notifications
You must be signed in to change notification settings - Fork 8.4k
shields: seeed_w5500: new shield #81336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| # Copyright (c) 2024 Marcin Niestroj | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| if SHIELD_SEEED_W5500 | ||
|
|
||
| if NETWORKING | ||
|
|
||
| config NET_L2_ETHERNET | ||
| default y | ||
|
|
||
| endif # NETWORKING | ||
|
|
||
| endif # SHIELD_SEEED_W5500 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. | ||
|
|
||
|
||
| .. 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 | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 */ | ||
| }; | ||
| }; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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:
There was a problem hiding this comment.
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 inboards/directory yet. I would rather leave it as is for now just for consistency.