# SPDX-License-Identifier: Apache-2.0 # # 仿 Betaflight 的双向 DShot 驱动 binding。 # # 与 misaki,dshot 一样:作为 &timersX 的子节点(TX 定时器),DMA burst 发帧。 # 不同点:ESC 回包用「pacer 定时器 + DMA 采样 GPIO IDR」的方式收(BF 做法)。 description: | Bidirectional DShot ESC driver for STM32, Betaflight-style telemetry capture. The frame is generated with a timer DMA burst (like misaki,dshot); the ESC reply is sampled by a separate pacer timer whose UPDATE request triggers DMAs that copy GPIOx->IDR into buffers at 3x the symbol rate, then decoded (RLL + GCR) into eRPM. compatible: "misaki,dshot-bb" include: [base.yaml, pinctrl-device.yaml] properties: dmas: required: true description: | Three DMA specs (all point at the same controller, e.g. &dmamux1 on H7): name "burst": TX DMA (memory -> TIMx->DMAR), request = TIMx_UP. name "rxe" : RX sampling DMA for GPIOE->IDR, request = pacer UP. name "rxa" : RX sampling DMA for GPIOA->IDR, request = pacer UP. dma-names: required: true description: Must be "burst", "rxe", "rxa". pacer: type: phandle required: true description: | Pacer timer node (e.g. &timers2). Its UPDATE request drives the RX sampling DMAs. The driver configures its prescaler/ARR to run at 3x the DShot symbol rate. dshot-speed: type: int default: 300 enum: [150, 300, 600, 1200] description: DShot protocol speed in kbit/s. frame-interval-us: type: int default: 1000 description: Period at which DShot frames are (re)transmitted (us).