[PATCH v3 1/5] pinctrl: samsung: Consolidate pin-bank macros under EXYNOS9_* and pass bank_type explicitly
Alim Akhtar
alim.akhtar at samsung.com
Tue Dec 16 20:28:08 PST 2025
Hello Youngmin,
> -----Original Message-----
> From: Youngmin Nam <youngmin.nam at samsung.com>
> Sent: Tuesday, December 2, 2025 3:06 PM
> To: krzk at kernel.org; s.nawrocki at samsung.com; alim.akhtar at samsung.com;
> linus.walleij at linaro.org; peter.griffin at linaro.org;
> semen.protsenko at linaro.org; ivo.ivanov.ivanov1 at gmail.com
> Cc: ryu.real at samsung.com; d7271.choe at samsung.com;
> shin.son at samsung.com; jaewon02.kim at samsung.com; linux-arm-
> kernel at lists.infradead.org; linux-samsung-soc at vger.kernel.org; linux-
> gpio at vger.kernel.org; linux-kernel at vger.kernel.org; Youngmin Nam
> <youngmin.nam at samsung.com>
> Subject: [PATCH v3 1/5] pinctrl: samsung: Consolidate pin-bank macros under
> EXYNOS9_* and pass bank_type explicitly
>
> Modern Exynos platforms have several near-duplicate pin-bank macro
> families (EXYNOS850_*, EXYNOS8895_*, EXYNOS7870_*), which makes
> tables verbose and harder to share across SoCs that differ only by
> bank_type (alive/off) layout.
>
> This patch unifies them into one EXYNOS9_* macro family and makes the
> bank_type an explicit argument. The common 850-era bank types are also
> renamed to 'exynos9_bank_type_{alive,off}' to reflect their reuse on
> later Exynos 9xxx-generation parts.
>
> Naming rationale:
> - Use of the EXYNOS9_* prefix indicates that these macros target
> current Exynos generations sharing the same register layout and
> EINT wiring model. Compared to SoC-specific prefixes
> (EXYNOS850_*, EXYNOS8895_*),
> EXYNOS9_* is clearer and more future-proof for modern parts.
>
> Key changes:
> - Introduce:
> - 'EXYNOS9_PIN_BANK_EINTN(bank_type, pins, reg, id)'
> - 'EXYNOS9_PIN_BANK_EINTG(bank_type, pins, reg, id, offs)'
> - 'EXYNOS9_PIN_BANK_EINTW(bank_type, pins, reg, id, offs)'
> - Rename:
> - 'exynos850_bank_type_alive'-> 'exynos9_bank_type_alive'
> - 'exynos850_bank_type_off' -> 'exynos9_bank_type_off'
> - Convert pin-bank tables for:
> - Exynos2200, 7870, 7885, 850, 990, 9810, 8890, 8895,
> AutoV9, AutoV920, FSD
> - Update GS101/EXYNOSV920 helpers to reference 'exynos9_bank_type_*'
> instead of the old exynos850 names.
> - Standardize on EXYNOS9_* macros while keeping SoC-specific
> '*_bank_type_*' when layouts differ (e.g., 7870/8895).
>
> No functional change intended.
>
> Signed-off-by: Youngmin Nam <youngmin.nam at samsung.com>
> Reviewed-by: Sam Protsenko <semen.protsenko at linaro.org>
> Tested-by: Sam Protsenko <semen.protsenko at linaro.org>
> ---
Thanks for consolidating this.
Feel free to add
Reviewed-by: Alim Akhtar <alim.akhtar at samsung.com>
Also tested on SADK based on Exynosautov920, GPIO EINT works fine.
Tested-by: Alim Akhtar <alim.akhtar at samsung.com>
More information about the linux-arm-kernel
mailing list