<html><body><div id="edo-message"><div></div></div><div id="edo-original"><span style="-webkit-tap-highlight-color: transparent;">Hello all,</span></div><div id="edo-original"><span style="-webkit-tap-highlight-color: transparent;"><br></span></div><div id="edo-original"><span style="-webkit-tap-highlight-color: transparent;">I am trying to figure out how to use the uio_dmem_genirq driver with a platform device described in my device tree</span><br><span style="-webkit-tap-highlight-color: transparent;"><br></span></div><div id="edo-original"><span style="-webkit-tap-highlight-color: transparent;">My device tree entry looks something like this:</span></div><div id="edo-original"><span style="-webkit-tap-highlight-color: transparent;"><br></span></div><div id="edo-original"><span style="-webkit-tap-highlight-color: transparent;">    mydevice: mydevice@a0001000 {</span></div><div id="edo-original"><span style="-webkit-tap-highlight-color: transparent;">        compatible = "generic-uio";</span></div><div id="edo-original"><span style="-webkit-tap-highlight-color: transparent;">        ...</span></div><div id="edo-original"><span style="-webkit-tap-highlight-color: transparent;">    }</span></div><div id="edo-original"><span style="-webkit-tap-highlight-color: transparent;"><br></span></div><div id="edo-original"><span style="-webkit-tap-highlight-color: transparent;">And in my bootargs I have</span></div><div id="edo-original"><span style="-webkit-tap-highlight-color: transparent;"><br></span></div><div id="edo-original"><span style="-webkit-tap-highlight-color: transparent;">    uio_dmem_genirq.of_id="generic-uio"</span></div><div id="edo-original"><span style="-webkit-tap-highlight-color: transparent;"><br></span></div><div id="edo-original"><span style="-webkit-tap-highlight-color: transparent;">This works when using uio_pdrv_genirq but not when using uio_dmem_genirq. By "works" I mean that with uio_pdrv_genirq I see my device mapped under /sys/class/uio, but there is no such mapping with uio_dmem_genirq.</span></div><div id="edo-original"><span style="-webkit-tap-highlight-color: transparent;"><br></span></div><div id="edo-original"><span style="-webkit-tap-highlight-color: transparent;">Looking at the source for the drivers, I notice that the uio_pdrv_genirq driver has the following lines that are not included in uio_dmem_genirq:</span></div><div id="edo-original"><span style="-webkit-tap-highlight-color: transparent;"><br></span></div><div id="edo-original"><span style="-webkit-tap-highlight-color: transparent;">    module_param_string(of_id, uio_of_genirq_match[0].compatible, 128, 0);</span></div><div id="edo-original"><span style="-webkit-tap-highlight-color: transparent;">    MODULE_PARAM_DESC(of_id, "Openfirmware id of the device to be handled by uio");</span></div><div id="edo-original"><span style="-webkit-tap-highlight-color: transparent;"><br></span></div><div id="edo-original"><span style="-webkit-tap-highlight-color: transparent;">Do these lines need to be included for the uio_dmem_genirq driver to work?</span></div><div id="edo-original"><span style="-webkit-tap-highlight-color: transparent;"><br></span></div><div id="edo-original"><span style="-webkit-tap-highlight-color: transparent;">I have read through the Userspace IO HOWTO but that guide doesn't cover using the generic UIO drivers with the device tree (as far as I can tell, I am a kernel newbie after all).</span></div><div id="edo-original"><span style="-webkit-tap-highlight-color: transparent;"><br></span></div><div id="edo-original">Thank you for your help,</div><div id="edo-original"><span style="-webkit-tap-highlight-color: transparent;"><br></span></div><div id="edo-original"><span style="-webkit-tap-highlight-color: transparent;">Greg</span></div></body></html>