boards: cc1352r1_launchxl: fix echo samples
Recent Zephyr changes (IEEE 802.15.4 config moved from KConfig to DeviceTree) left the TI CC1352r1_launchxl board's net examples in a non-working state, mainly due to the fact that CC13x2 has two IEEE802154 interfaces available (2.4GHz and sub-GHz) and none were enabled. This commit enables the 2.4GHz radio inside the board's DTS and also introduces a new devicetree overlay inside the echo* samples: 'boards/boards/cc1352-enable-subg.overlay', enabling the sub-GHz interface. Signed-off-by: Stancu Florin <niflostancu@gmail.com>
This commit is contained in:
parent
d7f9e26433
commit
ae22c697b3
5 changed files with 65 additions and 0 deletions
|
@ -28,6 +28,7 @@
|
|||
zephyr,flash = &flash0;
|
||||
zephyr,console = &uart0;
|
||||
zephyr,shell-uart = &uart0;
|
||||
zephyr,ieee802154 = &ieee802154;
|
||||
};
|
||||
|
||||
leds {
|
||||
|
@ -112,3 +113,15 @@
|
|||
&rtc {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&radio {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&ieee802154 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&ieee802154g {
|
||||
status = "disabled";
|
||||
};
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* Copyright (c) 2022 Florin Stancu
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Overlay to enable for CC1352R1 / CC1352P1-based boards.
|
||||
*/
|
||||
|
||||
/ {
|
||||
chosen {
|
||||
zephyr,ieee802154 = &ieee802154g;
|
||||
};
|
||||
};
|
||||
|
||||
&ieee802154 {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&ieee802154g {
|
||||
status = "okay";
|
||||
};
|
|
@ -15,4 +15,7 @@ CONFIG_NET_L2_IEEE802154=y
|
|||
CONFIG_NET_L2_IEEE802154_SHELL=y
|
||||
CONFIG_NET_L2_IEEE802154_LOG_LEVEL_INF=y
|
||||
|
||||
# Uncomment for 868 MHz
|
||||
#CONFIG_NET_CONFIG_IEEE802154_CHANNEL=0
|
||||
# Uncomment for 906 MHz:
|
||||
CONFIG_NET_CONFIG_IEEE802154_CHANNEL=1
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* Copyright (c) 2022 Florin Stancu
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Overlay to enable for CC1352R1 / CC1352P1-based boards.
|
||||
*/
|
||||
|
||||
/ {
|
||||
chosen {
|
||||
zephyr,ieee802154 = &ieee802154g;
|
||||
};
|
||||
};
|
||||
|
||||
&ieee802154 {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&ieee802154g {
|
||||
status = "okay";
|
||||
};
|
|
@ -13,4 +13,7 @@ CONFIG_NET_L2_IEEE802154=y
|
|||
CONFIG_NET_L2_IEEE802154_SHELL=y
|
||||
CONFIG_NET_L2_IEEE802154_LOG_LEVEL_INF=y
|
||||
|
||||
# Uncomment for 868 MHz
|
||||
#CONFIG_NET_CONFIG_IEEE802154_CHANNEL=0
|
||||
# Uncomment for 906 MHz:
|
||||
CONFIG_NET_CONFIG_IEEE802154_CHANNEL=1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue