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

Helpful resources for users & developers of Linux kernel for ARC
22 stars 13 forks source link

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

Open joshualin-petaio opened 11 months ago

joshualin-petaio commented 11 months ago

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

abrodkin commented 11 months ago

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.

joshualin-petaio commented 11 months ago

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

abrodkin commented 10 months ago

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