Skip to content

Commit 3fdbfce

Browse files
authored
[Telink] Add Thread Optimization Configs (#389)
* [Telink] Add Thread Optimization Configs - OPENTHREAD_CSMABACKOFF_OPTIMIZATION - IEEE802154_TLX_OPTIMIZATION and set COMMON_LIBC_MALLOC_ARENA_SIZE to 20kb if tl7218x_retention for power consumption optimization based on d6882ec. Signed-off-by: Damien Ji <yinghao.ji@telink-semi.com>
1 parent badc07d commit 3fdbfce

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

.github/workflows/chef.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ jobs:
111111
platform: telink
112112
- name: Update Zephyr to specific revision (for developers purpose)
113113
shell: bash
114-
run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py 5e1c91c9fb0c0a9b32bb075283e5f7cb77606d74"
114+
run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py e8f404c8dd3ddca76e862fbfd395f2b38fabc8b5"
115115
- name: CI Examples Telink
116116
shell: bash
117117
run: |

.github/workflows/examples-telink.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
gh-context: ${{ toJson(github) }}
5959

6060
- name: Update Zephyr to specific revision (for developers purpose)
61-
run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py 5e1c91c9fb0c0a9b32bb075283e5f7cb77606d74"
61+
run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py e8f404c8dd3ddca76e862fbfd395f2b38fabc8b5"
6262

6363
- name: Build example Telink (B92 retention) Air Quality Sensor App
6464
# Run test for master and s07641069 PRs

config/telink/chip-module/Kconfig.defaults

+16-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ config HEAP_MEM_POOL_SIZE
8888
default 1280
8989

9090
config COMMON_LIBC_MALLOC_ARENA_SIZE
91-
default 20716 if SOC_SERIES_RISCV_TELINK_B9X_RETENTION || (SOC_RISCV_TELINK_TL321X && ZEPHYR_VERSION_3_3)
91+
default 20716 if SOC_SERIES_RISCV_TELINK_B9X_RETENTION || \
92+
(SOC_RISCV_TELINK_TL321X && ZEPHYR_VERSION_3_3) || \
93+
(SOC_RISCV_TELINK_TL721X && SOC_SERIES_RISCV_TELINK_TLX_RETENTION)
9294
default 16384 if SOC_RISCV_TELINK_TL721X || (SOC_RISCV_TELINK_TL321X && !ZEPHYR_VERSION_3_3)
9395
default 12288
9496

@@ -301,6 +303,19 @@ endchoice
301303
config CHIP_ENABLE_ICD_SUPPORT
302304
default y if CHIP_THREAD_DEVICE_ROLE_SLEEPY_END_DEVICE
303305

306+
config OPENTHREAD_CSMABACKOFF_OPTIMIZATION
307+
bool "Skip initial CSMA-CA backoff when sending data requests"
308+
depends on CHIP_ENABLE_ICD_SUPPORT
309+
default n
310+
help
311+
Skip the first CSMA backoff period when sending data requests over IEEE 802.15.4.
312+
313+
config IEEE802154_TLX_OPTIMIZATION
314+
bool "Optimize 802.15.4 RF performance for TLX SoCs"
315+
default n
316+
help
317+
Improve RF performance in IEEE 802.15.4 communication on TLX SoCs.
318+
304319
config OPENTHREAD_THREAD_STACK_SIZE
305320
default 2400 if PM || SOC_RISCV_TELINK_TL321X
306321

0 commit comments

Comments
 (0)