Skip to Content
Linux Device Drivers Development
book

Linux Device Drivers Development

by John Madieu
October 2017
Intermediate to advanced
586 pages
14h 8m
English
Packt Publishing
Content preview from Linux Device Drivers Development

Representing and addressing devices

Each device is given at least one node in a DT. Some properties are common to many device types, especially devices sitting on a bus known to the kernel (SPI, I2C, platform, MDIO, and so on). These properties are reg, #address-cells, and #size-cells. The purpose of these properties is device addressing on the bus they sit on. That said, the main addressing property is reg, which is a generic property whose meaning depends on the bus the device sits on. The # (hash) that prefixes size-cell and address-cell can be translated into length.

Each addressable device gets a reg property that is a list of tuples in the form reg = <address0 size0 [address1size1] [address2size2] ... >, where each tuple represents ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Linux Device Drivers, Second Edition

Linux Device Drivers, Second Edition

Jonathan Corbet, Alessandro Rubini
Linux Device Drivers, 3rd Edition

Linux Device Drivers, 3rd Edition

Jonathan Corbet, Alessandro Rubini, Greg Kroah-Hartman

Publisher Resources

ISBN: 9781785280009Supplemental Content