All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
Cc: Shyam-sundar.S-k@amd.com, linus.walleij@linaro.org,
	linux-gpio@vger.kernel.org, mika.westerberg@linux.intel.com
Subject: Re: [PATCH v3 3/6] pinctrl: amd: Use PINCTRL_GRP to manage pingroups
Date: Tue, 31 May 2022 13:22:13 +0300	[thread overview]
Message-ID: <YpXsVSBt89N5BwfB@smile.fi.intel.com> (raw)
In-Reply-To: <20220531084322.1310250-4-Basavaraj.Natikar@amd.com>

On Tue, May 31, 2022 at 02:13:19PM +0530, Basavaraj Natikar wrote:
> AMD pingroup can be extended to support multi-function pins.
> Hence use PINCTRL_GRP to manage and represent larger number
> of pingroups inline.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
(with comments addressed in patch 1 and this one changed accordingly)

> Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
> ---
>  drivers/pinctrl/pinctrl-amd.h | 36 ++++++-----------------------------
>  1 file changed, 6 insertions(+), 30 deletions(-)
> 
> diff --git a/drivers/pinctrl/pinctrl-amd.h b/drivers/pinctrl/pinctrl-amd.h
> index 551dfa664ed8..d47217e7b39f 100644
> --- a/drivers/pinctrl/pinctrl-amd.h
> +++ b/drivers/pinctrl/pinctrl-amd.h
> @@ -291,36 +291,12 @@ static const unsigned uart0_pins[] = {135, 136, 137, 138, 139};
>  static const unsigned uart1_pins[] = {140, 141, 142, 143, 144};
>  
>  static const struct pingroup kerncz_groups[] = {
> -	{
> -		.name = "i2c0",
> -		.pins = i2c0_pins,
> -		.npins = 2,
> -	},
> -	{
> -		.name = "i2c1",
> -		.pins = i2c1_pins,
> -		.npins = 2,
> -	},
> -	{
> -		.name = "i2c2",
> -		.pins = i2c2_pins,
> -		.npins = 2,
> -	},
> -	{
> -		.name = "i2c3",
> -		.pins = i2c3_pins,
> -		.npins = 2,
> -	},
> -	{
> -		.name = "uart0",
> -		.pins = uart0_pins,
> -		.npins = 5,
> -	},
> -	{
> -		.name = "uart1",
> -		.pins = uart1_pins,
> -		.npins = 5,
> -	},
> +	PINCTRL_GRP("i2c0", i2c0_pins, 2),
> +	PINCTRL_GRP("i2c1", i2c1_pins, 2),
> +	PINCTRL_GRP("i2c2", i2c2_pins, 2),
> +	PINCTRL_GRP("i2c3", i2c3_pins, 2),
> +	PINCTRL_GRP("uart0", uart0_pins, 5),
> +	PINCTRL_GRP("uart1", uart1_pins, 5),
>  };
>  
>  #endif
> -- 
> 2.25.1
> 

-- 
With Best Regards,
Andy Shevchenko



  reply	other threads:[~2022-05-31 10:22 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-31  8:43 [PATCH v3 0/6] Enhancements to AMD pinctrl and implementation of AMD pinmux Basavaraj Natikar
2022-05-31  8:43 ` [PATCH v3 1/6] pinctrl: Add pingroup and define PINCTRL_GRP Basavaraj Natikar
2022-05-31  9:19   ` Andy Shevchenko
2022-05-31 14:05     ` Basavaraj Natikar
2022-05-31 18:47       ` Andy Shevchenko
2022-05-31  8:43 ` [PATCH v3 2/6] pinctrl: amd: Remove amd_pingroup and use pingroup Basavaraj Natikar
2022-05-31 10:21   ` Andy Shevchenko
2022-05-31  8:43 ` [PATCH v3 3/6] pinctrl: amd: Use PINCTRL_GRP to manage pingroups Basavaraj Natikar
2022-05-31 10:22   ` Andy Shevchenko [this message]
2022-05-31  8:43 ` [PATCH v3 4/6] pinctrl: amd: Define and use AMD_PINS macro Basavaraj Natikar
2022-05-31 10:23   ` Andy Shevchenko
2022-05-31 13:58     ` Basavaraj Natikar
2022-05-31 15:47       ` Andy Shevchenko
2022-05-31  8:43 ` [PATCH v3 5/6] pinctrl: amd: Add amd_get_iomux_res function Basavaraj Natikar
2022-05-31 10:26   ` Andy Shevchenko
2022-05-31  8:43 ` [PATCH v3 6/6] pinctrl: amd: Implement pinmux functionality Basavaraj Natikar
2022-05-31 10:32   ` Andy Shevchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YpXsVSBt89N5BwfB@smile.fi.intel.com \
    --to=andriy.shevchenko@linux.intel.com \
    --cc=Basavaraj.Natikar@amd.com \
    --cc=Shyam-sundar.S-k@amd.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=mika.westerberg@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.