lkmpg icon indicating copy to clipboard operation
lkmpg copied to clipboard

Device-tree support

Open cruise-nclark opened this issue 3 years ago • 2 comments

Would it be possible to get a section that talks about device-trees and how they interact with kernel modules? That would be a great addition for the folks that work on embedded systems.

cruise-nclark avatar Aug 02 '21 18:08 cruise-nclark

@johnnylord, can you attempt to contribute preliminary descriptions along with sample code for device tree?

  • https://github.com/johnnylord/drivers/tree/main/06-devicemodel
  • https://github.com/johnnylord/drivers/tree/main/07-platform

jserv avatar Sep 08 '21 18:09 jserv

I will try to give the device tree example with raspberry pi (the open source one). As device tree is proposed to decouple the hardware description from the kernel source tree, some companies maintain their own device tree files for different platforms and SoCs product internally, and their device tree files are not public available.

johnnylord avatar Sep 09 '21 00:09 johnnylord