device tree

introduction

将设备信息统一填在dts文件里,既方便管理,同时如果device有变,只要修改dts文件即可,kernel 不见得需要修改
DTB Devicetree blob. Compact binary representation of the devicetree
DTC Devicetree compiler. An open source tool used to create DTB files from DTS files.
DTS Devicetree syntax. A textual representation of a devicetree consumed by the DTC. See Appendix A Devicetree

Source Format (version 1).
OF open firmware

basic architecture

在这里插入图片描述

how to use

code

implemention : drivers\of
api : include\linux\of.h
include\linux\of_xxx.h

ref

device tress spec:
https://elinux.org/Device_tree_future#Devicetree_Specification
https://elinux.org/Device_Tree_Usage
https://www.cnblogs.com/biglucky/p/4057481.html

猜你喜欢

转载自blog.csdn.net/Xia_Lazy/article/details/83544956