Skip to content

pinctrl:at91-pio4:add support for pullup/down

[email protected] linux-arm-kernel linux-gpio lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2pinctrl: at91-pio4: Add configuration to userspacedrivers/pinctrl/pinctrl-at91-pio4.c+22 -01 reply
2/2pinctrl: at91-pio4: Add persist state case in configdrivers/pinctrl/pinctrl-at91-pio4.c+4 -01 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchNicolas Ferre
SeriesT-b
1/2T-b A-b
2/2A-b

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] pinctrl:at91-pio4:add support for pullup/down

From: Ryan Wanner <[email protected]>

This patch set adds support for pull up/down pinctl configuration. The implementation is based off of other pinctl drivers that have implemented line bias configurations.

The second patch addes a case for PIN_CONFIG_PERSIST_STATE this shows up becuse the gpiod api passes this into the new config_set function that was just implemented. Looking at other drivers like TI driver, added the ENOTSUPP to the switch case for that state flag.

How this was tested was by using a gpio program that I created to test configuration from userspace. This program was run in the background using & then using gpioinfo function checked if the change has been detected by the gpiod api. Then using devmem reading the regester making sure that the correct bit was set. The registers where checked before and during the program is being run, making sure the change happens.

In the program Pin 127 would be passed into the test program. Before the program was ran devmem for pin 127 config register. After the progam is running in the background devmem for the same status register is called, the result is showing the change in pinconfig. The device used to test was the SAMA5D27_som1_ek.

Ryan Wanner (2):
pinctrl: at91-pio4: Add configuration to userspace
pinctrl: at91-pio4: Add persist state case in config

 drivers/pinctrl/pinctrl-at91-pio4.c | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
Signature · 1 line
2.34.1