Skip to content

Make gpiolib work with static device properties

Dmitry Torokhov linux-gpio linux-input lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drivers: base: swnode: link devices to software nodesdrivers/base/property.c drivers/base/swnode.c include/linux/property.h+40 -17 replies
2/2gpiolib: add support for fetching descriptors from static propertiesdrivers/gpio/gpiolib.c+79 -292 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchLinus WalleijRafael J. Wysocki
1/2R-b A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] Make gpiolib work with static device properties

Hi,

These 2 patches implement GPIOs lookup for boards still using static properties (instead of OF or ACPI), which will allow drivers to abandon the custom platform data structures and switch to using generic bindings with gpiod_get_*() API working transparently.

The 2nd patch was posted in September of 2018, before Heikki did the switch from psets to software_nodes; I finally rebased it.

Enrico, it looks like you are working with a board that uses gpio_keys that still uses platform data, it would be great if you could try this out as I have not.

Thanks!

Dmitry Torokhov (2):
drivers: base: swnode: link devices to software nodes
gpiolib: add support for fetching descriptors from static properties

 drivers/base/property.c  |   1 +
 drivers/base/swnode.c    |  35 ++++++++++++-
 drivers/gpio/gpiolib.c   | 108 ++++++++++++++++++++++++++++-----------
 include/linux/property.h |   5 ++
 4 files changed, 119 insertions(+), 30 deletions(-)
Signature · 1 line
2.22.0.510.g264f2c817a-goog