U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Peng Fan <peng.fan@oss.nxp.com>
To: Marek Vasut <marex@denx.de>
Cc: "Alice Guo (OSS)" <alice.guo@oss.nxp.com>,
	Tom Rini <trini@konsulko.com>, Stefano Babic <sbabic@denx.de>,
	Fabio Estevam <festevam@gmail.com>,
	dl-uboot-imx <uboot-imx@nxp.com>, Lukasz Majewski <lukma@denx.de>,
	Sean Anderson <seanga2@gmail.com>, Simon Glass <sjg@chromium.org>,
	Alper Nebi Yasak <alpernebiyasak@gmail.com>,
	"u-boot@lists.denx.de" <u-boot@lists.denx.de>,
	"tharvey@gateworks.com" <tharvey@gateworks.com>,
	Alice Guo <alice.guo@nxp.com>
Subject: Re: 回复: 回复: [PATCH v4 04/20] firmware: scmi: add pin control protocol support to SCMI agent
Date: Mon, 24 Feb 2025 10:45:56 +0800	[thread overview]
Message-ID: <20250224022831.GA9876@nxa18884-linux> (raw)
In-Reply-To: <5bb207d9-0ad0-4409-9c3d-bdf676cc7698@denx.de>

On Fri, Feb 21, 2025 at 06:55:41PM +0100, Marek Vasut wrote:
>On 2/21/25 2:47 AM, Alice Guo (OSS) wrote:
>> > -----邮件原件-----
>> > 发件人: Marek Vasut <marex@denx.de>
>> > 发送时间: 2025年2月21日 6:35
>> > 收件人: Alice Guo (OSS) <alice.guo@oss.nxp.com>; Tom Rini
>> > <trini@konsulko.com>; Stefano Babic <sbabic@denx.de>; Fabio Estevam
>> > <festevam@gmail.com>; dl-uboot-imx <uboot-imx@nxp.com>; Lukasz
>> > Majewski <lukma@denx.de>; Sean Anderson <seanga2@gmail.com>; Simon
>> > Glass <sjg@chromium.org>; Alper Nebi Yasak <alpernebiyasak@gmail.com>
>> > 抄送: u-boot@lists.denx.de; tharvey@gateworks.com; Alice Guo
>> > <alice.guo@nxp.com>
>> > 主题: Re: 回复: [PATCH v4 04/20] firmware: scmi: add pin control protocol
>> > support to SCMI agent
>> > 
>> > On 2/18/25 12:53 PM, Alice Guo (OSS) wrote:
>> > 
>> > [...]
>> > 
>> > > > > @@ -436,6 +442,11 @@ static int scmi_bind_protocols(struct udevice
>> > *dev)
>> > > > >     				drv = DM_DRIVER_GET(scmi_voltage_domain);
>> > > > >     			}
>> > > > >     			break;
>> > > > > +		case SCMI_PROTOCOL_ID_PINCTRL:
>> > > > > +			if (IS_ENABLED(CONFIG_PINCTRL_IMX_SCMI) &&
>> > > > 
>> > > > Is this pinctrl protocol really imx specific ?
>> > > > 
>> > > > If not, this needs to use some other config option to gate access to it.
>> > > 
>> > > Currently, it is used for some product families of the i.MX9 series products.
>> > Is the protocol iMX specific or is it generic protocol ?
>> 
>> SCMI_PROTOCOL_ID_PINCTRL is not unique to iMX, but drivers/pinctrl/nxp/pinctrl-scmi.c (drv = DM_DRIVER_GET(scmi_pinctrl_imx)) is only for iMX.
>This patch is changing common code, it shouldn't be littered with
>vendor-specific ifdeffery or if(IS_ENABLED(...))ery . Can this be made fully
>generic, similar to e.g. regulator protocol ?

In Linux Kernel, there are two drivers, pinctrl-scmi.c and pinctrl-imx-scmi.c.
Both follows ARM SCMI 3.2, but pinctrl-imx-scmi has some special settings
to align with i.mx iomuxc array based settings, mux,input,pad and etc.

In gerneral, imx part could be merged with pinctrl-scmi.c but that will
make code not clean.

Regards,
Peng


  reply	other threads:[~2025-02-24  1:39 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-15 13:28 [PATCH v4 00/20] imx: add i.MX95 support Alice Guo
2025-01-15 13:28 ` [PATCH v4 01/20] mailbox: add i.MX95 Messaging Unit (MU) driver Alice Guo
2025-01-24 10:58   ` Marek Vasut
2025-01-15 13:28 ` [PATCH v4 02/20] firmware: scmi: smt: Interrupt communication enable Alice Guo
2025-01-24 11:06   ` Marek Vasut
2025-01-15 13:28 ` [PATCH v4 03/20] pinctrl: nxp: add a pin controller driver based on SCMI pin control protocol Alice Guo
2025-01-24 14:58   ` Marek Vasut
2025-01-15 13:28 ` [PATCH v4 04/20] firmware: scmi: add pin control protocol support to SCMI agent Alice Guo
2025-01-24 13:55   ` Marek Vasut
2025-02-18 11:53     ` 回复: " Alice Guo (OSS)
2025-02-20 22:34       ` Marek Vasut
2025-02-21  1:47         ` 回复: " Alice Guo (OSS)
2025-02-21 17:55           ` Marek Vasut
2025-02-24  2:45             ` Peng Fan [this message]
2025-02-28 18:58               ` Marek Vasut
2025-03-03  8:04                 ` 回复: " Alice Guo (OSS)
2025-03-03 20:52                   ` Marek Vasut
2025-03-05 13:36                     ` 回复: " Alice Guo (OSS)
2025-03-10  0:09                       ` Marek Vasut
2025-03-20  2:28                         ` 回复: " Alice Guo (OSS)
2025-03-20  4:03                           ` Marek Vasut
2025-03-21  7:29                             ` 回复: " Alice Guo (OSS)
2025-01-15 13:28 ` [PATCH v4 05/20] scmi_protocols: add SCMI misc protocol protocol_id and message_id for getting the ROM passover data Alice Guo
2025-01-24 13:57   ` Marek Vasut
2025-02-21  9:39     ` 回复: [EXT] " Alice Guo (OSS)
2025-02-21 17:53       ` Marek Vasut
2025-01-15 13:28 ` [PATCH v4 06/20] scmi_protocols: add SCMI Performance domain management protocol message IDs Alice Guo
2025-01-15 13:28 ` [PATCH v4 07/20] clk: scmi: add the command CLOCK_PARENT_SET Alice Guo
2025-01-15 13:28 ` [PATCH v4 08/20] clk: scmi: check the clock state/parent/rate control permissions Alice Guo
2025-01-24 14:14   ` Marek Vasut
2025-01-15 13:28 ` [PATCH v4 09/20] sandbox: add SCMI clock control permissions to sandbox Alice Guo
2025-01-15 13:28 ` [PATCH v4 10/20] scmi_protocols: update struct scmi_base_discover_list_protocols_out Alice Guo
2025-01-24 14:38   ` Marek Vasut
2025-03-03 10:37     ` 回复: [EXT] " Alice Guo (OSS)
2025-03-03 20:18       ` Marek Vasut
2025-03-04  9:04         ` 回复: " Alice Guo (OSS)
2025-03-10  0:08           ` Marek Vasut
2025-01-15 13:28 ` [PATCH v4 11/20] scmi: add the macro SCMI_MSG Alice Guo
2025-01-24 14:40   ` Marek Vasut
2025-01-15 13:28 ` [PATCH v4 12/20] imx9: scmi: add i.MX95 SoC and clock related code Alice Guo
2025-01-24 15:07   ` Marek Vasut
2025-01-15 13:29 ` [PATCH v4 13/20] spl: imx: use trampoline buffer to load images to secure region Alice Guo
2025-01-24 14:42   ` Marek Vasut
2025-01-15 13:29 ` [PATCH v4 14/20] imx9: add i.MX95 Kconfig and Makefile Alice Guo
2025-01-24 14:43   ` Marek Vasut
2025-01-15 13:29 ` [PATCH v4 15/20] imx: Kconfig: IMX8_ROMAPI is not configured for i.MX95 Alice Guo
2025-01-24 14:44   ` Marek Vasut
2025-01-15 13:29 ` [PATCH v4 16/20] binman: add a new entry type for packing DDR PHY firmware images Alice Guo
2025-01-15 13:29 ` [PATCH v4 17/20] tools: imx8image: add i.MX95 support Alice Guo
2025-01-24 15:00   ` Marek Vasut
2025-01-15 13:29 ` [PATCH v4 18/20] imx: add V2X container support on i.MX95 Alice Guo
2025-01-15 13:29 ` [PATCH v4 19/20] doc: imx: add document for i.MX95 Image Container Format Alice Guo
2025-01-15 13:29 ` [PATCH v4 20/20] imx95_evk: add i.MX95 19x19 EVK board basic support Alice Guo
2025-01-16 19:38   ` Tim Harvey
2025-01-16 19:42     ` Tim Harvey
2025-01-16 20:03       ` Marek Vasut
2025-01-16 20:05         ` Tom Rini
2025-01-16 22:47       ` Tim Harvey
2025-01-17  1:57         ` 回复: [EXT] " Alice Guo (OSS)
2025-01-24 15:14   ` Marek Vasut

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=20250224022831.GA9876@nxa18884-linux \
    --to=peng.fan@oss.nxp.com \
    --cc=alice.guo@nxp.com \
    --cc=alice.guo@oss.nxp.com \
    --cc=alpernebiyasak@gmail.com \
    --cc=festevam@gmail.com \
    --cc=lukma@denx.de \
    --cc=marex@denx.de \
    --cc=sbabic@denx.de \
    --cc=seanga2@gmail.com \
    --cc=sjg@chromium.org \
    --cc=tharvey@gateworks.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=uboot-imx@nxp.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox