Reputation: 37
How can I convert platform specific file to device tree?.
I know theoretically about device tree. Please explain how its works in raspberry pi board or any other boards.
Upvotes: 1
Views: 2169
Reputation: 22477
A device-tree is simply a data structure for describing the hardware present on a system. In the absence of device-tree, systems rely on "board-files". These are C files with plenty of structures, each describing every individual hardware present on the system and also how they are connected.
Porting of code from legacy "board-files" to device-tree
dts
files is currently an ongoing process across several platforms/devices based on the ARM architecture.
To do this one requires proper understanding of the
This answer should help you get started in preparing a device-tree dts
.
Also there is an ongoing effort to migrate the raspberry-pi Linux-kernel to use device-tree. Take a look at the source and booting instructions.
Upvotes: 6