The usage of external IRQ is same as other IP's irq, normally you need:
1) enable IRQ pin function in RCW, bit 373-381
I checked the default rcw, IRQ already supported by default.
2) Add interrupt related description in dts node
interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>;
Please be aware that the irq in dts is calculated as : irq = hwirq - 32.
According to chapter <interrupt assignment > of LS1046A, the hwirq num of IRQ6 is 177, so in dts file it should be 177 - 32 = 145.
There is no device connected with IRQ6, The following steps.
3) map hwirq to Linux irq
4) request irq in device driver.