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 = <®_3v3>;
xceiver-supply = <®_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.
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
Try to disable SAI1 node and comment SAI1_TX_DATA2
And add irq pinctl refer pinctrl_i2c2_synaptics_dsx_io
pinctrl_i2c2_synaptics_dsx_io: synaptics_dsx_iogrp { fsl,pins = < MX8MM_IOMUXC_GPIO1_IO09_GPIO1_IO9 0x19 /* Touch int */ >; };
hi
I try it and it is called trace again. Please help me again. Thank you
P1: our dtsi aggange
P2:
P3 : disable SAI1 node
P4 : comment SAI1_TX_DATA2
P5 : comment SAI1_TX_DATA2
P6: comment SAI1_TX_DATA2
P7: comment SAI1_TX_DATA2
result :