foss-for-synopsys-dwc-arc-processors/linux

[linux kernel 5.16, HS38x2] How to change ARConnect IDU mode, like level trigger to edge trigger ?

joshualin-petaio opened this issue · 3 comments

Hi expert,

I want to change the ARConnect IDU mode, like level trigger to edge trigger. Can I setup the IRQ cell in device tree or which API I can use?

Thanks, Joshua

Hi @joshualin-petaio! Indeed, you may specify the second cell for IDU requesting edge-triggered interrupts.
See https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/interrupt-controller/snps,archs-idu-intc.txt.

Don't forget to set #interrupt-cells = <2>; in the IDU node!

Let me know if that reference helps or you need more support with this one.

Hi Alexey,

Thanks for your reply. It helpful for me and it seems works fine now. I'll do more test for this modify. Thank you so much.

Thanks, Joshua

@joshualin-petaio if all works for you now, do you mind closing this issue?