Skip to content

gpiolib: Initializing GPIOs using DT property gpio-initval

Markus Pargmann linux-arm-kernel linux-devicetree linux-gpio 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 0 repliesNew
  2. v10 of 3 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Fixed Signed-off-by/author

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3gpio: Use __gpiod_request directlydrivers/gpio/gpiolib.c+6 -113 replies
1/3gpio: Use __gpiod_request directly+0 -00 replies
1/3gpio: Use __gpiod_request directly+0 -00 replies
2/3gpiolib: gpiod_hog remove separate name argumentdrivers/gpio/gpiolib-of.c drivers/gpio/gpiolib.c drivers/gpio/gpiolib.h+7 -71 reply
2/3gpiolib: gpiod_hog remove separate name argument+0 -01 reply
2/3gpiolib: gpiod_hog remove separate name argument+0 -00 replies
3/3gpiolib: Add GPIO initializationDocumentation/devicetree/bindings/gpio/gpio.txt drivers/gpio/gpiolib-of.c drivers/gpio/gpiolib.c +1 more+73 -2211 replies
3/3gpiolib: Add GPIO initialization+0 -00 replies
3/3gpiolib: Add GPIO initialization+0 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] gpiolib: Initializing GPIOs using DT property gpio-initval

Hi,

This is basically a resend with the devicetree mailinglist added to CC.

This series adds a gpio-initval property to the devicetree. It provides a way to initialize GPIOs to a defined value.

There are 3 patches. The first two simplify the function gpiod_hog. The third reuses the gpiod_hog()_code for a new gpiod_initialize() and adds the parsing of the DT.

This series is based on the series
"[PATCH v3 0/9] gpiolib: Add GPIO name support".

Best regards,

Markus

Changes in v2:
- Fixed Signed-off-by/author

Markus Pargmann (3):
gpio: Use __gpiod_request directly
gpiolib: gpiod_hog remove separate name argument
gpiolib: Add GPIO initialization

 Documentation/devicetree/bindings/gpio/gpio.txt | 29 ++++++----
 drivers/gpio/gpiolib-of.c                       | 11 +++-
 drivers/gpio/gpiolib.c                          | 74 +++++++++++++++++--------
 drivers/gpio/gpiolib.h                          |  6 +-
 4 files changed, 83 insertions(+), 37 deletions(-)
Signature · 1 line
2.5.0