Device tree is for describe the peripheral HW. It not noly can describe the detectable devices, but also can be used for non-detectable devices
non-detectable device: Like memory information, flash information, UARTs, GPIOs …etc.
[]: means option
describe the node property
the property can be no assigned value. e.g properties = [value]
properties attirbute:
Standard Properties
Here are list some special properites.
The #address-cells and #size-cells properties may be used in any device node that has children in the devicetree hierarchy and describes how child device nodes should be addressed.
The #address-cells property defines the number of <u32> cells used to encode the address field in a child node’s reg property.
The #size-cells property defines the number of <u32> cells used to encode the size field in a child node’s reg property
reg will use <address1, size1, address2, size2, …>
A phandle value is a way to reference another node in the devicetree
This means
[TBD]
Introduction to Linux kernel
driver programming
Device Tree(二):基本概念
Device Tree(三):代码分析
Device Tree(四):文件结构解析
example in linux kernel