Skip to content

Commit 025d1cb

Browse files
committed
boards: beagle: beagleconnect_freedom: Add rev C5 support
There seem to be a decent number of C5 boards around. So add support for it while keeping C7 as the default version. The main difference between C7 and C5 is that C5 uses CC1352P instead of CC1352P7 Signed-off-by: Ayush Singh <ayush@beagleboard.org>
1 parent 869881e commit 025d1cb

11 files changed

+189
-56
lines changed
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
# SPDX-License-Identifier: Apache-2.0
22

33
zephyr_library()
4-
zephyr_library_sources(
5-
board_antenna.c
6-
)
7-
8-
zephyr_library_compile_definitions("DeviceFamily_CC13X2X7")
4+
zephyr_library_sources(board_antenna.c)

boards/beagle/beagleconnect_freedom/Kconfig.beagleconnect_freedom

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55
# SPDX-License-Identifier: Apache-2.0
66

77
config BOARD_BEAGLECONNECT_FREEDOM
8-
select SOC_CC1352P7
8+
select SOC_CC1352P7 if BOARD_BEAGLECONNECT_FREEDOM_CC1352P7
9+
select SOC_CC1352P if BOARD_BEAGLECONNECT_FREEDOM_CC1352P

boards/beagle/beagleconnect_freedom/beagleconnect_freedom.dts renamed to boards/beagle/beagleconnect_freedom/beagleconnect_freedom-common.dtsi

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
* SPDX-License-Identifier: Apache-2.0
66
*/
77

8-
/dts-v1/;
9-
10-
#include <ti/cc1352r7.dtsi>
118
#include "beagleconnect_freedom-pinctrl.dtsi"
129
#include <zephyr/dt-bindings/input/input-event-codes.h>
1310

@@ -97,28 +94,6 @@
9794
};
9895
};
9996

100-
&flash0 {
101-
partitions {
102-
compatible = "fixed-partitions";
103-
#address-cells = <1>;
104-
#size-cells = <1>;
105-
106-
/* Allocate 56 KiB for mcuboot */
107-
boot_partition: partition@0 {
108-
label = "mcuboot";
109-
reg = <0x00000000 DT_SIZE_K(56)>;
110-
};
111-
112-
/* Allocate 640 KiB for application */
113-
slot0_partition: partition@e000 {
114-
label = "image-0";
115-
reg = <0x0000e000 DT_SIZE_K(640)>;
116-
};
117-
118-
/* (avoid touching CCFG) */
119-
};
120-
};
121-
12297
&cpu0 {
12398
clock-frequency = <48000000>;
12499
};
@@ -181,29 +156,6 @@
181156
t-enter-dpd = <20000>;
182157
t-exit-dpd = <100000>;
183158
jedec-id = [c8 40 15];
184-
185-
partitions {
186-
compatible = "fixed-partitions";
187-
#address-cells = <1>;
188-
#size-cells = <1>;
189-
190-
/* Allocate 640 KiB for application */
191-
slot1_partition: partition@0 {
192-
label = "image-1";
193-
reg = <0x00000000 DT_SIZE_K(640)>;
194-
};
195-
196-
/* Allocate 128 KiB scratch for image swap */
197-
scratch_partition: partition@A0000 {
198-
label = "image-scratch";
199-
reg = <0x000a0000 DT_SIZE_K(128)>;
200-
};
201-
202-
storage_partition: partition@c0000 {
203-
label = "storage";
204-
reg = <0x000c0000 DT_SIZE_K(1280)>;
205-
};
206-
};
207159
};
208160
};
209161

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
/*
2+
* Copyright (c) 2025 Ayush Singh, BeagleBoard.org Foundation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/dts-v1/;
8+
9+
#include <ti/cc1352r.dtsi>
10+
#include "beagleconnect_freedom-common.dtsi"
11+
12+
&flash0 {
13+
partitions {
14+
compatible = "fixed-partitions";
15+
#address-cells = <1>;
16+
#size-cells = <1>;
17+
18+
/* Allocate 40 KiB for mcuboot */
19+
boot_partition: partition@0 {
20+
label = "mcuboot";
21+
reg = <0x00000000 DT_SIZE_K(40)>;
22+
};
23+
24+
/* Allocate 304 KiB for application */
25+
slot0_partition: partition@a000 {
26+
label = "image-0";
27+
reg = <0x0000a000 DT_SIZE_K(304)>;
28+
};
29+
30+
/* (avoid touching CCFG) */
31+
};
32+
};
33+
34+
&spi_flash0 {
35+
partitions {
36+
compatible = "fixed-partitions";
37+
#address-cells = <1>;
38+
#size-cells = <1>;
39+
40+
/* Allocate 304 KiB for application */
41+
slot1_partition: partition@0 {
42+
label = "image-1";
43+
reg = <0x00000000 DT_SIZE_K(304)>;
44+
};
45+
46+
/* Allocate 16 KiB scratch for image swap */
47+
scratch_partition: partition@4c000 {
48+
label = "image-scratch";
49+
reg = <0x0004c000 DT_SIZE_K(16)>;
50+
};
51+
52+
storage_partition: partition@50000 {
53+
label = "storage";
54+
reg = <0x00050000 DT_SIZE_K(1728)>;
55+
};
56+
};
57+
};
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
identifier: beagleconnect_freedom/cc1352p
2+
name: BeagleConnect Freedom
3+
type: mcu
4+
arch: arm
5+
ram: 80
6+
flash: 352
7+
toolchain:
8+
- zephyr
9+
- gnuarmemb
10+
supported:
11+
- gpio
12+
- i2c
13+
- spi
14+
- uart
15+
- hwinfo
16+
- adc
17+
- pwm
18+
- flash
19+
vendor: beagle
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
/*
2+
* Copyright (c) 2025 Ayush Singh, BeagleBoard.org Foundation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/dts-v1/;
8+
9+
#include <ti/cc1352r7.dtsi>
10+
#include "beagleconnect_freedom-common.dtsi"
11+
12+
&flash0 {
13+
partitions {
14+
compatible = "fixed-partitions";
15+
#address-cells = <1>;
16+
#size-cells = <1>;
17+
18+
/* Allocate 56 KiB for mcuboot */
19+
boot_partition: partition@0 {
20+
label = "mcuboot";
21+
reg = <0x00000000 DT_SIZE_K(56)>;
22+
};
23+
24+
/* Allocate 640 KiB for application */
25+
slot0_partition: partition@e000 {
26+
label = "image-0";
27+
reg = <0x0000e000 DT_SIZE_K(640)>;
28+
};
29+
30+
/* (avoid touching CCFG) */
31+
};
32+
};
33+
34+
&spi_flash0 {
35+
partitions {
36+
compatible = "fixed-partitions";
37+
#address-cells = <1>;
38+
#size-cells = <1>;
39+
40+
/* Allocate 640 KiB for application */
41+
slot1_partition: partition@0 {
42+
label = "image-1";
43+
reg = <0x00000000 DT_SIZE_K(640)>;
44+
};
45+
46+
/* Allocate 128 KiB scratch for image swap */
47+
scratch_partition: partition@A0000 {
48+
label = "image-scratch";
49+
reg = <0x000a0000 DT_SIZE_K(128)>;
50+
};
51+
52+
storage_partition: partition@c0000 {
53+
label = "storage";
54+
reg = <0x000c0000 DT_SIZE_K(1280)>;
55+
};
56+
};
57+
};

