From 4046de5cae55826c03fe1239b30917e6e56c2ce9 Mon Sep 17 00:00:00 2001 From: Johann Fischer Date: Tue, 5 Mar 2019 01:20:51 +0100 Subject: [PATCH] samples: wifi: add config to test winc1500 driver Add reel board config to test winc1500 driver. Signed-off-by: Johann Fischer --- samples/net/wifi/boards/reel_board.conf | 7 +++++++ samples/net/wifi/reel_board.overlay | 25 +++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 samples/net/wifi/boards/reel_board.conf create mode 100644 samples/net/wifi/reel_board.overlay diff --git a/samples/net/wifi/boards/reel_board.conf b/samples/net/wifi/boards/reel_board.conf new file mode 100644 index 00000000000..fd551216b65 --- /dev/null +++ b/samples/net/wifi/boards/reel_board.conf @@ -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 diff --git a/samples/net/wifi/reel_board.overlay b/samples/net/wifi/reel_board.overlay new file mode 100644 index 00000000000..ffd4bdf24ad --- /dev/null +++ b/samples/net/wifi/reel_board.overlay @@ -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>; + + }; +};