zephyrproject-rtos/zephyr
View on GitHubDrop Futile BUILD_ASSERTs in tmc5xxx series
Open
#109,856 opened on May 26, 2026
Good first issuearea: Stepper
Description
Summary
stallguard_threshold_velocity is actually part of adi,tmc5xxx-stepper-ctrl bindings.
https://github.com/zephyrproject-rtos/zephyr/blob/cdb58275997595faa129ca83ed0cfeb37542026b/dts/bindings/stepper/adi/adi%2Ctmc50xx-stepper-ctrl.yaml#L10
https://github.com/zephyrproject-rtos/zephyr/blob/cdb58275997595faa129ca83ed0cfeb37542026b/drivers/stepper/adi_tmc/tmc51xx/tmc51xx_stepper_ctrl.c#L493
However, couple of other drivers in the tmc5xxx series do BUILD_ASSERT on this property. The ASSERT never actually happens since it's guarded by a COND_CODE_1, which would never be tree, hence it's actually futile.
Describe the solution you'd like
Drop the ASSERTs listed below.
Alternatives
No response
Additional Context
No response