samples: net: sockets: echo_server: Add sam_v71_xult config
Add necessary configuration to run demo on the sam_v71_xult board. Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
This commit is contained in:
parent
2d960aeeb7
commit
cc91a734d9
2 changed files with 42 additions and 0 deletions
20
samples/net/sockets/echo_server/boards/sam_v71_xult.conf
Normal file
20
samples/net/sockets/echo_server/boards/sam_v71_xult.conf
Normal file
|
@ -0,0 +1,20 @@
|
|||
CONFIG_IEEE802154_RF2XX=y
|
||||
|
||||
CONFIG_NET_6LO=y
|
||||
CONFIG_NET_L2_IEEE802154_FRAGMENT=y
|
||||
CONFIG_NET_L2_IEEE802154_FRAGMENT_REASS_CACHE_SIZE=2
|
||||
CONFIG_NET_L2_IEEE802154_SECURITY=n
|
||||
|
||||
CONFIG_NET_CONFIG_MY_IPV6_ADDR="2001:db8::1"
|
||||
CONFIG_NET_CONFIG_PEER_IPV6_ADDR="2001:db8::2"
|
||||
CONFIG_NET_CONFIG_IEEE802154_DEV_NAME="RF2XX_0"
|
||||
|
||||
CONFIG_DEVICE_SHELL=y
|
||||
CONFIG_CPLUSPLUS=n
|
||||
|
||||
CONFIG_ETH_SAM_GMAC=n
|
||||
CONFIG_I2C=n
|
||||
CONFIG_GPIO_SAM=y
|
||||
CONFIG_GPIO=y
|
||||
CONFIG_SPI_SAM_PORT_0=y
|
||||
CONFIG_SPI_SAM_PORT_0_PIN_CS1_PD25=y
|
22
samples/net/sockets/echo_server/boards/sam_v71_xult.overlay
Normal file
22
samples/net/sockets/echo_server/boards/sam_v71_xult.overlay
Normal file
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* Copyright (c) 2020 Gerson Fernando Budke
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
&spi0 {
|
||||
status = "okay";
|
||||
label = "SPI_RF2XX";
|
||||
cs-gpios = <&portd 25 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
|
||||
|
||||
rf2xx@0 {
|
||||
compatible = "atmel,rf2xx";
|
||||
reg = <0x0>;
|
||||
label = "RF2XX_0";
|
||||
spi-max-frequency = <6000000>;
|
||||
irq-gpios = <&portb 0 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>;
|
||||
reset-gpios = <&porta 3 GPIO_ACTIVE_LOW>;
|
||||
slptr-gpios = <&portb 1 GPIO_ACTIVE_HIGH>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue