linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] pinctrl: mediatek: Add support for MT8196
       [not found] <20241111085354.26576-1-ot_cathy.xu@mediatek.com>
@ 2024-11-11  9:12 ` Christophe JAILLET
  2025-01-13 10:03   ` Cathy Xu (许华婷)
  2024-11-13 13:28 ` Linus Walleij
  1 sibling, 1 reply; 10+ messages in thread
From: Christophe JAILLET @ 2024-11-11  9:12 UTC (permalink / raw)
  To: ot907280, matthias.bgg, angelogioacchino.delregno, sean.wang,
	linus.walleij
  Cc: linux-mediatek, linux-gpio, linux-kernel, linux-arm-kernel,
	Guodong Liu, Guodong Liu

Le 11/11/2024 à 09:53, ot907280 a écrit :
> From: Guodong Liu <guodong.liu@mediatek.corp-partner.google.com>
> 
> Add register address for each pin config.
> Add the function for each pin.
> 
> Signed-off-by: Guodong Liu <guodong.liu@mediatek.com>
> Cathy Xu <ot_cathy.xu@mediatek.com>
> ---

Hi,

> diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-mt8196.h b/drivers/pinctrl/mediatek/pinctrl-mtk-mt8196.h
> new file mode 100644
> index 000000000000..9732ede74d9b
> --- /dev/null
> +++ b/drivers/pinctrl/mediatek/pinctrl-mtk-mt8196.h
> @@ -0,0 +1,2791 @@
> +/* SPDX-License-Identifier: GPL-2.0 */
> +/*
> + * Copyright (C) 2024 Mediatek Inc.
> + * Author: Guodong Liu <Guodong.Liu@mediatek.com>
> + *
> + */
> +
> +#ifndef __PINCTRL_MTK_MT8196_H
> +#define __PINCTRL_MTK_MT8196_H
> +

...

> +	MTK_PIN(
> +		292, "veint292",
> +		MTK_EINT_FUNCTION(0, 292),
> +		DRV_GRP4,
> +		MTK_FUNCTION(0, NULL)
> +	)
> +};
> +
> +#endif /* __PINCTRL__MTK_MT8196_H */

Nitpick: there is an extra _ before MTK here.



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] pinctrl: mediatek: Add support for MT8196
       [not found] <20241111085354.26576-1-ot_cathy.xu@mediatek.com>
  2024-11-11  9:12 ` Christophe JAILLET
@ 2024-11-13 13:28 ` Linus Walleij
  2025-01-13  9:35   ` Cathy Xu (许华婷)
  1 sibling, 1 reply; 10+ messages in thread
From: Linus Walleij @ 2024-11-13 13:28 UTC (permalink / raw)
  To: ot907280
  Cc: matthias.bgg, angelogioacchino.delregno, sean.wang,
	linux-mediatek, linux-gpio, linux-kernel, linux-arm-kernel,
	Guodong Liu, Guodong Liu

On Mon, Nov 11, 2024 at 9:54 AM ot907280 <ot_cathy.xu@mediatek.com> wrote:

> From: Guodong Liu <guodong.liu@mediatek.corp-partner.google.com>
>
> Add register address for each pin config.
> Add the function for each pin.
>
> Signed-off-by: Guodong Liu <guodong.liu@mediatek.com>
> Cathy Xu <ot_cathy.xu@mediatek.com>

This looks fine, but there are no device tree bindings for mt8196?
What do you expect me to do here, I can't merge a device tree
based driver for a hardware without DT bindings.

Yours,
Linus Walleij


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] pinctrl: mediatek: Add support for MT8196
       [not found] <20241211055454.17120-3-ot_cathy.xu@mediatek.com>
@ 2024-12-11  7:56 ` Krzysztof Kozlowski
  2025-01-14  7:47   ` Cathy Xu (许华婷)
  2024-12-12  4:53 ` kernel test robot
  2024-12-20 16:26 ` kernel test robot
  2 siblings, 1 reply; 10+ messages in thread
From: Krzysztof Kozlowski @ 2024-12-11  7:56 UTC (permalink / raw)
  To: ot907280, matthias.bgg, angelogioacchino.delregno, sean.wang,
	linus.walleij
  Cc: linux-mediatek, linux-gpio, linux-kernel, linux-arm-kernel,
	Guodong Liu, Guodong Liu

On 11/12/2024 06:54, ot907280 wrote:
> From: Guodong Liu <guodong.liu@mediatek.corp-partner.google.com>
> 
> Add pinctrl driver for mt8196
> 
> Signed-off-by: Guodong Liu <guodong.liu@mediatek.com>
> Signed-off-by: ot907280 <ot_cathy.xu@mediatek.com>


Please use real names, not logins.

<form letter>
Please use scripts/get_maintainers.pl to get a list of necessary people
and lists to CC. It might happen, that command when run on an older
kernel, gives you outdated entries. Therefore please be sure you base
your patches on recent Linux kernel.

Tools like b4 or scripts/get_maintainer.pl provide you proper list of
people, so fix your workflow. Tools might also fail if you work on some
ancient tree (don't, instead use mainline) or work on fork of kernel
(don't, instead use mainline). Just use b4 and everything should be
fine, although remember about `b4 prep --auto-to-cc` if you added new
patches to the patchset.

You missed at least devicetree list (maybe more), so this won't be
tested by automated tooling. Performing review on untested code might be
a waste of time.

Please kindly resend and include all necessary To/Cc entries.
</form letter>


> ---
>  drivers/pinctrl/mediatek/Kconfig              |   12 +
>  drivers/pinctrl/mediatek/Makefile             |    1 +
>  drivers/pinctrl/mediatek/pinctrl-mt8196.c     | 1757 +++++++++++
>  drivers/pinctrl/mediatek/pinctrl-mtk-mt8196.h | 2791 +++++++++++++++++
>  include/dt-bindings/pinctrl/mt8196-pinfunc.h  | 1572 ++++++++++
>  5 files changed, 6133 insertions(+)
>  create mode 100644 drivers/pinctrl/mediatek/pinctrl-mt8196.c
>  create mode 100644 drivers/pinctrl/mediatek/pinctrl-mtk-mt8196.h
>  create mode 100644 include/dt-bindings/pinctrl/mt8196-pinfunc.h

Please run scripts/checkpatch.pl and fix reported warnings. Then please
run `scripts/checkpatch.pl --strict` and (probably) fix more warnings.
Some warnings can be ignored, especially from --strict run, but the code
here looks like it needs a fix. Feel free to get in touch if the warning
is not clear.



> +static const char * const mt8196_pinctrl_register_base_names[] = {
> +	"iocfg0", "iocfg_rt", "iocfg_rm1", "iocfg_rm2",
> +	"iocfg_rb", "iocfg_bm1", "iocfg_bm2", "iocfg_bm3",
> +	"iocfg_lt", "iocfg_lm1", "iocfg_lm2", "iocfg_lb1",
> +	"iocfg_lb2", "iocfg_tm1", "iocfg_tm2", "iocfg_tm3",
> +};
> +
> +static const struct mtk_pin_soc mt8196_data = {
> +	.reg_cal	= mt8196_reg_cals,
> +	.pins	= mtk_pins_mt8196,
> +	.npins	= ARRAY_SIZE(mtk_pins_mt8196),
> +	.ngrps	= ARRAY_SIZE(mtk_pins_mt8196),
> +	.nfuncs	= 8,
> +	.gpio_m	= 0,
> +	.base_names	= mt8196_pinctrl_register_base_names,
> +	.nbase_names	= ARRAY_SIZE(mt8196_pinctrl_register_base_names),
> +	.pull_type = mt8196_pull_type,
> +	.bias_set_combo	= mtk_pinconf_bias_set_combo,
> +	.bias_get_combo	= mtk_pinconf_bias_get_combo,
> +	.drive_set	= mtk_pinconf_drive_set_rev1,
> +	.drive_get	= mtk_pinconf_drive_get_rev1,
> +	.adv_drive_get	= mtk_pinconf_adv_drive_get_raw,
> +	.adv_drive_set	= mtk_pinconf_adv_drive_set_raw,
> +};
> +
> +static const struct of_device_id mt8196_pinctrl_of_match[] = {
> +	{ .compatible = "mediatek,mt8196-pinctrl", .data = &mt8196_data },


Please run scripts/checkpatch.pl and fix reported warnings. Then please
run `scripts/checkpatch.pl --strict` and (probably) fix more warnings.
Some warnings can be ignored, especially from --strict run, but the code
here looks like it needs a fix. Feel free to get in touch if the warning
is not clear.

> +	{ }
> +};
> +
> +static struct platform_driver mt8196_pinctrl_driver = {
> +	.driver = {
> +		.name = "mt8196-pinctrl",
> +		.of_match_table = mt8196_pinctrl_of_match,
> +		.pm = &mtk_paris_pinctrl_pm_ops,
> +	},
> +	.probe = mtk_paris_pinctrl_probe,
> +};
> +
> +static int __init mt8196_pinctrl_init(void)
> +{
> +	return platform_driver_register(&mt8196_pinctrl_driver);
> +}
> +arch_initcall(mt8196_pinctrl_init);
> +
> +MODULE_LICENSE("GPL");


...

> +#endif /* __PINCTRL_MTK_MT8196_H */
> diff --git a/include/dt-bindings/pinctrl/mt8196-pinfunc.h b/include/dt-bindings/pinctrl/mt8196-pinfunc.h
> new file mode 100644
> index 000000000000..717351b12255
> --- /dev/null
> +++ b/include/dt-bindings/pinctrl/mt8196-pinfunc.h
> @@ -0,0 +1,1572 @@
> +/* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */
> +/*
> + * Copyright (C) 2024 Mediatek Inc.
> + * Author: Guodong Liu <Guodong.Liu@mediatek.com>
> + */
> +
> +#ifndef __MT8196_PINFUNC_H
> +#define __MT8196_PINFUNC_H
> +
> +#include <dt-bindings/pinctrl/mt65xx.h>
> +
> +#define PINMUX_GPIO0__FUNC_GPIO0 (MTK_PIN_NO(0) | 0)
> +#define PINMUX_GPIO0__FUNC_DMIC1_CLK (MTK_PIN_NO(0) | 1)
> +#define PINMUX_GPIO0__FUNC_SPI3_A_MO (MTK_PIN_NO(0) | 3)
> +#define PINMUX_GPIO0__FUNC_FMI2S_B_LRCK (MTK_PIN_NO(0) | 4)
> +#define PINMUX_GPIO0__FUNC_SCP_DMIC1_CLK (MTK_PIN_NO(0) | 5)
> +#define PINMUX_GPIO0__FUNC_TP_GPIO14_AO (MTK_PIN_NO(0) | 6)


These aren't really bindings. If you disagree, point me to the usage in
the driver.



Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] pinctrl: mediatek: Add support for MT8196
       [not found] <20241211055454.17120-3-ot_cathy.xu@mediatek.com>
  2024-12-11  7:56 ` [PATCH] pinctrl: mediatek: Add support for MT8196 Krzysztof Kozlowski
@ 2024-12-12  4:53 ` kernel test robot
  2024-12-20 16:26 ` kernel test robot
  2 siblings, 0 replies; 10+ messages in thread
From: kernel test robot @ 2024-12-12  4:53 UTC (permalink / raw)
  To: ot907280, matthias.bgg, angelogioacchino.delregno, sean.wang,
	linus.walleij
  Cc: llvm, oe-kbuild-all, linux-mediatek, linux-gpio, linux-kernel,
	linux-arm-kernel, Guodong Liu, ot907280

Hi ot907280,

kernel test robot noticed the following build errors:

[auto build test ERROR on linusw-pinctrl/devel]
[also build test ERROR on linusw-pinctrl/for-next linus/master v6.13-rc2 next-20241211]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/ot907280/pinctrl-mediatek-Add-support-for-MT8196/20241211-140107
base:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git devel
patch link:    https://lore.kernel.org/r/20241211055454.17120-3-ot_cathy.xu%40mediatek.com
patch subject: [PATCH] pinctrl: mediatek: Add support for MT8196
config: arm64-randconfig-002-20241212 (https://download.01.org/0day-ci/archive/20241212/202412121226.WW9Airfh-lkp@intel.com/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241212/202412121226.WW9Airfh-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412121226.WW9Airfh-lkp@intel.com/

All errors (new ones prefixed by >>):

>> ld.lld: error: undefined symbol: mtk_paris_pinctrl_pm_ops
   >>> referenced by pinctrl-mt8196.c
   >>>               drivers/pinctrl/mediatek/pinctrl-mt8196.o:(mt8196_pinctrl_driver) in archive vmlinux.a

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] pinctrl: mediatek: Add support for MT8196
       [not found] <20241211055454.17120-3-ot_cathy.xu@mediatek.com>
  2024-12-11  7:56 ` [PATCH] pinctrl: mediatek: Add support for MT8196 Krzysztof Kozlowski
  2024-12-12  4:53 ` kernel test robot
@ 2024-12-20 16:26 ` kernel test robot
  2 siblings, 0 replies; 10+ messages in thread
From: kernel test robot @ 2024-12-20 16:26 UTC (permalink / raw)
  To: ot907280, matthias.bgg, angelogioacchino.delregno, sean.wang,
	linus.walleij
  Cc: oe-kbuild-all, linux-mediatek, linux-gpio, linux-kernel,
	linux-arm-kernel, Guodong Liu, ot907280

Hi ot907280,

kernel test robot noticed the following build errors:

[auto build test ERROR on linusw-pinctrl/devel]
[also build test ERROR on linusw-pinctrl/for-next linus/master v6.13-rc3 next-20241220]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/ot907280/pinctrl-mediatek-Add-support-for-MT8196/20241211-140107
base:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git devel
patch link:    https://lore.kernel.org/r/20241211055454.17120-3-ot_cathy.xu%40mediatek.com
patch subject: [PATCH] pinctrl: mediatek: Add support for MT8196
config: sparc64-randconfig-r071-20241219 (https://download.01.org/0day-ci/archive/20241221/202412210007.sMeJEMYf-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241221/202412210007.sMeJEMYf-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412210007.sMeJEMYf-lkp@intel.com/

All errors (new ones prefixed by >>):

>> sparc64-linux-ld: drivers/pinctrl/mediatek/pinctrl-mt8196.o:(.data+0xa0): undefined reference to `mtk_paris_pinctrl_pm_ops'

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] pinctrl: mediatek: Add support for MT8196
  2024-11-13 13:28 ` Linus Walleij
@ 2025-01-13  9:35   ` Cathy Xu (许华婷)
  0 siblings, 0 replies; 10+ messages in thread
From: Cathy Xu (许华婷) @ 2025-01-13  9:35 UTC (permalink / raw)
  To: linus.walleij@linaro.org
  Cc: linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org,
	Guodong Liu (刘国栋),
	linux-gpio@vger.kernel.org,
	guodong.liu@mediatek.corp-partner.google.com,
	linux-arm-kernel@lists.infradead.org, sean.wang@kernel.org,
	matthias.bgg@gmail.com, AngeloGioacchino Del Regno

On Wed, 2024-11-13 at 14:28 +0100, Linus Walleij wrote:
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
> 
> 
> On Mon, Nov 11, 2024 at 9:54 AM ot907280 <ot_cathy.xu@mediatek.com>
> wrote:
> 
> > From: Guodong Liu <guodong.liu@mediatek.corp-partner.google.com>
> > 
> > Add register address for each pin config.
> > Add the function for each pin.
> > 
> > Signed-off-by: Guodong Liu <guodong.liu@mediatek.com>
> > Cathy Xu <ot_cathy.xu@mediatek.com>
> 
> This looks fine, but there are no device tree bindings for mt8196?
> What do you expect me to do here, I can't merge a device tree
> based driver for a hardware without DT bindings.
  Thank you for your review. mt8196 bindings will be add in next
version.

> 
> Yours,
> Linus Walleij

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] pinctrl: mediatek: Add support for MT8196
  2024-11-11  9:12 ` Christophe JAILLET
@ 2025-01-13 10:03   ` Cathy Xu (许华婷)
  0 siblings, 0 replies; 10+ messages in thread
From: Cathy Xu (许华婷) @ 2025-01-13 10:03 UTC (permalink / raw)
  To: christophe.jaillet@wanadoo.fr, matthias.bgg@gmail.com,
	AngeloGioacchino Del Regno, linus.walleij@linaro.org,
	sean.wang@kernel.org
  Cc: linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org,
	Guodong Liu (刘国栋),
	linux-gpio@vger.kernel.org

On Mon, 2024-11-11 at 10:12 +0100, Christophe JAILLET wrote:
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
> 
> 
> Le 11/11/2024 à 09:53, ot907280 a écrit :
> > From: Guodong Liu <guodong.liu@mediatek.corp-partner.google.com>
> > 
> > Add register address for each pin config.
> > Add the function for each pin.
> > 
> > Signed-off-by: Guodong Liu <guodong.liu@mediatek.com>
> > Cathy Xu <ot_cathy.xu@mediatek.com>
> > ---
> 
> Hi,
> 
> > diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-mt8196.h
> > b/drivers/pinctrl/mediatek/pinctrl-mtk-mt8196.h
> > new file mode 100644
> > index 000000000000..9732ede74d9b
> > --- /dev/null
> > +++ b/drivers/pinctrl/mediatek/pinctrl-mtk-mt8196.h
> > @@ -0,0 +1,2791 @@
> > +/* SPDX-License-Identifier: GPL-2.0 */
> > +/*
> > + * Copyright (C) 2024 Mediatek Inc.
> > + * Author: Guodong Liu <Guodong.Liu@mediatek.com>
> > + *
> > + */
> > +
> > +#ifndef __PINCTRL_MTK_MT8196_H
> > +#define __PINCTRL_MTK_MT8196_H
> > +
> 
> ...
> 
> > +     MTK_PIN(
> > +             292, "veint292",
> > +             MTK_EINT_FUNCTION(0, 292),
> > +             DRV_GRP4,
> > +             MTK_FUNCTION(0, NULL)
> > +     )
> > +};
> > +
> > +#endif /* __PINCTRL__MTK_MT8196_H */
> 
> Nitpick: there is an extra _ before MTK here.
  Thank you for your review. it will be fixed in next version.

> 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] pinctrl: mediatek: Add support for MT8196
  2024-12-11  7:56 ` [PATCH] pinctrl: mediatek: Add support for MT8196 Krzysztof Kozlowski
@ 2025-01-14  7:47   ` Cathy Xu (许华婷)
  2025-01-14 11:25     ` Krzysztof Kozlowski
  0 siblings, 1 reply; 10+ messages in thread
From: Cathy Xu (许华婷) @ 2025-01-14  7:47 UTC (permalink / raw)
  To: matthias.bgg@gmail.com, sean.wang@kernel.org,
	AngeloGioacchino Del Regno, krzk@kernel.org,
	linus.walleij@linaro.org
  Cc: linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org,
	Guodong Liu (刘国栋),
	linux-gpio@vger.kernel.org

On Wed, 2024-12-11 at 08:56 +0100, Krzysztof Kozlowski wrote:
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
> 
> 
> On 11/12/2024 06:54, ot907280 wrote:
> > From: Guodong Liu <guodong.liu@mediatek.corp-partner.google.com>
> > 
> > Add pinctrl driver for mt8196
> > 
> > Signed-off-by: Guodong Liu <guodong.liu@mediatek.com>
> > Signed-off-by: ot907280 <ot_cathy.xu@mediatek.com>
> 
> 
> Please use real names, not logins.
> 
> <form letter>
> Please use scripts/get_maintainers.pl to get a list of necessary
> people
> and lists to CC. It might happen, that command when run on an older
> kernel, gives you outdated entries. Therefore please be sure you base
> your patches on recent Linux kernel.
> 
> Tools like b4 or scripts/get_maintainer.pl provide you proper list of
> people, so fix your workflow. Tools might also fail if you work on
> some
> ancient tree (don't, instead use mainline) or work on fork of kernel
> (don't, instead use mainline). Just use b4 and everything should be
> fine, although remember about `b4 prep --auto-to-cc` if you added new
> patches to the patchset.
> 
> You missed at least devicetree list (maybe more), so this won't be
> tested by automated tooling. Performing review on untested code might
> be
> a waste of time.
> 
> Please kindly resend and include all necessary To/Cc entries.
> </form letter>
  Thank you for your review. I will use real names and run
scripts/get_maintainers.pl on recent Linux kernel in next version.

> 
> 
> > ---
> >  drivers/pinctrl/mediatek/Kconfig              |   12 +
> >  drivers/pinctrl/mediatek/Makefile             |    1 +
> >  drivers/pinctrl/mediatek/pinctrl-mt8196.c     | 1757 +++++++++++
> >  drivers/pinctrl/mediatek/pinctrl-mtk-mt8196.h | 2791
> > +++++++++++++++++
> >  include/dt-bindings/pinctrl/mt8196-pinfunc.h  | 1572 ++++++++++
> >  5 files changed, 6133 insertions(+)
> >  create mode 100644 drivers/pinctrl/mediatek/pinctrl-mt8196.c
> >  create mode 100644 drivers/pinctrl/mediatek/pinctrl-mtk-mt8196.h
> >  create mode 100644 include/dt-bindings/pinctrl/mt8196-pinfunc.h
> 
> Please run scripts/checkpatch.pl and fix reported warnings. Then
> please
> run `scripts/checkpatch.pl --strict` and (probably) fix more
> warnings.
> Some warnings can be ignored, especially from --strict run, but the
> code
> here looks like it needs a fix. Feel free to get in touch if the
> warning
> is not clear.
  Sorry, the other warnings reported by run `scripts/checkpatch.pl --
strict` will be fixed in next version, but it didn't report the warning
here. Could you please tell me what warning you are referring to here?
Thanks~

> 
> 
> 
> > +static const char * const mt8196_pinctrl_register_base_names[] = {
> > +     "iocfg0", "iocfg_rt", "iocfg_rm1", "iocfg_rm2",
> > +     "iocfg_rb", "iocfg_bm1", "iocfg_bm2", "iocfg_bm3",
> > +     "iocfg_lt", "iocfg_lm1", "iocfg_lm2", "iocfg_lb1",
> > +     "iocfg_lb2", "iocfg_tm1", "iocfg_tm2", "iocfg_tm3",
> > +};
> > +
> > +static const struct mtk_pin_soc mt8196_data = {
> > +     .reg_cal        = mt8196_reg_cals,
> > +     .pins   = mtk_pins_mt8196,
> > +     .npins  = ARRAY_SIZE(mtk_pins_mt8196),
> > +     .ngrps  = ARRAY_SIZE(mtk_pins_mt8196),
> > +     .nfuncs = 8,
> > +     .gpio_m = 0,
> > +     .base_names     = mt8196_pinctrl_register_base_names,
> > +     .nbase_names    =
> > ARRAY_SIZE(mt8196_pinctrl_register_base_names),
> > +     .pull_type = mt8196_pull_type,
> > +     .bias_set_combo = mtk_pinconf_bias_set_combo,
> > +     .bias_get_combo = mtk_pinconf_bias_get_combo,
> > +     .drive_set      = mtk_pinconf_drive_set_rev1,
> > +     .drive_get      = mtk_pinconf_drive_get_rev1,
> > +     .adv_drive_get  = mtk_pinconf_adv_drive_get_raw,
> > +     .adv_drive_set  = mtk_pinconf_adv_drive_set_raw,
> > +};
> > +
> > +static const struct of_device_id mt8196_pinctrl_of_match[] = {
> > +     { .compatible = "mediatek,mt8196-pinctrl", .data =
> > &mt8196_data },
> 
> 
> Please run scripts/checkpatch.pl and fix reported warnings. Then
> please
> run `scripts/checkpatch.pl --strict` and (probably) fix more
> warnings.
> Some warnings can be ignored, especially from --strict run, but the
> code
> here looks like it needs a fix. Feel free to get in touch if the
> warning
> is not clear.
  Sorry, it's the same here, no warnings were reported here. Could you
please point it out? Thank you~  

> 
> > +     { }
> > +};
> > +
> > +static struct platform_driver mt8196_pinctrl_driver = {
> > +     .driver = {
> > +             .name = "mt8196-pinctrl",
> > +             .of_match_table = mt8196_pinctrl_of_match,
> > +             .pm = &mtk_paris_pinctrl_pm_ops,
> > +     },
> > +     .probe = mtk_paris_pinctrl_probe,
> > +};
> > +
> > +static int __init mt8196_pinctrl_init(void)
> > +{
> > +     return platform_driver_register(&mt8196_pinctrl_driver);
> > +}
> > +arch_initcall(mt8196_pinctrl_init);
> > +
> > +MODULE_LICENSE("GPL");
> 
> 
> ...
> 
> > +#endif /* __PINCTRL_MTK_MT8196_H */
> > diff --git a/include/dt-bindings/pinctrl/mt8196-pinfunc.h
> > b/include/dt-bindings/pinctrl/mt8196-pinfunc.h
> > new file mode 100644
> > index 000000000000..717351b12255
> > --- /dev/null
> > +++ b/include/dt-bindings/pinctrl/mt8196-pinfunc.h
> > @@ -0,0 +1,1572 @@
> > +/* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */
> > +/*
> > + * Copyright (C) 2024 Mediatek Inc.
> > + * Author: Guodong Liu <Guodong.Liu@mediatek.com>
> > + */
> > +
> > +#ifndef __MT8196_PINFUNC_H
> > +#define __MT8196_PINFUNC_H
> > +
> > +#include <dt-bindings/pinctrl/mt65xx.h>
> > +
> > +#define PINMUX_GPIO0__FUNC_GPIO0 (MTK_PIN_NO(0) | 0)
> > +#define PINMUX_GPIO0__FUNC_DMIC1_CLK (MTK_PIN_NO(0) | 1)
> > +#define PINMUX_GPIO0__FUNC_SPI3_A_MO (MTK_PIN_NO(0) | 3)
> > +#define PINMUX_GPIO0__FUNC_FMI2S_B_LRCK (MTK_PIN_NO(0) | 4)
> > +#define PINMUX_GPIO0__FUNC_SCP_DMIC1_CLK (MTK_PIN_NO(0) | 5)
> > +#define PINMUX_GPIO0__FUNC_TP_GPIO14_AO (MTK_PIN_NO(0) | 6)
> 
> 
> These aren't really bindings. If you disagree, point me to the usage
> in
> the driver.
  Sorry, I misunderstood the meaning of the bindings earlier. The
really bindings will be uploaded in next version.

> 
> 
> 
> Best regards,
> Krzysztof

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] pinctrl: mediatek: Add support for MT8196
  2025-01-14  7:47   ` Cathy Xu (许华婷)
@ 2025-01-14 11:25     ` Krzysztof Kozlowski
  2025-01-15  1:25       ` Cathy Xu (许华婷)
  0 siblings, 1 reply; 10+ messages in thread
From: Krzysztof Kozlowski @ 2025-01-14 11:25 UTC (permalink / raw)
  To: Cathy Xu (许华婷), matthias.bgg@gmail.com,
	sean.wang@kernel.org, AngeloGioacchino Del Regno,
	linus.walleij@linaro.org
  Cc: linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org,
	Guodong Liu (刘国栋),
	linux-gpio@vger.kernel.org

On 14/01/2025 08:47, Cathy Xu (许华婷) wrote:
>>
>> Please run scripts/checkpatch.pl and fix reported warnings. Then
>> please
>> run `scripts/checkpatch.pl --strict` and (probably) fix more
>> warnings.
>> Some warnings can be ignored, especially from --strict run, but the
>> code
>> here looks like it needs a fix. Feel free to get in touch if the
>> warning
>> is not clear.
>   Sorry, it's the same here, no warnings were reported here. Could you
> please point it out? Thank you~  


Maybe there is no warning... So I meant that bindings are always
separate. The binding header always belongs to the binding doc.

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] pinctrl: mediatek: Add support for MT8196
  2025-01-14 11:25     ` Krzysztof Kozlowski
@ 2025-01-15  1:25       ` Cathy Xu (许华婷)
  0 siblings, 0 replies; 10+ messages in thread
From: Cathy Xu (许华婷) @ 2025-01-15  1:25 UTC (permalink / raw)
  To: matthias.bgg@gmail.com, sean.wang@kernel.org,
	AngeloGioacchino Del Regno, krzk@kernel.org,
	linus.walleij@linaro.org
  Cc: linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org,
	Guodong Liu (刘国栋),
	linux-gpio@vger.kernel.org

On Tue, 2025-01-14 at 12:25 +0100, Krzysztof Kozlowski wrote:
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
> 
> 
> On 14/01/2025 08:47, Cathy Xu (许华婷) wrote:
> > > 
> > > Please run scripts/checkpatch.pl and fix reported warnings. Then
> > > please
> > > run `scripts/checkpatch.pl --strict` and (probably) fix more
> > > warnings.
> > > Some warnings can be ignored, especially from --strict run, but
> > > the
> > > code
> > > here looks like it needs a fix. Feel free to get in touch if the
> > > warning
> > > is not clear.
> > 
> >   Sorry, it's the same here, no warnings were reported here. Could
> > you
> > please point it out? Thank you~
> 
> 
> Maybe there is no warning... So I meant that bindings are always
> separate. The binding header always belongs to the binding doc.
  Understood, it will be fixed in next version, thank you.
> 
> Best regards,
> Krzysztof

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-01-15  1:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20241211055454.17120-3-ot_cathy.xu@mediatek.com>
2024-12-11  7:56 ` [PATCH] pinctrl: mediatek: Add support for MT8196 Krzysztof Kozlowski
2025-01-14  7:47   ` Cathy Xu (许华婷)
2025-01-14 11:25     ` Krzysztof Kozlowski
2025-01-15  1:25       ` Cathy Xu (许华婷)
2024-12-12  4:53 ` kernel test robot
2024-12-20 16:26 ` kernel test robot
     [not found] <20241111085354.26576-1-ot_cathy.xu@mediatek.com>
2024-11-11  9:12 ` Christophe JAILLET
2025-01-13 10:03   ` Cathy Xu (许华婷)
2024-11-13 13:28 ` Linus Walleij
2025-01-13  9:35   ` Cathy Xu (许华婷)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).