IMX8MM request_threaded_irq Call trace !! Please Help me

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

IMX8MM request_threaded_irq Call trace !! Please Help me

2,025 Views
tzeng015
Contributor II

Hi all 

I am porting MCP2518(Can Bus) via SPI interface to IMX8MM. I am in troubled now almost a month.

(1) This is my DTS arragne ( interrupt-parent = <&gpio4>; interrupts = <14 IRQ_TYPE_LEVEL_LOW>;  )

&ecspi1 {
#address-cells = <1>;
#size-cells = <0>;
fsl,spi-num-chipselects = <1>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ecspi1_gigabyte &pinctrl_ecspi1_cs_gigabyte>;
cs-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>;
status = "okay";
can1: can1@0 {
compatible = "microchip,mcp2518fd";
reg = <0>;
clocks = <&can0_osc>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_sai1_can1_int_3v3_soc_gigabyte>;
spi-max-frequency = <20000000>;
interrupt-parent = <&gpio4>;
interrupts = <14 IRQ_TYPE_LEVEL_LOW>;
//interrupts-extended = <&gpio4 14 IRQ_TYPE_LEVEL_LOW>;
//interrupts = <14 IRQ_TYPE_EDGE_FALLING>;
vdd-supply = <&reg_3v3>;
xceiver-supply = <&reg_5v0>;
status = "okay";
};

};

(2)  I sent this cmd  "ip link set up can0 type can bitrate 500000"

      It is call trace.

 

(3) Please see the attach file, I don't do any thing but the interrupt can't work.

 

0 Kudos
Reply
3 Replies

1,981 Views
tzeng015
Contributor II

Hi 

MX8MM_IOMUXC_SAI1_TXD2_GPIO4_IO14 

MX8MM_IOMUXC_SAI1_TXD3_GPIO4_IO15

These two pins seem can't use well as interrupt PINs. 

Do you have the same question ?

tzeng015

 

0 Kudos
Reply

2,011 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Try to disable SAI1 node and comment SAI1_TX_DATA2

Qmiller_0-1669268832388.png

Qmiller_2-1669269008967.png

And add irq pinctl refer pinctrl_i2c2_synaptics_dsx_io

Qmiller_0-1669269198728.png

 

pinctrl_i2c2_synaptics_dsx_io: synaptics_dsx_iogrp {
		fsl,pins = <
			MX8MM_IOMUXC_GPIO1_IO09_GPIO1_IO9               0x19    /* Touch int */
		>;
	};

 

0 Kudos
Reply

1,988 Views
tzeng015
Contributor II

hi 

I try it and it is called trace again. Please help me again. Thank you

P1: our dtsi aggange

tzeng015_0-1669714062120.png

P2:

tzeng015_1-1669714128111.png

 

 

 

P3 : disable SAI1 node

tzeng015_2-1669713199165.png

P4 : comment SAI1_TX_DATA2

tzeng015_3-1669713250165.png

P5 :  comment SAI1_TX_DATA2

 

tzeng015_4-1669713288318.png

P6: comment SAI1_TX_DATA2

tzeng015_5-1669713347684.png

 

P7:  comment SAI1_TX_DATA2

tzeng015_6-1669713371132.png

result : 

tzeng015_7-1669713559284.png

 

0 Kudos
Reply