mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/7] pinctrl: rockchip: support &pcfg_input/output
@ 2024-07-01  7:32 Ahmad Fatoum
  2024-07-01  7:32 ` [PATCH 1/7] pinctrl: import <linux/pinctrl/pinconf-generic.h> header Ahmad Fatoum
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Ahmad Fatoum @ 2024-07-01  7:32 UTC (permalink / raw)
  To: barebox

The Rockchip pinctrl binding can not only mux pins as GPIOs and
configure the bias, but also configure the direction and whether it's
high/low for outputs and schmitt trigger for inputs.

This is used in some device trees to enable peripherals as a finer
grained gpio-hog.

This series adds that support into barebox. It expects deep probe to be
enabled for the board, otherwise a warning is printed when the GPIO
device wasn't available at pinctrl state selection time.

Ahmad Fatoum (7):
  pinctrl: import <linux/pinctrl/pinconf-generic.h> header
  pinctrl: rockchip: make use of pinconf-generic.h
  pinctrl: rockchip: use of_property_read_bool()
  pinctrl: rockchip: add support for configuring schmitt trigger
  pinctrl: rockchip: add support for bias-pull-pin-default
  gpiolib: implement of_gpio_get_chip_by_alias
  pinctrl: rockchip: add support for configuring GPIO direction

 drivers/gpio/gpiolib.c                  |  19 +++
 drivers/pinctrl/pinctrl-rockchip.c      | 140 +++++++++++++++----
 include/gpio.h                          |   6 +
 include/linux/pinctrl/pinconf-generic.h | 170 ++++++++++++++++++++++++
 4 files changed, 308 insertions(+), 27 deletions(-)
 create mode 100644 include/linux/pinctrl/pinconf-generic.h

-- 
2.39.2




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-07-01  9:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-01  7:32 [PATCH 0/7] pinctrl: rockchip: support &pcfg_input/output Ahmad Fatoum
2024-07-01  7:32 ` [PATCH 1/7] pinctrl: import <linux/pinctrl/pinconf-generic.h> header Ahmad Fatoum
2024-07-01  7:32 ` [PATCH 2/7] pinctrl: rockchip: make use of pinconf-generic.h Ahmad Fatoum
2024-07-01  7:32 ` [PATCH 3/7] pinctrl: rockchip: use of_property_read_bool() Ahmad Fatoum
2024-07-01  7:32 ` [PATCH 4/7] pinctrl: rockchip: add support for configuring schmitt trigger Ahmad Fatoum
2024-07-01  7:32 ` [PATCH 5/7] pinctrl: rockchip: add support for bias-pull-pin-default Ahmad Fatoum
2024-07-01  7:32 ` [PATCH 6/7] gpiolib: implement of_gpio_get_chip_by_alias Ahmad Fatoum
2024-07-01  7:32 ` [PATCH 7/7] pinctrl: rockchip: add support for configuring GPIO direction Ahmad Fatoum
2024-07-01  9:45 ` [PATCH 0/7] pinctrl: rockchip: support &pcfg_input/output Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox