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

Pin Control and GPIO Subsystem

Most embedded Linux driver and kernel engineers write using GPIOs or play with pin multiplexing. By pins, I mean outgoing line of component. SoC does multiplex pins, meaning that a pin may have several functions; for example, MX6QDL_PAD_SD3_DAT1 in arch/arm/boot/dts/imx6dl-pinfunc.h can be either an SD3 data line 1, UART1's cts/rts, Flexcan2's Rx, or a normal GPIO.

The mechanism by which you choose the mode a pin should work in is called pin muxing. The system responsible for this is called the pin controller. In the second part of the chapter, we will discuss General Purpose Input Output (GPIO), which is a special function (mode) in which a pin can operate.

In this chapter, we will:

  • Walk through the pin control ...
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