linux-sound.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chen-Yu Tsai <wenst@chromium.org>
To: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Cc: linux-mediatek@lists.infradead.org, robh@kernel.org,
	 herbert@gondor.apana.org.au, davem@davemloft.net,
	krzk+dt@kernel.org,  conor+dt@kernel.org,
	chunkuang.hu@kernel.org, p.zabel@pengutronix.de,
	 airlied@gmail.com, simona@ffwll.ch,
	maarten.lankhorst@linux.intel.com,  mripard@kernel.org,
	tzimmermann@suse.de, jassisinghbrar@gmail.com,
	 mchehab@kernel.org, matthias.bgg@gmail.com,
	chunfeng.yun@mediatek.com,  vkoul@kernel.org, kishon@kernel.org,
	sean.wang@kernel.org,  linus.walleij@linaro.org,
	lgirdwood@gmail.com, broonie@kernel.org,  andersson@kernel.org,
	mathieu.poirier@linaro.org, daniel.lezcano@linaro.org,
	 tglx@linutronix.de, atenart@kernel.org, jitao.shi@mediatek.com,
	 ck.hu@mediatek.com, houlong.wei@mediatek.com,
	 kyrie.wu@mediatek.corp-partner.google.com,
	andy.teng@mediatek.com,  tinghan.shen@mediatek.com,
	jiaxin.yu@mediatek.com, shane.chien@mediatek.com,
	 olivia.wen@mediatek.com, granquet@baylibre.com,
	eugen.hristev@linaro.org,  arnd@arndb.de, sam.shih@mediatek.com,
	jieyy.yang@mediatek.com,  frank-w@public-files.de,
	mwalle@kernel.org, fparent@baylibre.com,
	 linux-crypto@vger.kernel.org, devicetree@vger.kernel.org,
	 linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
	 linux-media@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	 linux-phy@lists.infradead.org, linux-gpio@vger.kernel.org,
	 linux-remoteproc@vger.kernel.org, linux-sound@vger.kernel.org
Subject: Re: [PATCH 28/38] arm64: dts: mediatek: mt8173: Fix pinctrl node names and cleanup
Date: Thu, 24 Jul 2025 17:48:56 +0800	[thread overview]
Message-ID: <CAGXv+5FvqKNB5Ufx65p5QnueKgEYwNW20tahVPg-kG5N3t+WGQ@mail.gmail.com> (raw)
In-Reply-To: <20250724083914.61351-29-angelogioacchino.delregno@collabora.com>

On Thu, Jul 24, 2025 at 4:40 PM AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com> wrote:
>
> Fix the pinctrl node names to adhere to the bindings, as the main
> pin node is supposed to be named like "uart0-pins" and the pinmux
> node named like "pins-bus".
>
> While at it, also cleanup all of the MTK_DRIVE_(x)mA by changing
> that to just the (x) number.
>
> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
> ---
>  .../boot/dts/mediatek/mt8173-elm-hana.dtsi    |  34 ++---
>  arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi  | 138 +++++++++---------
>  arch/arm64/boot/dts/mediatek/mt8173-evb.dts   |  60 ++++----
>  arch/arm64/boot/dts/mediatek/mt8173.dtsi      |  28 ++--
>  4 files changed, 128 insertions(+), 132 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt8173-elm-hana.dtsi b/arch/arm64/boot/dts/mediatek/mt8173-elm-hana.dtsi
> index dfc5c2f0ddef..1004eb8ea52c 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8173-elm-hana.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8173-elm-hana.dtsi
> @@ -5,6 +5,14 @@
>
>  #include "mt8173-elm.dtsi"
>
> +&hdmi_mux_pins {
> +       pins-mux {
> +               pinmux = <MT8173_PIN_98_URTS1__FUNC_GPIO98>;
> +               bias-pull-up;
> +               output-high;
> +       };
> +};
> +

Should probably mention that a duplicate path reference was fixed.

