🌱 设备树驱动开发
从入门到精通
📘 30章 完整体系
⚡ 实战驱动
🧩 友好色
🗂️ 点击卡片跳转 → 对应章节
01
设备树入门
什么是设备树?为什么需要设备树?
↗
02
设备树基础语法
节点、属性、标签、路径写法
↗
03
设备树常用属性
compatible, reg, interrupts, status
↗
04
设备树地址编码
#address-cells, #size-cells, ranges
↗
05
设备树中断控制器
interrupt-parent, cells, controller
↗
06
设备树时钟与GPIO
clocks, clock-names, gpios
↗
07
设备树pinctrl
pinctrl-names, pinctrl-0/1 引脚复用
↗
08
设备树DTS文件结构
dtsi包含, /dts-v1/, include机制
↗
09
设备树编译与反编译
dtc工具, dtb生成, fdtdump
↗
10
设备树overlay
overlay语法, 动态加载/卸载
↗
11
设备树绑定文档
bindings/ 阅读与编写
↗
12
内核解析设备树流程
unflatten, of_node, property
↗
13
OF API入门
of_find_node_by_path, of_property_read_string
↗
14
OF API进阶
of_parse_phandle, of_match_table
↗
15
OF API中断与资源
of_irq_get, of_address_to_resource
↗
16
设备树与platform驱动
platform_driver, of_match_table
↗
17
设备树与I2C设备
i2c_client创建, 设备树描述
↗
18
设备树与SPI设备
spi_device创建, 设备树描述
↗
19
设备树与GPIO驱动
gpio_desc获取, 设备树映射
↗
20
设备树与中断驱动
request_irq与设备树中断关联
↗
21
设备树与时钟驱动
clk_get与设备树时钟关联
↗
22
设备树与DMA
dma_request_chan, dma描述
↗
23
设备树与regmap
regmap_init_i2c/spi, 寄存器配置
↗
24
设备树与input子系统
按键、触摸屏描述
↗
25
设备树与display子系统
framebuffer, panel描述
↗
26
设备树与电源管理
regulator, power-supply
↗
27
设备树与thermal
thermal-zones, cooling-devices
↗
28
设备树与pinctrl驱动
pinctrl驱动框架, 引脚控制实现
↗
29
设备树调试技巧
of_dump, debugfs, 错误排查
↗
30
设备树实战项目
从零编写完整外设节点与驱动
↗