mbox series

[0/7] pinctrl: exynos: Prepare for other SoCs support

Message ID 20231130201352.6379-1-semen.protsenko@linaro.org
Headers show
Series pinctrl: exynos: Prepare for other SoCs support | expand

Message

Sam Protsenko Nov. 30, 2023, 8:13 p.m. UTC
Some Exynos SoCs (not supported by pinctrl-exynos driver yet) have
different offsets and widths of pin bank registers (i.e. PIN_CON,
PIN_PUD and PIN_DRV registers). Rework pinctrl-exynos driver so it
allows for different offsets and widths of those registers by adding
the corresponding API. That makes it possible to add the support for
new Exynos SoCs in pinctrl-exynos driver.

The main patch in this series is:

  pinctrl: exynos: Support different register types in pin banks

Other patches are just related cleanups and refactoring commits,
required for the clean implementation of the main patch.

Sam Protsenko (7):
  pinctrl: exynos: Improve coding style
  pinctrl: exynos: Extract pin parsing code into a separate function
  pinctrl: exynos: Rework pin_to_bank_base() to obtain data by name
  pinctrl: exynos: Support different register types in pin banks
  pinctrl: exynos: Refactor handling the pin related dt properties
  pinctrl: exynos: Reduce variables scope
  pinctrl: exynos: Convert to use livetree API for fdt access

 drivers/pinctrl/exynos/pinctrl-exynos.c     | 125 ++++++++++++--------
 drivers/pinctrl/exynos/pinctrl-exynos.h     |  36 +++++-
 drivers/pinctrl/exynos/pinctrl-exynos7420.c |   2 +
 3 files changed, 108 insertions(+), 55 deletions(-)

Comments

Sam Protsenko Dec. 12, 2023, 1:17 p.m. UTC | #1
On Thu, Nov 30, 2023 at 2:13 PM Sam Protsenko
<semen.protsenko@linaro.org> wrote:
>
> Some Exynos SoCs (not supported by pinctrl-exynos driver yet) have
> different offsets and widths of pin bank registers (i.e. PIN_CON,
> PIN_PUD and PIN_DRV registers). Rework pinctrl-exynos driver so it
> allows for different offsets and widths of those registers by adding
> the corresponding API. That makes it possible to add the support for
> new Exynos SoCs in pinctrl-exynos driver.
>
> The main patch in this series is:
>
>   pinctrl: exynos: Support different register types in pin banks
>
> Other patches are just related cleanups and refactoring commits,
> required for the clean implementation of the main patch.
>
> Sam Protsenko (7):
>   pinctrl: exynos: Improve coding style
>   pinctrl: exynos: Extract pin parsing code into a separate function
>   pinctrl: exynos: Rework pin_to_bank_base() to obtain data by name
>   pinctrl: exynos: Support different register types in pin banks
>   pinctrl: exynos: Refactor handling the pin related dt properties
>   pinctrl: exynos: Reduce variables scope
>   pinctrl: exynos: Convert to use livetree API for fdt access
>
>  drivers/pinctrl/exynos/pinctrl-exynos.c     | 125 ++++++++++++--------
>  drivers/pinctrl/exynos/pinctrl-exynos.h     |  36 +++++-
>  drivers/pinctrl/exynos/pinctrl-exynos7420.c |   2 +
>  3 files changed, 108 insertions(+), 55 deletions(-)
>
> --

Hi Minkyu,

If there are no objections to this series, can you please apply it?

Thanks!

> 2.39.2
>
Minkyu Kang Dec. 13, 2023, 8:28 a.m. UTC | #2
Hi,

2023년 12월 1일 (금) 05:13, Sam Protsenko <semen.protsenko@linaro.org>님이 작성:

> Some Exynos SoCs (not supported by pinctrl-exynos driver yet) have
> different offsets and widths of pin bank registers (i.e. PIN_CON,
> PIN_PUD and PIN_DRV registers). Rework pinctrl-exynos driver so it
> allows for different offsets and widths of those registers by adding
> the corresponding API. That makes it possible to add the support for
> new Exynos SoCs in pinctrl-exynos driver.
>
> The main patch in this series is:
>
>   pinctrl: exynos: Support different register types in pin banks
>
> Other patches are just related cleanups and refactoring commits,
> required for the clean implementation of the main patch.
>
> Sam Protsenko (7):
>   pinctrl: exynos: Improve coding style
>   pinctrl: exynos: Extract pin parsing code into a separate function
>   pinctrl: exynos: Rework pin_to_bank_base() to obtain data by name
>   pinctrl: exynos: Support different register types in pin banks
>   pinctrl: exynos: Refactor handling the pin related dt properties
>   pinctrl: exynos: Reduce variables scope
>   pinctrl: exynos: Convert to use livetree API for fdt access
>
>  drivers/pinctrl/exynos/pinctrl-exynos.c     | 125 ++++++++++++--------
>  drivers/pinctrl/exynos/pinctrl-exynos.h     |  36 +++++-
>  drivers/pinctrl/exynos/pinctrl-exynos7420.c |   2 +
>  3 files changed, 108 insertions(+), 55 deletions(-)
>
> --
> 2.39.2
>

applied to u-boot-samsung.

Thanks,
Minkyu Kang.