>  &i2c0 {
>         clock-frequency = <200000>;
>  };
> @@ -67,26 +75,16 @@ trackpad2: trackpad@2c {
>         };
>  };
>
> -&mmc1 {
> -       wp-gpios = <&pio 42 GPIO_ACTIVE_HIGH>;
> -};
> -
> -&pio {
> -       hdmi_mux_pins: hdmi_mux_pins {
> -               pins2 {
> -                       pinmux = <MT8173_PIN_98_URTS1__FUNC_GPIO98>;
> -                       bias-pull-up;
> -                       output-high;
> -               };
> +&mmc1_pins_default {
> +       pins-wp {
> +               pinmux = <MT8173_PIN_42_DSI_TE__FUNC_GPIO42>;
> +               input-enable;
> +               bias-pull-up;
>         };
> +};
>
> -       mmc1_pins_default: mmc1default {
> -               pins_wp {
> -                       pinmux = <MT8173_PIN_42_DSI_TE__FUNC_GPIO42>;
> -                       input-enable;
> -                       bias-pull-up;
> -               };
> -       };
> +&mmc1 {
> +       wp-gpios = <&pio 42 GPIO_ACTIVE_HIGH>;
>  };
>
>  &touchscreen {
> diff --git a/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi b/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi
> index 0d995b342d46..9ec930058b92 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi

[...]

> -       bt_wake_pins: bt_wake_pins {
> -               pins1 {
> +       bt_wake_pins: bt-pins {

Nit: I think the original name is better, because IIRC this is
using the RX pin as a GPIO interrupt to wake the system from suspend.

> +               pins-wake {
>                         pinmux = <MT8173_PIN_119_KPROW0__FUNC_GPIO119>;
>                         bias-pull-up;
>                 };
>         };
>

[...]

>
> -               pins_ds {
> +               pins-ds {
>                         pinmux = <MT8173_PIN_67_MSDC0_DSL__FUNC_MSDC0_DSL>;
>                         drive-strength = <MTK_DRIVE_10mA>;

Missed one here.

>                         bias-pull-down = <MTK_PUPD_SET_R1R0_01>;
>                 };

[...]

> diff --git a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts b/arch/arm64/boot/dts/mediatek/mt8173-evb.dts
> index 9fffed0ef4bf..51118a4149d8 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts
> +++ b/arch/arm64/boot/dts/mediatek/mt8173-evb.dts

[...]

> @@ -245,20 +245,29 @@ pins_cmd_dat {
>                         bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
>                 };
>
> -               pins_clk {
> +               pins-clk {
>                         pinmux = <MT8173_PIN_65_MSDC0_CLK__FUNC_MSDC0_CLK>;
>                         drive-strength = <2>;
>                         bias-pull-down = <MTK_PUPD_SET_R1R0_01>;
>                 };
>
> -               pins_rst {
> +               pins-rst {
>                         pinmux = <MT8173_PIN_68_MSDC0_RST___FUNC_MSDC0_RSTB>;
>                         bias-pull-up;
>                 };
>         };
>
> -       mmc1_pins_uhs: mmc1 {
> -               pins_cmd_dat {
> +       spi_pins_a: spi0-pins {
> +               pins-bus {
> +                       pinmux = <MT8173_PIN_69_SPI_CK__FUNC_SPI_CK_0_>,
> +                               <MT8173_PIN_70_SPI_MI__FUNC_SPI_MI_0_>,
> +                               <MT8173_PIN_71_SPI_MO__FUNC_SPI_MO_0_>,
> +                               <MT8173_PIN_72_SPI_CS__FUNC_SPI_CS_0_>;
> +               };
> +       };
> +
> +       mmc1_pins_uhs: mmc1-uhs-pins {

Wrong order?

> +               pins-cmd-dat {
>                         pinmux = <MT8173_PIN_73_MSDC1_DAT0__FUNC_MSDC1_DAT0>,
>                                  <MT8173_PIN_74_MSDC1_DAT1__FUNC_MSDC1_DAT1>,
>                                  <MT8173_PIN_75_MSDC1_DAT2__FUNC_MSDC1_DAT2>,

[...]

Once fixed,

Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>

  reply	other threads:[~2025-07-24  9:49 UTC|newest]

Thread overview: 82+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-24  8:38 [PATCH 00/38] MediaTek devicetree/bindings warnings sanitization AngeloGioacchino Del Regno
2025-07-24  8:38 ` [PATCH 01/38] dt-bindings: display: mediatek: dpi: Allow specifying resets AngeloGioacchino Del Regno
2025-07-24  9:16   ` Chen-Yu Tsai
2025-07-25 20:26     ` Rob Herring
2025-07-24  8:38 ` [PATCH 02/38] dt-bindings: display: mediatek,dp: Allow DisplayPort AUX bus AngeloGioacchino Del Regno
2025-07-24  9:16   ` [PATCH 02/38] dt-bindings: display: mediatek, dp: " Chen-Yu Tsai
2025-07-25 20:27   ` [PATCH 02/38] dt-bindings: display: mediatek,dp: " Rob Herring (Arm)
2025-07-24  8:38 ` [PATCH 03/38] dt-bindings: mailbox: mediatek,gce-mailbox: Make clock-names optional AngeloGioacchino Del Regno
2025-07-24  9:49   ` [PATCH 03/38] dt-bindings: mailbox: mediatek, gce-mailbox: " Chen-Yu Tsai
2025-07-25 20:28   ` [PATCH 03/38] dt-bindings: mailbox: mediatek,gce-mailbox: " Rob Herring (Arm)
2025-07-24  8:38 ` [PATCH 04/38] ASoC: dt-bindings: mt8192-afe-pcm: Fix clocks and clock-names AngeloGioacchino Del Regno
2025-07-24  9:12   ` Krzysztof Kozlowski
2025-08-04  9:08     ` AngeloGioacchino Del Regno
2025-07-24 11:19   ` Rob Herring (Arm)
2025-07-24  8:38 ` [PATCH 05/38] dt-bindings: crypto: inside-secure,safexcel: Mandate only ring IRQs AngeloGioacchino Del Regno
2025-07-24  9:10   ` Krzysztof Kozlowski
2025-07-24  8:38 ` [PATCH 06/38] dt-bindings: timer: mediatek: Add compatible for MT6795 GP Timer AngeloGioacchino Del Regno
2025-07-25 20:28   ` Rob Herring (Arm)
2025-07-24  8:38 ` [PATCH 07/38] dt-bindings: pinctrl: mediatek,mt7622-pinctrl: Add missing pwm_ch7_2 AngeloGioacchino Del Regno
2025-07-25 20:29   ` Rob Herring (Arm)
2025-07-24  8:38 ` [PATCH 08/38] dt-bindings: pinctrl: mediatek,mt7622-pinctrl: Add missing base reg AngeloGioacchino Del Regno
2025-07-24  9:13   ` Krzysztof Kozlowski
2025-07-24 11:19   ` Rob Herring (Arm)
2025-07-24  8:38 ` [PATCH 09/38] dt-bindings: pinctrl: mt6779: Allow common MediaTek pinctrl node names AngeloGioacchino Del Regno
2025-07-24 11:19   ` Rob Herring (Arm)
2025-07-24  8:38 ` [PATCH 10/38] dt-bindings: regulator: mediatek,mt6332-regulator: Add missing compatible AngeloGioacchino Del Regno
2025-07-25 20:29   ` Rob Herring (Arm)
2025-07-24  8:38 ` [PATCH 11/38] dt-bindings: regulator: mediatek,mt6331: Fix various regulator names AngeloGioacchino Del Regno
2025-07-25 20:30   ` Rob Herring (Arm)
2025-07-24  8:38 ` [PATCH 12/38] dt-bindings: regulator: mediatek,mt6331: Add missing compatible AngeloGioacchino Del Regno
2025-07-25 20:30   ` Rob Herring (Arm)
2025-07-24  8:38 ` [PATCH 13/38] dt-bindings: remoteproc: mediatek: Remove l1tcm MMIO from MT8188 dual AngeloGioacchino Del Regno
2025-07-24 11:19   ` Rob Herring (Arm)
2025-07-24  8:38 ` [PATCH 14/38] dt-bindings: media: mediatek,mt8195-jpeg: Allow range number in node address AngeloGioacchino Del Regno
2025-07-24  9:14   ` Krzysztof Kozlowski
2025-08-04  9:02     ` AngeloGioacchino Del Regno
2025-07-24  8:38 ` [PATCH 15/38] dt-bindings: phy: mediatek,hdmi-phy: Fix clock output names for MT8195 AngeloGioacchino Del Regno
2025-07-24  9:16   ` Krzysztof Kozlowski
2025-07-24  8:38 ` [PATCH 16/38] arm64: dts: mediatek: mt6331: Fix pmic, regulators, rtc, keys node names AngeloGioacchino Del Regno
2025-07-25 10:55   ` Fei Shao
2025-07-24  8:38 ` [PATCH 17/38] arm64: dts: mediatek: mt6797: Fix pinctrl " AngeloGioacchino Del Regno
2025-07-25 10:56   ` Fei Shao
2025-07-24  8:38 ` [PATCH 18/38] arm64: dts: mediatek: mt6797: Remove bogus id property in i2c nodes AngeloGioacchino Del Regno
2025-07-25 10:53   ` Fei Shao
2025-07-24  8:38 ` [PATCH 19/38] arm64: dts: mediatek: mt6795: Add mediatek,infracfg to iommu node AngeloGioacchino Del Regno
2025-07-25 10:52   ` Fei Shao
2025-07-24  8:38 ` [PATCH 20/38] arm64: dts: mediatek: mt6795-xperia-m5: Fix mmc0 latch-ck value AngeloGioacchino Del Regno
2025-07-24  8:38 ` [PATCH 21/38] arm64: dts: mediatek: mt6795-sony-xperia-m5: Add pinctrl for mmc1/mmc2 AngeloGioacchino Del Regno
2025-07-24  8:38 ` [PATCH 22/38] arm64: dts: mediatek: Fix node name for SYSIRQ controller on all SoCs AngeloGioacchino Del Regno
2025-07-24  9:30   ` Chen-Yu Tsai
2025-07-24  8:38 ` [PATCH 23/38] arm64: dts: mediatek: mt7986a: Fix PCI-Express T-PHY node address AngeloGioacchino Del Regno
2025-07-25 10:43   ` Fei Shao
2025-07-24  8:39 ` [PATCH 24/38] arm64: dts: mediatek: mt7986a-bpi-r3: Fix SFP I2C node names AngeloGioacchino Del Regno
2025-07-25 10:50   ` Fei Shao
2025-07-24  8:39 ` [PATCH 25/38] arm64: dts: mediatek: mt7986a-bpi-r3: Set interrupt-parent to mdio switch AngeloGioacchino Del Regno
2025-07-24  8:39 ` [PATCH 26/38] arm64: dts: mediatek: acelink-ew-7886cax: Remove unnecessary cells in spi-nand AngeloGioacchino Del Regno
2025-07-25 10:41   ` Fei Shao
2025-07-24  8:39 ` [PATCH 27/38] arm64: dts: mediatek: mt7988a: Fix PCI-Express T-PHY node address AngeloGioacchino Del Regno
2025-07-24 10:35   ` Frank Wunderlich
2025-07-24  8:39 ` [PATCH 28/38] arm64: dts: mediatek: mt8173: Fix pinctrl node names and cleanup AngeloGioacchino Del Regno
2025-07-24  9:48   ` Chen-Yu Tsai [this message]
2025-07-24  8:39 ` [PATCH 29/38] arm64: dts: mediatek: mt8183: Fix pinctrl node names AngeloGioacchino Del Regno
2025-07-25 10:37   ` Fei Shao
2025-07-24  8:39 ` [PATCH 30/38] arm64: dts: mediatek: pumpkin-common: " AngeloGioacchino Del Regno
2025-07-25 10:17   ` Fei Shao
2025-07-24  8:39 ` [PATCH 31/38] arm64: dts: mediatek: mt8183-pumpkin: Add power supply for CCI AngeloGioacchino Del Regno
2025-07-24  8:39 ` [PATCH 32/38] arm64: dts: mediatek: mt8183: Migrate to display controller OF graph AngeloGioacchino Del Regno
2025-07-24  8:39 ` [PATCH 33/38] arm64: dts: mediatek: mt8183-kukui: Move DSI panel node to machine dtsis AngeloGioacchino Del Regno
2025-07-24  9:34   ` Chen-Yu Tsai
2025-07-24  8:39 ` [PATCH 34/38] arm64: dts: mediatek: mt8195: Fix ranges for jpeg enc/decoder nodes AngeloGioacchino Del Regno
2025-07-25 10:33   ` Fei Shao
2025-07-24  8:39 ` [PATCH 35/38] arm64: dts: mediatek: mt8195-cherry: Move VBAT-supply to Tomato R1/R2 AngeloGioacchino Del Regno
2025-07-24 10:02   ` Chen-Yu Tsai
2025-07-24  8:39 ` [PATCH 36/38] arm64: dts: mediatek: mt8195-cherry: Add missing regulators to rt5682 AngeloGioacchino Del Regno
2025-07-24  9:58   ` Chen-Yu Tsai
2025-07-24  8:39 ` [PATCH 37/38] arm64: dts: mediatek: mt8395-kontron-i1200: Fix MT6360 regulator nodes AngeloGioacchino Del Regno
2025-07-25 10:39   ` Fei Shao
2025-07-24  8:39 ` [PATCH 38/38] arm64: dts: mediatek: mt8516-pumpkin: Fix machine compatible AngeloGioacchino Del Regno
2025-07-25 10:38   ` Fei Shao
2025-07-25  3:19 ` [PATCH 00/38] MediaTek devicetree/bindings warnings sanitization Rob Herring (Arm)
2025-07-25 13:52 ` Rob Herring
2025-07-28 10:55   ` AngeloGioacchino Del Regno

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=CAGXv+5FvqKNB5Ufx65p5QnueKgEYwNW20tahVPg-kG5N3t+WGQ@mail.gmail.com \
    --to=wenst@chromium.org \
    --cc=airlied@gmail.com \
    --cc=andersson@kernel.org \
    --cc=andy.teng@mediatek.com \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=arnd@arndb.de \
    --cc=atenart@kernel.org \
    --cc=broonie@kernel.org \
    --cc=chunfeng.yun@mediatek.com \
    --cc=chunkuang.hu@kernel.org \
    --cc=ck.hu@mediatek.com \
    --cc=conor+dt@kernel.org \
    --cc=daniel.lezcano@linaro.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=eugen.hristev@linaro.org \
    --cc=fparent@baylibre.com \
    --cc=frank-w@public-files.de \
    --cc=granquet@baylibre.com \
    --cc=herbert@gondor.apana.org.au \
    --cc=houlong.wei@mediatek.com \
    --cc=jassisinghbrar@gmail.com \
    --cc=jiaxin.yu@mediatek.com \
    --cc=jieyy.yang@mediatek.com \
    --cc=jitao.shi@mediatek.com \
    --cc=kishon@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=kyrie.wu@mediatek.corp-partner.google.com \
    --cc=lgirdwood@gmail.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=linux-phy@lists.infradead.org \
    --cc=linux-remoteproc@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mathieu.poirier@linaro.org \
    --cc=matthias.bgg@gmail.com \
    --cc=mchehab@kernel.org \
    --cc=mripard@kernel.org \
    --cc=mwalle@kernel.org \
    --cc=olivia.wen@mediatek.com \
    --cc=p.zabel@pengutronix.de \
    --cc=robh@kernel.org \
    --cc=sam.shih@mediatek.com \
    --cc=sean.wang@kernel.org \
    --cc=shane.chien@mediatek.com \
    --cc=simona@ffwll.ch \
    --cc=tglx@linutronix.de \
    --cc=tinghan.shen@mediatek.com \
    --cc=tzimmermann@suse.de \
    --cc=vkoul@kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).