设备树基本语法
1_总领-本期设备树视频要怎么讲?讲什么?_哔哩哔哩_bilibili
基本的


特殊的

中断控制
描述GIC控制器
时钟







CPU



GPIO
个数,保留范围(起始、长度),个数对应的名字
GPIO映射-这个脚被用了换一个脚
pinctrl
管脚复用-这个脚换个功能
pinctrl用来配置管脚,复用上拉下拉等
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-i1FRthbn-1684331559159)(C:\Users\bbcen\AppData\Roaming\Typora\typora-user-images\image-20230313165449024.png)]
DTB文件格式
DTB展开成device_node
一个节点对应一个结构体
device_node转换成platform_device
匹配
获取设备树节点
获取属性
解决获取设备树资源失败的问题
platform_get_resource
ranges;

