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

PWM client binding

PWM devices can be assigned to the consumer from:

  • The device tree
  • ACPI
  • Static lookup tables, in the board init file

This book will only deal with DT binding, as it is the recommended method. When binding a PWM consumer (client) to its driver, you need to provide the phandle of the controller to which it is linked.

It is recommended that you give the name pwms to PWM properties; since PWM devices are named resources, you can provide an optional property, pwm-names, containing a list of strings, to name each of the PWM devices listed in the pwms property. If no pwm-names property is given, the name of the user node will be used as a fallback.

Drivers for devices that use more than a single PWM device can use the pwm-names ...

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