Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Telink] Add Thread Optimization Configs #389

Merged
merged 4 commits into from
Mar 10, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/chef.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ jobs:
platform: telink
- name: Update Zephyr to specific revision (for developers purpose)
shell: bash
run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py 5e1c91c9fb0c0a9b32bb075283e5f7cb77606d74"
run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py 83e187168d097ce157972dbc92aeff888bf84d74"
- name: CI Examples Telink
shell: bash
run: |
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/examples-telink.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
gh-context: ${{ toJson(github) }}

- name: Update Zephyr to specific revision (for developers purpose)
run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py 5e1c91c9fb0c0a9b32bb075283e5f7cb77606d74"
run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py 83e187168d097ce157972dbc92aeff888bf84d74"

- name: Build example Telink (B92 retention) Air Quality Sensor App
# Run test for master and s07641069 PRs
Expand Down Expand Up @@ -179,18 +179,18 @@ jobs:
run: rm -rf ./out/telink*

# tl321x_retention is not supported by the Zephyr 3.7 version
# - name: Build example Telink (tl321x_retention) Light Switch App with OTA, Shell, Factory Data
# # Run test for master and all PRs
# run: |
# ./scripts/run_in_build_env.sh \
# "./scripts/build/build_examples.py --target 'telink-tl3218x_retention-light-switch-ota-shell-factory-data' build"
# .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
# telink tl3218x_retention light-switch-app-ota-shell-factory-data \
# out/telink-tl3218x_retention-light-switch-ota-shell-factory-data/zephyr/zephyr.elf \
# /tmp/bloat_reports/
- name: Build example Telink (tl321x_retention) Light Switch App with OTA, Shell, Factory Data
# Run test for master and all PRs
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py --target 'telink-tl3218x_retention-light-switch-ota-shell-factory-data' build"
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
telink tl3218x_retention light-switch-app-ota-shell-factory-data \
out/telink-tl3218x_retention-light-switch-ota-shell-factory-data/zephyr/zephyr.elf \
/tmp/bloat_reports/
# - name: clean out build output (keep tools)
# run: rm -rf ./out/telink*
- name: clean out build output (keep tools)
run: rm -rf ./out/telink*

- name: Build example Telink (tl721x) Lighting App with OTA, Shell, Factory Data
# Run test for master and all PRs
Expand Down
15 changes: 14 additions & 1 deletion config/telink/chip-module/Kconfig.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ config HEAP_MEM_POOL_SIZE
default 1280

config COMMON_LIBC_MALLOC_ARENA_SIZE
default 20716 if SOC_SERIES_RISCV_TELINK_B9X_RETENTION || (SOC_RISCV_TELINK_TL321X && ZEPHYR_VERSION_3_3)
default 20716 if SOC_SERIES_RISCV_TELINK_B9X_RETENTION || \
(SOC_RISCV_TELINK_TL321X && ZEPHYR_VERSION_3_3) || \
(SOC_RISCV_TELINK_TL721X && SOC_SERIES_RISCV_TELINK_TLX_RETENTION && ZEPHYR_VERSION_3_3)
default 16384 if SOC_RISCV_TELINK_TL721X || (SOC_RISCV_TELINK_TL321X && !ZEPHYR_VERSION_3_3)
default 12288

Expand Down Expand Up @@ -301,6 +303,17 @@ endchoice
config CHIP_ENABLE_ICD_SUPPORT
default y if CHIP_THREAD_DEVICE_ROLE_SLEEPY_END_DEVICE

config OPENTHREAD_CSMABACKOFF_OPTIMIZATION
bool "Skip the first backoff during sending data request"
depends on CHIP_ENABLE_ICD_SUPPORT
default n

config IEEE802154_TLX_OPTIMIZATION
bool "optimize the rf performance for tlx"
default n
help
optimize the rf performance for tlx.

config OPENTHREAD_THREAD_STACK_SIZE
default 2400 if PM || SOC_RISCV_TELINK_TL321X

Expand Down
Loading