Commit ae22c697 authored by Stancu Florin's avatar Stancu Florin Committed by Stephanos Ioannidis
Browse files

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: default avatarStancu Florin <niflostancu@gmail.com>
parent d7f9e264
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -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";
};
+23 −0
Original line number Diff line number Diff line
/*
 * 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";
};
+3 −0
Original line number Diff line number Diff line
@@ -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
+23 −0
Original line number Diff line number Diff line
/*
 * 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";
};
+3 −0
Original line number Diff line number Diff line
@@ -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