← DriversDRIVERS 5.2

Platform Drivers and Device Tree

Not yet catalogued — how non-discoverable hardware gets described to the kernel, and how a driver gets matched to it. 9 bytes.

What this topic will cover

  • Why platform devices exist — hardware that can't enumerate itself, unlike USB or PCI.
  • Device tree purpose and syntax — nodes, properties, reg, interrupts, and the compatible string that drives matching.
  • platform_driver registration via of_match_table, and the probe/remove lifecycle — when probe actually gets called.
  • Getting resources in probe — platform_get_irq, devm_platform_ioremap_resource.
  • The bus/device/driver model as a general pattern, the DTB's role at boot (recap of 3.5.B3), and device tree overlays at a concept level.

Not yet catalogued — check back once this topic is underway.

Notes from readers

Comments — via GitHub