All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] rockchip: support configuring pins as input
@ 2022-03-28  0:50 ` Caleb Connolly
  0 siblings, 0 replies; 24+ messages in thread
From: Caleb Connolly @ 2022-03-28  0:50 UTC (permalink / raw)
  To: Caleb Connolly, Rob Herring, Heiko Stuebner, Linus Walleij,
	Bartosz Golaszewski, devicetree, linux-arm-kernel,
	linux-rockchip, linux-kernel, linux-gpio
  Cc: ~postmarketos/upstreaming, martijn, Arnaud Ferraris

Add support for configuring pins as input to the rockchip pinctrl
driver. This is required for example for devices which use non-standard
configurations for gpio interrupts, specifically for the light/proximity
sensor on the RK3399 powered PinePhone Pro (which will be coming
upstream in a future patch series).

Due to the complicated layout of the RK pinctrl/gpio drivers, some extra
work is required to handle deferring the GPIO configuration. On RK3399
the pinctrl driver always probes before the GPIO controller driver, so
the PIN_CONFIG_OUTPUT and PIN_CONFIG_INPUT_ENABLE params both have to be
deferred, this series also reworks the deferred pin handling to be
generic and support any param rather than only the PIN_CONFIG_OUTPUT
param.

---
Caleb Connolly (4):
  pinctrl/rockchip: support deferring other gpio params
  pinctrl/rockchip: support setting input-enable param
  gpio/rockchip: handle deferring input-enable pinconfs
  arm64: dts: rockchip: rk3399: add an input enable pinconf

 arch/arm64/boot/dts/rockchip/rk3399.dtsi | 16 ++++++
 drivers/gpio/gpio-rockchip.c             | 29 ++++++++---
 drivers/pinctrl/pinctrl-rockchip.c       | 64 +++++++++++++++---------
 drivers/pinctrl/pinctrl-rockchip.h       |  7 ++-
 4 files changed, 81 insertions(+), 35 deletions(-)

-- 
2.35.1


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

end of thread, other threads:[~2022-04-30 14:07 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-28  0:50 [PATCH 0/4] rockchip: support configuring pins as input Caleb Connolly
2022-03-28  0:50 ` Caleb Connolly
2022-03-28  0:50 ` Caleb Connolly
2022-03-28  0:50 ` [PATCH 1/4] pinctrl/rockchip: support deferring other gpio params Caleb Connolly
2022-03-28  0:50   ` Caleb Connolly
2022-03-28  0:50   ` Caleb Connolly
2022-03-28  0:50 ` [PATCH 2/4] pinctrl/rockchip: support setting input-enable param Caleb Connolly
2022-03-28  0:50   ` Caleb Connolly
2022-03-28  0:50   ` Caleb Connolly
2022-03-28  0:50 ` [PATCH 3/4] gpio/rockchip: handle deferring input-enable pinconfs Caleb Connolly
2022-03-28  0:50   ` Caleb Connolly
2022-03-28  0:50   ` Caleb Connolly
2022-04-18 19:47   ` Bartosz Golaszewski
2022-04-18 19:47     ` Bartosz Golaszewski
2022-04-18 19:47     ` Bartosz Golaszewski
2022-03-28  0:50 ` [PATCH 4/4] arm64: dts: rockchip: rk3399: add an input enable pinconf Caleb Connolly
2022-03-28  0:50   ` Caleb Connolly
2022-03-28  0:50   ` Caleb Connolly
2022-04-19 22:37 ` [PATCH 0/4] rockchip: support configuring pins as input Linus Walleij
2022-04-19 22:37   ` Linus Walleij
2022-04-19 22:37   ` Linus Walleij
2022-04-30 14:05 ` (subset) " Heiko Stuebner
2022-04-30 14:05   ` Heiko Stuebner
2022-04-30 14:05   ` Heiko Stuebner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.