Tutorial: Mastering Zephyr Driver Development
summary
Shows exact claims and code: Zephyr driver flow uses Devicetree + Kconfig to generate compile‑time C headers, instance‑based DT macros and new dt_spec helpers; the repo implements a fingerprint sensor driver via UART with interrupt‑driven message queues and exposes custom channels/attributes; it adds a servo‑driven lock using PWM + ADC feedback and a lock API with syscall hooks; demos an out‑of‑tree app tying fingerprint trigger to Bluetooth control; links and sample app are on GitHub.
AI-written summary · about
chapters (40)
- 0:00Start
- 0:16Outline
- 2:43Zephyr Device Model
- 4:59Predefined Data Types
- 7:19Bindings
- 11:08Note Identifiers
- 11:53Aliases
- 16:47Zephyr Devices
- 19:59Device Driver Example
- 25:30Device Get Binding
- 26:02Implementing a Real Sensor Driver
- 26:59Serial Communications
- 29:50Enrolling
- 31:25Sensor Triggers
- 32:45File Tree Layout
- 34:01Bindings of the Sensor
- 40:07Driver Highlights
- 47:51Uart Callback Handler
- 51:35How Do I Access this Device from an Application Perspective
- 53:12Verify a Fingerprint
- 53:57Fingerprint Verification
- 1:03:24Log Api Design
- 1:04:37The File Tree
- 1:06:01Api Operations
- 1:06:55Syscall Support
- 1:08:22Servo Driven Lock
- 1:09:26Analog Feedback
- 1:10:29Pwm Specifier
- 1:11:00Adc Api
- 1:16:41Dt Spec Helper
- 1:18:33Adcd Spec
- 1:21:06How this Api Is Used
- 1:21:30Configure the Adc in Device
- 1:22:34Lock Servo
- 1:24:28Demo
- 1:31:25Conclusions
- 1:31:48Instances of a Device
- 1:39:25Add a New Sensor Api Call
- 1:40:24Check if the Device Is Null
- 1:44:43Network Drivers
related talks
42mAMP Virtio: A New Virto Transport for AMP Systems, with Focus on Zephyr, Linux, and Xen
53mNew ARM SoCs in the Mainline Kernel
30mTaming Unbounded Resources with Node Feature Discovery
27mIntel Trusted Domain Extensions (TDX) Host Kernel Support
05mLightning Talk: Managing Drivers in a Kubernetes Cluster
41mTowards a Cross-Hypervisor Test Framework for VirtIO Backend Validation Using VirtIO...
36mBringing vDPA to Life in Kubernetes
31mA Cloud Native Workflow for Hardware-in-the-Loop Software Development