boards/beagle/beagleconnect_freedom/beagleconnect_freedom.yaml renamed to boards/beagle/beagleconnect_freedom/beagleconnect_freedom_cc1352p7.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
identifier: beagleconnect_freedom
1+
identifier: beagleconnect_freedom/cc1352p7
22
name: BeagleConnect Freedom
33
type: mcu
44
arch: arm
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#
2+
# Copyright (c) 2020 Erik Larson
3+
# Copyright (c) 2020 Jason Kridner, BeagleBoard.org Foundation
4+
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
#
7+
8+
CONFIG_GPIO=y
9+
10+
CONFIG_BUILD_OUTPUT_HEX=y
11+
# custom callback for the antenna switch
12+
CONFIG_CC13X2_CC26X2_HAS_CUSTOM_RF_HWATTRS=y
13+
CONFIG_CC13X2_CC26X2_BOOTLOADER_ENABLE=y
14+
CONFIG_CC13X2_CC26X2_BOOTLOADER_BACKDOOR_ENABLE=y
15+
CONFIG_CC13X2_CC26X2_BOOTLOADER_BACKDOOR_PIN=15
16+
# Enable MPU and hardware stack protection
17+
CONFIG_ARM_MPU=y
18+
CONFIG_HW_STACK_PROTECTION=y
19+
20+
# Enable default uart console
21+
CONFIG_SERIAL=y
22+
CONFIG_CONSOLE=y
23+
CONFIG_UART_CONSOLE=y

boards/beagle/beagleconnect_freedom/board.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,12 @@ board:
33
full_name: BeagleConnect Freedom
44
vendor: beagle
55
socs:
6-
- name: cc1352p7
6+
- name: cc1352p
7+
- name: cc1352p7
8+
revision:
9+
format: custom
10+
exact: true
11+
default: "C7"
12+
revisions:
13+
- name: "C5"
14+
- name: "C7"

0 commit comments

Comments
 (0)