]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pinctrl: samsung: Add filter selection support for alive bank on gs101
authorPeter Griffin <peter.griffin@linaro.org>
Wed, 2 Apr 2025 15:17:33 +0000 (16:17 +0100)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tue, 8 Apr 2025 18:57:51 +0000 (20:57 +0200)
commita30692b4f81ba864cf880d57e9cc6cf6278a2943
treef4716e1ea7a461a6e347f9d4b9b978f56ca14ae3
parentbdbe0a0f71003b997d6a2dbe4bc7b5b0438207c7
pinctrl: samsung: Add filter selection support for alive bank on gs101

Newer Exynos based SoCs have a filter selection bitfield in the filter
configuration registers on alive bank pins. This allows the selection of
a digital or analog delay filter for each pin. Add support for selecting
and enabling the filter.

On suspend we set the analog filter to all pins in the bank (as the
digital filter relies on a clock). On resume the digital filter is
reapplied to all pins in the bank. The digital filter is working via
a clock and has an adjustable filter delay flt_width bitfield, whereas
the analog filter uses a fixed delay.

The filter determines to what extent signal fluctuations received through
the pad are considered glitches.

The code path can be exercised using
echo mem > /sys/power/state
And then wake the device using a eint gpio

Reviewed-by: André Draszik <andre.draszik@linaro.org>
Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Link: https://lore.kernel.org/r/20250402-pinctrl-fltcon-suspend-v6-4-78ce0d4eb30c@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
drivers/pinctrl/samsung/pinctrl-exynos.c
drivers/pinctrl/samsung/pinctrl-exynos.h