Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
main ▾

Modern-Apps.git / firmware / qorvo-uwb / Kconfig

Kconfig55 lines · 1.9 KiBRaw
1# Copyright (c) 2026 Vayun Mathur
2# SPDX-License-Identifier: Apache-2.0
3
4config QORVO_UWB
5 bool "Qorvo DW3xxx / QM33 UWB stack"
6 select SPI
7 select GPIO
8 select POLL
9 # The stack's frame protection (CCM*, CMAC key derivation, ECB header IEs) runs on
10 # PSA via src/mcps_crypto_psa.c.
11 select PSA_CRYPTO
12 select PSA_WANT_KEY_TYPE_AES
13 select PSA_WANT_ALG_CMAC
14 select PSA_WANT_ALG_CCM
15 select PSA_WANT_ALG_ECB_NO_PADDING
16 select PSA_WANT_GENERATE_RANDOM
17 help
18 Build the Qorvo DW3xxx driver, the Zephyr qosal/qhal backends and link the
19 prebuilt FiRa uwbstack bundle. Requires the licensed DW3_QM33 SDK, which is
20 not vendored here — point QORVO_SDK_DIR at an extracted copy. See
21 firmware/qorvo-uwb/README.md.
22
23if QORVO_UWB
24
25config QORVO_UWB_SPI_FREQ_SLOW_HZ
26 int "SPI frequency used before the device is identified (Hz)"
27 default 4000000
28 help
29 The DW3000 requires <= 7 MHz until it has left INIT state, per Qorvo's
30 driver notes. 4 MHz is what the vendor SDK uses.
31
32config QORVO_UWB_SPI_FREQ_FAST_HZ
33 int "SPI frequency used once the device is up (Hz)"
34 default 8000000
35 help
36 The DW3000 tolerates up to 38 MHz, but this is also capped by the dw3110 node's
37 spi-max-frequency, and 32 MHz only works at all on nRF52833's SPIM3. 8 MHz is
38 plenty — nothing about ranging is bottlenecked on register access — and it avoids
39 a class of signal-integrity problems that only appear once traffic gets real.
40
41config QORVO_UWB_QLOG_LEVEL
42 int "Log level passed to the Qorvo stack as CONFIG_QLOG_LEVEL"
43 default 2
44 range 0 4
45 help
46 Qorvo's own scale, which is NOT Zephyr's: 0=off 1=error 2=info 3=debug 4=trace.
47 The stack filters its own logs with this and routes them through the Zephyr
48 logging backend. The Zephyr-side level for this module's own sources is
49 QORVO_UWB_LOG_LEVEL below, where 2 means warning rather than info.
50
51module = QORVO_UWB
52module-str = Qorvo UWB
53source "subsys/logging/Kconfig.template.log_config"
54
55endif # QORVO_UWB