Interrupt in imx6ull

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Interrupt in imx6ull

2,291件の閲覧回数
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??

ラベル(1)
0 件の賞賛
返信
3 返答(返信)

1,947件の閲覧回数
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 件の賞賛
返信

1,947件の閲覧回数
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 件の賞賛
返信

1,947件の閲覧回数
igorpadykov
NXP Employee
NXP Employee
0 件の賞賛
返信