Device Tree
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.
Device Tree Source (.dts)
root
- /: This is root for device tree.
node
[]: means option
- [aliae_name:] node-name[@unit-address] :
- unit-address: indicate the address mapping to device.
- if the node doesn't have "reg" property, the unit-address can't be exist.
- properties definitions:
-
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.
- address-cells and #size-cells :
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, β¦>
- phandle:
A phandle value is a way to reference another node in the devicetree
- In an array, the "&" reference will expand to a phandle.
- Outside an arry, the "&" reference will expand to the path of the node you're referring to.
This means
Device tree code trace and How to load into kernel
[TBD]
how to build
ref
Introduction to Linux kernel
driver programming
Device TreeοΌδΊοΌοΌεΊζ¬ζ¦εΏ΅
Device TreeοΌδΈοΌοΌδ»£η εζ
Device TreeοΌεοΌοΌζδ»Άη»ζθ§£ζ
example in linux kernel
- dtsi example
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More β
- dts example
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More β
- Device Tree PIN defineitions
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More β
- Device match to device driver
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More β