Re: [RFC PATCH 07/12] gpio: amd-fch: add oftree probing support

From: Andy Shevchenko
Date: Thu Mar 11 2021 - 05:43:45 EST


On Thu, Mar 11, 2021 at 12:20 PM Enrico Weigelt, metux IT consult
<info@xxxxxxxxx> wrote:
> On 01.03.21 15:51, Linus Walleij wrote:

> > I don't know what the idea is with this but register are not normally defined
> > in the DTS files. The registers are determined from the compatible value.
>
> The idea is basically replacing the pdata struct by oftree node.
> (subsequent patches in this queue use this by doing the board setup via
> compiled-in dtb, instead of the currently hardcoded tables).

You are a bit late. We have built-in device properties (and
corresponding API, which recently becomes swnode) which aims exactly
this.


--
With Best Regards,
Andy Shevchenko