samples: wifi: add config to test winc1500 driver
Add reel board config to test winc1500 driver. Signed-off-by: Johann Fischer <j.fischer@phytec.de>
This commit is contained in:
parent
a40e9d3762
commit
4046de5cae
2 changed files with 32 additions and 0 deletions
7
samples/net/wifi/boards/reel_board.conf
Normal file
7
samples/net/wifi/boards/reel_board.conf
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
CONFIG_GPIO=y
|
||||||
|
CONFIG_SPI=y
|
||||||
|
CONFIG_SPI_3=y
|
||||||
|
|
||||||
|
CONFIG_WIFI_WINC1500=y
|
||||||
|
CONFIG_WIFI_WINC1500_REGION_EUROPE=y
|
||||||
|
CONFIG_WIFI_WINC1500_GPIO_SPI_CS=y
|
25
samples/net/wifi/reel_board.overlay
Normal file
25
samples/net/wifi/reel_board.overlay
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2020 Phytec Messtechnik GmbH
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
&spi3 {
|
||||||
|
status = "ok";
|
||||||
|
cs-gpios = <&gpio1 3 0>;
|
||||||
|
sck-pin = <36>;
|
||||||
|
mosi-pin = <37>;
|
||||||
|
miso-pin = <38>;
|
||||||
|
|
||||||
|
winc1500@0 {
|
||||||
|
status = "ok";
|
||||||
|
compatible = "atmel,winc1500";
|
||||||
|
reg = <0x0>;
|
||||||
|
label = "winc1500";
|
||||||
|
spi-max-frequency = <4000000>;
|
||||||
|
irq-gpios = <&gpio1 7 1>;
|
||||||
|
reset-gpios = <&gpio1 8 1>;
|
||||||
|
enable-gpios = <&gpio1 12 0>;
|
||||||
|
|
||||||
|
};
|
||||||
|
};
|
Loading…
Add table
Add a link
Reference in a new issue