On Wed, May 18, 2022 at 8:36 PM Lad, Prabhakar <prabhakar.csengg@xxxxxxxxx> wrote: > > As Geert says, I think you can just use .valid_mask for this, > > what do you say? > > > I don't think Geert is suggesting that. The .valid_mask option is one > time setting but what I need is something dynamic i.e. out of 392 GPIO > pins any 32 can be used as an interrupt pin. So why can't this just be determined from the compatible? This does not sound like a configuration option at all but something related to the IP block per se, and then you know that if it has a certain compatible then it has this property. Yours, Linus Walleij