@@ -24,6 +24,10 @@ config CHIP_PROJECT_CONFIG
24
24
string "Project configuration file for Matter"
25
25
default "include/CHIPProjectConfig.h"
26
26
27
+ config ZEPHYR_VERSION_3_3
28
+ bool "Using Zephyr version 3.3"
29
+ default n
30
+
27
31
config LOG
28
32
default y
29
33
@@ -62,6 +66,7 @@ config POSIX_MAX_FDS
62
66
# Application stack size
63
67
config MAIN_STACK_SIZE
64
68
default 3240 if PM || SOC_RISCV_TELINK_TL321X
69
+ default 4608 if SOC_RISCV_TELINK_W91 && !ZEPHYR_VERSION_3_3
65
70
default 4096
66
71
67
72
config INIT_STACKS
@@ -79,11 +84,12 @@ config SYSTEM_WORKQUEUE_STACK_SIZE
79
84
default 616 if PM
80
85
81
86
config HEAP_MEM_POOL_SIZE
82
- default 256
87
+ default 256 if ZEPHYR_VERSION_3_3
88
+ default 1280
83
89
84
90
config COMMON_LIBC_MALLOC_ARENA_SIZE
85
- default 20716 if SOC_RISCV_TELINK_TL321X || SOC_SERIES_RISCV_TELINK_B9X_RETENTION
86
- default 16384 if SOC_RISCV_TELINK_TL721X
91
+ default 20716 if SOC_SERIES_RISCV_TELINK_B9X_RETENTION || (SOC_RISCV_TELINK_TL321X && ZEPHYR_VERSION_3_3)
92
+ default 16384 if SOC_RISCV_TELINK_TL721X || (SOC_RISCV_TELINK_TL321X && !ZEPHYR_VERSION_3_3)
87
93
default 12288
88
94
89
95
config NET_IPV6_MLD
@@ -171,7 +177,8 @@ config BT_DEVICE_NAME_GATT_WRITABLE
171
177
if SOC_RISCV_TELINK_B9X || SOC_RISCV_TELINK_TLX
172
178
173
179
config TL_BLE_CTRL_THREAD_STACK_SIZE
174
- default 648
180
+ default 648 if ZEPHYR_VERSION_3_3
181
+ default 680
175
182
176
183
config TL_BLE_CTRL_MASTER_MAX_NUM
177
184
default 0
@@ -193,13 +200,9 @@ endif # SOC_RISCV_TELINK_B9X || SOC_RISCV_TELINK_TLX
193
200
194
201
endif # BT
195
202
196
- # Board retention config
197
- # Cut down the ram cost by matter's change,it can keep ramcode (driver).
198
- # No need load the ramcode every time in thread mode (retention mode).
199
- # If the ram is not enough , can change it back , initial setting is n.
200
203
if BOARD_TLSR9528A_RETENTION || BOARD_TLSR9518ADK80D_RETENTION
201
204
config SOC_SERIES_RISCV_TELINK_B9X_NON_RETENTION_RAM_CODE
202
- default n if PM
205
+ default y if PM
203
206
204
207
config TELINK_B9X_MATTER_RETENTION_LAYOUT
205
208
default y if PM
@@ -236,7 +239,7 @@ config CHIP_OTA_REQUESTOR
236
239
default y
237
240
238
241
config MCUBOOT_SIGNATURE_KEY_FILE
239
- default "bootloader/mcuboot/root-ec-p256.pem" if BOARD_TLSR9118BDK40D
242
+ default "bootloader/mcuboot/root-ec-p256.pem" if BOARD_TLSR9118BDK40D || BOARD_TLSR9118BDK40D_V1
240
243
depends on BOOTLOADER_MCUBOOT
241
244
242
245
# In current config/zephyr/Kconfig
@@ -350,6 +353,8 @@ config CHIP_WIFI
350
353
select NET_IPV6_ND # enable Neighbor Discovery to handle Router Advertisements
351
354
select NET_IPV6_NBR_CACHE
352
355
select NET_STATISTICS_USER_API
356
+ imply MBEDTLS_ENTROPY_C
357
+ imply MBEDTLS_KEY_EXCHANGE_RSA_ENABLED
353
358
354
359
if CHIP_WIFI
355
360
@@ -404,7 +409,14 @@ config CHIP_WIFI_CONNECTION_RECOVERY_JITTER
404
409
within range [-JITTER; +JITTER].
405
410
406
411
config NET_MGMT_EVENT_STACK_SIZE
407
- default 1128
412
+ default 1128 if ZEPHYR_VERSION_3_3
413
+ default 1250
414
+
415
+ if !ZEPHYR_VERSION_3_3
416
+ config IPC_SERVICE_BACKEND_ICMSG_WQ_STACK_SIZE
417
+ int "Size of RX work queue stack"
418
+ default 2304 if TELINK_W91_IPC_DISPATCHER
419
+ endif
408
420
409
421
endif # CHIP_WIFI
410
422
@@ -419,12 +431,9 @@ config CHIP_ENABLE_PAIRING_AUTOSTART
419
431
config MBEDTLS
420
432
default y
421
433
422
- config MBEDTLS_USER_CONFIG_ENABLE
434
+ config MBEDTLS_CIPHER_AES_ENABLED
423
435
default y
424
436
425
- config MBEDTLS_USER_CONFIG_FILE
426
- default "telink-mbedtls-config.h"
427
-
428
437
config MBEDTLS_CIPHER_CCM_ENABLED
429
438
default y
430
439
@@ -443,10 +452,29 @@ config MBEDTLS_ECDH_C
443
452
config MBEDTLS_ECDSA_C
444
453
default y
445
454
446
- # getopt version
447
- config GETOPT_LONG
455
+ config MBEDTLS_PKCS5_C
456
+ default y
457
+
458
+ config MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
459
+ default y
460
+
461
+ if !ZEPHYR_VERSION_3_3
462
+ config MBEDTLS_ENTROPY_POLL_ZEPHYR
463
+ bool "Provide entropy data to Mbed TLS through entropy driver or random generator"
464
+ default y
465
+
466
+ config MBEDTLS_HKDF_C
467
+ bool "HMAC-based Extract-and-Expand Key Derivation Function"
448
468
default y
449
469
470
+ config MBEDTLS_X509_CSR_WRITE_C
471
+ bool "X.509 Certificate Signing Requests writing"
472
+ default y
473
+ endif # !ZEPHYR_VERSION_3_3
474
+
475
+ config GETOPT_LONG
476
+ default y if ZEPHYR_VERSION_3_3
477
+
450
478
# Disable not used shell modules
451
479
452
480
config SHELL_WILDCARD
0 commit comments