Dear Colleagues,

Playing with Cubieabord2 we are trying to assign userspace IO handling A20 
external interrupts with no success. We just updated our system to Linux 
4.1-rc3 to be up to date. We have been having the same issue on 3.19.4 in the 
past.

Our main references 

http://linux-sunxi.org/External_interrupts
http://yurovsky.github.io/2014/10/10/linux-uio-gpio-interrupt/

for the following set up

1) config
CONFIG_UIO=y
CONFIG_UIO_PDRV_GENIRQ=y

2) Added PH7 definition as an IRQ pin in the sun7i-a20-cubieboard2.dts

                                        pinctrl@01c20800 {
                                                            ...

                                                            
init_pins_cubieboard2: init_pins@0 {
                                                                                
allwinner,pins = "PH7";
                                                                                
allwinner,function = "irq";
                                                                                
allwinner,drive = <0>;
                                                                                
allwinner,pull = <1>;
                                                            };
                                        };


3)  The following node was defined as a separate section in the 
sun7i-a20-cubieboard2.dts

                    custom-irq {
                                        compatible = "generic-uio,ui_pdrv";
                                        pinctrl-names = "default";
                                        pinctrl-0 = <&init_pins_cubieboard2>;
                                        status = "okay";
                                        interrupts-extended = <&pio 7 0>;
                                        interrupt-names = "custom-request";
               };


Unfortunately, with 1)-3) we do not see device /dev/uio0 created.

Any help or ideas would be appreciated.

Thank you,

Best regards,
Ivan

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to