Skip to content

Commit

Permalink
uio: Documentation: Add information on using uio_pdrv_genirq with DT
Browse files Browse the repository at this point in the history
Add a paragraph to describe the use of the "of_id" module parameter,
along with the new DT property.

Signed-off-by: Daniel Mack <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
zonque authored and gregkh committed Sep 4, 2019
1 parent b029762 commit ef9ae0c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Documentation/driver-api/uio-howto.rst
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,13 @@ handler code. You also do not need to know anything about the chip's
internal registers to create the kernel part of the driver. All you need
to know is the irq number of the pin the chip is connected to.

When used in a device-tree enabled system, the driver needs to be
probed with the ``"of_id"`` module parameter set to the ``"compatible"``
string of the node the driver is supposed to handle. By default, the
node's name (without the unit address) is exposed as name for the
UIO device in userspace. To set a custom name, a property named
``"linux,uio-name"`` may be specified in the DT node.

Using uio_dmem_genirq for platform devices
------------------------------------------

Expand Down

0 comments on commit ef9ae0c

Please sign in to comment.