RE: [PATCH v3 1/5] pinctrl: samsung: Consolidate pin-bank macros under EXYNOS9_* and pass bank_type explicitly
From: Alim Akhtar
Date: Tue Dec 16 2025 - 23:28:25 EST
Hello Youngmin,
> -----Original Message-----
> From: Youngmin Nam <youngmin.nam@xxxxxxxxxxx>
> Sent: Tuesday, December 2, 2025 3:06 PM
> To: krzk@xxxxxxxxxx; s.nawrocki@xxxxxxxxxxx; alim.akhtar@xxxxxxxxxxx;
> linus.walleij@xxxxxxxxxx; peter.griffin@xxxxxxxxxx;
> semen.protsenko@xxxxxxxxxx; ivo.ivanov.ivanov1@xxxxxxxxx
> Cc: ryu.real@xxxxxxxxxxx; d7271.choe@xxxxxxxxxxx;
> shin.son@xxxxxxxxxxx; jaewon02.kim@xxxxxxxxxxx; linux-arm-
> kernel@xxxxxxxxxxxxxxxxxxx; linux-samsung-soc@xxxxxxxxxxxxxxx; linux-
> gpio@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx; Youngmin Nam
> <youngmin.nam@xxxxxxxxxxx>
> 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@xxxxxxxxxxx>
> Reviewed-by: Sam Protsenko <semen.protsenko@xxxxxxxxxx>
> Tested-by: Sam Protsenko <semen.protsenko@xxxxxxxxxx>
> ---
Thanks for consolidating this.
Feel free to add
Reviewed-by: Alim Akhtar <alim.akhtar@xxxxxxxxxxx>
Also tested on SADK based on Exynosautov920, GPIO EINT works fine.
Tested-by: Alim Akhtar <alim.akhtar@xxxxxxxxxxx>