mbox series

[0/3] samsung: pinctrl: Add support for eint_fltcon_offset and filter selection on gs101

Message ID 20250120-pinctrl-fltcon-suspend-v1-0-e77900b2a854@linaro.org (mailing list archive)
Headers show
Series samsung: pinctrl: Add support for eint_fltcon_offset and filter selection on gs101 | expand

Message

Peter Griffin Jan. 20, 2025, 10:34 p.m. UTC
Hi folks,

This series fixes support for correctly saving and restoring fltcon0
and fltcon1 registers on gs101 for non-alive banks where the fltcon
register offset is not at a fixed offset (unlike previous SoCs).
This is done by adding a eint_fltcon_offset and providing GS101
specific pin macros that take an additional parameter (similar to
how exynosautov920 handles it's eint_con_offset).

Additionally the SoC specific suspend and resume callbacks are
re-factored so that each SoC variant has it's own callback containing
the peculiarities for that SoC.

Finally support for filter selection on alive banks is added, this is
currently only enabled for gs101. The code path can be excercised using
`echo mem > /sys/power/state`

regards,

Peter

To: Krzysztof Kozlowski <krzk@kernel.org>
To: Sylwester Nawrocki <s.nawrocki@samsung.com>
To: Alim Akhtar <alim.akhtar@samsung.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-samsung-soc@vger.kernel.org
Cc: linux-gpio@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: andre.draszik@linaro.org
Cc: tudor.ambarus@linaro.org
Cc: willmcvicker@google.com
Cc: semen.protsenko@linaro.org
Cc: kernel-team@android.com
Cc: jaewon02.kim@samsung.com

Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
---
Peter Griffin (3):
      pinctrl: samsung: add support for eint_fltcon_offset
      pinctrl: samsung: add dedicated SoC eint suspend/resume callbacks
      pinctrl: samsung: Add filter selection support for alive bank on gs101

 drivers/pinctrl/samsung/pinctrl-exynos-arm64.c | 150 ++++++------
 drivers/pinctrl/samsung/pinctrl-exynos.c       | 318 ++++++++++++++++---------
 drivers/pinctrl/samsung/pinctrl-exynos.h       |  39 ++-
 drivers/pinctrl/samsung/pinctrl-samsung.c      |  13 +-
 drivers/pinctrl/samsung/pinctrl-samsung.h      |  16 +-
 5 files changed, 338 insertions(+), 198 deletions(-)
---
base-commit: b3f72f6c7d65a8953fd80ce0b376b47fa263e34b
change-id: 20250120-pinctrl-fltcon-suspend-2333a137c4d4

Best regards,