On Mon, Jun 13, 2022 at 1:41 PM Yongqin Liu <yongqin.liu@xxxxxxxxxx> wrote: > > Hi, Lad > > Thanks a lot for the links and suggestions! > Finally I resolved the problem with the call of > platform_get_irq_byname and irq_get_trigger_type. > > Btw, I just have a question about the of_irq_to_resource function. > At the beginning I tried to use platform_get_irq and of_irq_to_resource > to get the irq name and flags information, but it seems of_irq_to_resource > does not work as expected, maybe I called incorrectly somewhere, > here I just want to ask, do you think that if of_irq_to_resource still > could be used to > get the resource with the irq returned from platform_get_irq? > > Yes of_irq_to_resource() can be used to get the irq number. Cheers, Prabhakar