AnsweredAssumed Answered

Interrupt in imx6ull

Question asked by mathew_k_t on Feb 12, 2018
Latest reply on Feb 13, 2018 by igorpadykov

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??

Outcomes