AnsweredAssumed Answered

IMX6 interrupt uart custom

Question asked by Antonio Belussi on Jul 25, 2018

Good Morning

 

I have five serial port instantiated into my FPGA, connected to the microprocessor iMX6D by EIM bus.

I try to set the IRQ=107 in sharing mode for all UART on the pin N1

 

         MX6QDL_PAD_CSI0_DAT4__IPU1_CSI0_DATA04   0x1b0b0

 

The setting in my device driver are:

 

fpgaUart0@08000000 {
compatible = "ns8250";
reg = <0x08000000 0x20>;
clock-frequency = <80000000>;
interrupts = <107>;
reg-shift = <2>;
status = "okay";
};

................................

................................

fpgaUart4@08000080 {
compatible = "ns8250";
reg = <0x08000080 0x20>;
clock-frequency = <80000000>;
interrupts = <107>;
reg-shift = <2>;
status = "okay";
};

 

and in the defconfig file:

 

#  Serial drivers #
CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_DEPRECATED_OPTIONS=y
# CONFIG_SERIAL_8250_CONSOLE is not set
# CONFIG_SERIAL_8250_DMA is not set
# CONFIG_SERIAL_8250_PCI is not set
CONFIG_SERIAL_8250_NR_UARTS=5
CONFIG_SERIAL_8250_RUNTIME_UARTS=5
CONFIG_SERIAL_8250_EXTENDED=y
CONFIG_SERIAL_8250_MANY_PORTS=y
CONFIG_SERIAL_8250_SHARE_IRQ=y
#CONFIG_SERIAL_8250_DETECT_IRQ is not set
CONFIG_SERIAL_8250_RSA=y
# CONFIG_SERIAL_8250_DW is not set
# CONFIG_SERIAL_8250_EM is not set

 

I try also with the command  setserial  /dev/ttyS0 irq 107 ,  but the result is always 

 

0: uart:8250 mmio:0x08000000 irq:0 tx:0 rx:0 CTS|DSR|CD|RI
1: uart:8250 mmio:0x08000020 irq:0 tx:0 rx:0 CTS|DSR|CD|RI
2: uart:8250 mmio:0x08000040 irq:0 tx:0 rx:0 CTS|DSR|CD|RI
3: uart:8250 mmio:0x08000060 irq:0 tx:0 rx:0 CTS|DSR|CD|RI
4: uart:8250 mmio:0x08000080 irq:0 tx:0 rx:0 CTS|DSR|CD|RI

 

Someone has some suggestions ....

Thanks in advance

Outcomes