Interrupt in imx6ull

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

Interrupt in imx6ull

1,159 Views
mathew_k_t
Contributor II

Hi,

I would like to implement a button interrupt to ecspi. I have added following changes in dts

&ecspi4 {
    clock-frequency = <1000000>;
    fsl,spi-num-chipselects = <0>;
    cs-gpios = <0>;
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_ecspi4>;
    status = "okay";    

    spidev@0 {
          compatible = "fsl,spidev";

         interrupt-parent = <&gpio4>;
         interrupts = <27>;
         #interrupt-cells = <2>;
        spi-max-frequency = <52000000>;
        reg = <0>;
    };
};

configured GPIO4_IO27 as GPIO(for button)

MX6UL_PAD_CSI_DATA06__GPIO4_IO27          0x400010B0

I hope above configurations are correct. I believe, i have to make changes in spidev also. what are the changes to be made in spidv to enable this interrupt??

Labels (1)
0 Kudos
3 Replies

815 Views
igorpadykov
NXP Employee
NXP Employee

Hi mathew_k_t 

for available spi interrupt options one can look at documentation

linux/Documentation/devicetree/bindings/spi/fsl-spi.txt
linux-imx.git - i.MX Linux Kernel 
and spi driver sources : in linux/drivers/spi/spi-imx.c
linux-imx.git - i.MX Linux Kernel 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

815 Views
mathew_k_t
Contributor II

Hi,

Simply, if I'm using GPIO1_IO31 as an interrupt source not for spi (general case), What will be the dts configurations for that?

Regards

Mathew

0 Kudos

815 Views
igorpadykov
NXP Employee
NXP Employee
0 Kudos