[Ksummit-discuss] [TECH TOPIC] Driver model/resources, ACPI, DT, etc (sigh)

Linus Walleij linus.walleij at linaro.org
Sun May 18 16:31:00 UTC 2014


On Tue, May 13, 2014 at 11:14 PM, Olof Johansson <olof at lixom.net> wrote:

> For the truly trivial stuff, there are some quite simple ways to handle this:
>
> 1. Make sure that anything that can be a named IORESOURCE_* is so. Which could
>    mean moving over GPIO and possibly clocks to that, and use those for lookup.

GPIO consumers shall use devm_gpiod_get() or devm_gpiod_get_index()
to get an abstract GPIO descriptor. This already works with DT and ACPI
alike, driver authors just haven't caught up. Yes we have to patch ourselves
through this entire GPIO number exodus ...
Documentation/gpio/consumer.txt

GPIOs, clocks, regulators and pins are already on abstract handles
tied into the device model, so what am I missing?

Yours,
Linus Walleij


More information about the Ksummit-discuss mailing list