Skip to content

RFC gpiolib: add bias support

Andrew Lunn linux-arm-kernel linux-gpio 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest0 of 7 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 7 patches the cover letter announces are in this archive.

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 0/7] gpiolib: add bias support
Quoted 3 lines

I have not introduced a gpiod_set_bias() because I think the only place to setup this is in the device tree. It's useless to setup a bias pull up if there is an external pull up on the board.

Hi Ludovic

I have a use case where having gpiod_set_bias() would be good. The DLN2 is a USB device, which offers GPIO, I2C, and SPI services on its pins. It is a hot pluggable device, and i'm using it on Intel machines, making it double hard to use with Device Tree.

It would be good to be able to set the pull up/down on the GPIO pins, probably from a small kernel module which calls gpiod_set_bias(), or via /sysfs.

Andrew