Userspace driver and clocks

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Userspace driver and clocks

1,219 Views
mod42
Contributor III

Hi

We have a special requirement regarding image processing which could be solved using the PXP. I wanted to write a user space IO driver to do this. My current problem is that the clock to the PXP is not enabled. I tried to use the uio_pdrv_genirq for the first tests and added the following device tree entry:

    pxp@02218000 {

        compatible = "gs-pxp";

        reg = <0x02218000 0x4000>;

        reg-names = "pxp"; /* Names of the zones */

        interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;

        clocks = <&clks IMX6SX_CLK_PXP_AXI>,

            <&clks IMX6SX_CLK_DISPLAY_AXI>;

        clock-names = "pxp-axi", "disp-axi";

        status = "okay";

    };

The uio device is created correctly but when I open the device the clock in the CCM is not ungated. Do I have to do write my own uio kernel driver when clocks have to be enabled? Or is it possible to enable clocks from user space?

Labels (2)
0 Kudos
Reply
1 Reply

1,049 Views
igorpadykov
NXP Employee
NXP Employee

Hi Matthias

pxp is supported only on sabresd board and for its usage one

can look at tests in  imx-test-3.10.53-1.1.0  L3.10.53_1.1.0_iMX6SX_Bundle :

i.MX 6 SoloX Linux

Best regards

igor

0 Kudos
Reply