Re: [PATCH] gpio: of: make it possible to reference gpios probed in acpi in device tree
From: Bartosz Golaszewski
Date: Fri Oct 03 2025 - 04:03:40 EST
On Thu, Oct 2, 2025 at 11:58 PM Markus Probst <markus.probst@xxxxxxxxx> wrote:
>
> sometimes it is necessary to use both acpi and device tree to declare
This is a rather controversial change so "sometimes" is not convincing
me. I would like to see a user of this added in upstream to consider
it.
> devices. Not every gpio device driver which has an acpi_match_table has
> an of_match table (e.g. amd-pinctrl). Furthermore gpio is an device which
What is the use-case here because I'm unable to wrap my head around
it? Referencing devices described in ACPI from DT? How would the
associated DT source look like?
Bart
> can't be easily disabled in acpi and then redeclared in device tree, as
> it often gets used by other devices declared in acpi (e.g. via GpioInt or
> GpioIo). Thus a disable of acpi and migration to device tree is not always
> possible or very time consuming, while acpi by itself is very limited and
> not always sufficient. This won't affect most configurations, as most of
> the time either CONFIG_ACPI or CONFIG_OF gets enabled, not both.
>
> Signed-off-by: Markus Probst <markus.probst@xxxxxxxxx>
> ---