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??
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!
-----------------------------------------------------------------------------------------------------------------------
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
please look on
How to enable GPIO1 on X27 to act as an interrupt handler for max14830? - Toradex Community
Best regards
igor