* [PATCH] arm64: dts: mediatek: mt8183: Fix out of range pull values
@ 2025-07-22 17:11 Rob Herring (Arm)
2025-07-23 8:16 ` AngeloGioacchino Del Regno
0 siblings, 1 reply; 4+ messages in thread
From: Rob Herring (Arm) @ 2025-07-22 17:11 UTC (permalink / raw)
To: Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
AngeloGioacchino Del Regno, Enric Balletbo i Serra, Ben Ho,
Fabien Parent
Cc: devicetree, linux-kernel, linux-arm-kernel, linux-mediatek
A value of 10 is not valid for "mediatek,pull-down-adv" and
"mediatek,pull-up-adv" properties which have defined values of 0-3. It
appears the "10" was written as a binary value. The driver only looks at
the lowest 2 bits, so the value "10" decimal works out the same as if
"2" was used.
Fixes: cd894e274b74 ("arm64: dts: mt8183: Add krane-sku176 board")
Fixes: 19b6403f1e2a ("arm64: dts: mt8183: add mt8183 pumpkin board")
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
---
This is just a few of the warnings related to mt8183-pinctrl... Mediatek
is #1 for DT warnings on arm64. And by #1, I mean worst. :( It would be
nice to see some progress on fixing them. Otherwise, seeing new Mediatek
bindings rather than fixing the existing stuff makes me grumpy.
arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 14 +++++++-------
arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts | 14 +++++++-------
2 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi
index 400c61d11035..fff93e26eb76 100644
--- a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi
@@ -580,7 +580,7 @@ pins-cmd-dat {
pins-clk {
pinmux = <PINMUX_GPIO124__FUNC_MSDC0_CLK>;
drive-strength = <MTK_DRIVE_14mA>;
- mediatek,pull-down-adv = <10>;
+ mediatek,pull-down-adv = <2>;
};
pins-rst {
@@ -609,13 +609,13 @@ pins-cmd-dat {
pins-clk {
pinmux = <PINMUX_GPIO124__FUNC_MSDC0_CLK>;
drive-strength = <MTK_DRIVE_14mA>;
- mediatek,pull-down-adv = <10>;
+ mediatek,pull-down-adv = <2>;
};
pins-ds {
pinmux = <PINMUX_GPIO131__FUNC_MSDC0_DSL>;
drive-strength = <MTK_DRIVE_14mA>;
- mediatek,pull-down-adv = <10>;
+ mediatek,pull-down-adv = <2>;
};
pins-rst {
@@ -633,13 +633,13 @@ pins-cmd-dat {
<PINMUX_GPIO33__FUNC_MSDC1_DAT2>,
<PINMUX_GPIO30__FUNC_MSDC1_DAT3>;
input-enable;
- mediatek,pull-up-adv = <10>;
+ mediatek,pull-up-adv = <2>;
};
pins-clk {
pinmux = <PINMUX_GPIO29__FUNC_MSDC1_CLK>;
input-enable;
- mediatek,pull-down-adv = <10>;
+ mediatek,pull-down-adv = <2>;
};
};
@@ -652,13 +652,13 @@ pins-cmd-dat {
<PINMUX_GPIO30__FUNC_MSDC1_DAT3>;
drive-strength = <6>;
input-enable;
- mediatek,pull-up-adv = <10>;
+ mediatek,pull-up-adv = <2>;
};
pins-clk {
pinmux = <PINMUX_GPIO29__FUNC_MSDC1_CLK>;
drive-strength = <8>;
- mediatek,pull-down-adv = <10>;
+ mediatek,pull-down-adv = <2>;
input-enable;
};
};
diff --git a/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts b/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts
index dbdee604edab..7c3010889ae7 100644
--- a/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts
+++ b/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts
@@ -324,7 +324,7 @@ pins_cmd_dat {
pins_clk {
pinmux = <PINMUX_GPIO124__FUNC_MSDC0_CLK>;
drive-strength = <MTK_DRIVE_14mA>;
- mediatek,pull-down-adv = <10>;
+ mediatek,pull-down-adv = <2>;
};
pins_rst {
@@ -353,13 +353,13 @@ pins_cmd_dat {
pins_clk {
pinmux = <PINMUX_GPIO124__FUNC_MSDC0_CLK>;
drive-strength = <MTK_DRIVE_14mA>;
- mediatek,pull-down-adv = <10>;
+ mediatek,pull-down-adv = <2>;
};
pins_ds {
pinmux = <PINMUX_GPIO131__FUNC_MSDC0_DSL>;
drive-strength = <MTK_DRIVE_14mA>;
- mediatek,pull-down-adv = <10>;
+ mediatek,pull-down-adv = <2>;
};
pins_rst {
@@ -377,13 +377,13 @@ pins_cmd_dat {
<PINMUX_GPIO33__FUNC_MSDC1_DAT2>,
<PINMUX_GPIO30__FUNC_MSDC1_DAT3>;
input-enable;
- mediatek,pull-up-adv = <10>;
+ mediatek,pull-up-adv = <2>;
};
pins_clk {
pinmux = <PINMUX_GPIO29__FUNC_MSDC1_CLK>;
input-enable;
- mediatek,pull-down-adv = <10>;
+ mediatek,pull-down-adv = <2>;
};
pins_pmu {
@@ -401,13 +401,13 @@ pins_cmd_dat {
<PINMUX_GPIO30__FUNC_MSDC1_DAT3>;
drive-strength = <6>;
input-enable;
- mediatek,pull-up-adv = <10>;
+ mediatek,pull-up-adv = <2>;
};
pins_clk {
pinmux = <PINMUX_GPIO29__FUNC_MSDC1_CLK>;
drive-strength = <8>;
- mediatek,pull-down-adv = <10>;
+ mediatek,pull-down-adv = <2>;
input-enable;
};
};
--
2.47.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] arm64: dts: mediatek: mt8183: Fix out of range pull values
2025-07-22 17:11 [PATCH] arm64: dts: mediatek: mt8183: Fix out of range pull values Rob Herring (Arm)
@ 2025-07-23 8:16 ` AngeloGioacchino Del Regno
2025-09-03 1:50 ` Rob Herring
0 siblings, 1 reply; 4+ messages in thread
From: AngeloGioacchino Del Regno @ 2025-07-23 8:16 UTC (permalink / raw)
To: Rob Herring (Arm), Krzysztof Kozlowski, Conor Dooley,
Matthias Brugger, Enric Balletbo i Serra, Ben Ho, Fabien Parent
Cc: devicetree, linux-kernel, linux-arm-kernel, linux-mediatek
Il 22/07/25 19:11, Rob Herring (Arm) ha scritto:
> A value of 10 is not valid for "mediatek,pull-down-adv" and
> "mediatek,pull-up-adv" properties which have defined values of 0-3. It
> appears the "10" was written as a binary value. The driver only looks at
> the lowest 2 bits, so the value "10" decimal works out the same as if
> "2" was used.
>
> Fixes: cd894e274b74 ("arm64: dts: mt8183: Add krane-sku176 board")
> Fixes: 19b6403f1e2a ("arm64: dts: mt8183: add mt8183 pumpkin board")
> Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
> ---
> This is just a few of the warnings related to mt8183-pinctrl... Mediatek
> is #1 for DT warnings on arm64. And by #1, I mean worst. :( It would be
> nice to see some progress on fixing them. Otherwise, seeing new Mediatek
> bindings rather than fixing the existing stuff makes me grumpy.
>
Thanks for this fix.
You're absolutely right about this, let me check what I can do (and if I can get
some colleague(s) of mine to look at that while I'm away in August).
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] arm64: dts: mediatek: mt8183: Fix out of range pull values
2025-07-23 8:16 ` AngeloGioacchino Del Regno
@ 2025-09-03 1:50 ` Rob Herring
2025-09-03 4:10 ` Chen-Yu Tsai
0 siblings, 1 reply; 4+ messages in thread
From: Rob Herring @ 2025-09-03 1:50 UTC (permalink / raw)
To: AngeloGioacchino Del Regno
Cc: Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
Enric Balletbo i Serra, Ben Ho, Fabien Parent, devicetree,
linux-kernel, linux-arm-kernel, linux-mediatek
On Wed, Jul 23, 2025 at 3:16 AM AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com> wrote:
>
> Il 22/07/25 19:11, Rob Herring (Arm) ha scritto:
> > A value of 10 is not valid for "mediatek,pull-down-adv" and
> > "mediatek,pull-up-adv" properties which have defined values of 0-3. It
> > appears the "10" was written as a binary value. The driver only looks at
> > the lowest 2 bits, so the value "10" decimal works out the same as if
> > "2" was used.
> >
> > Fixes: cd894e274b74 ("arm64: dts: mt8183: Add krane-sku176 board")
> > Fixes: 19b6403f1e2a ("arm64: dts: mt8183: add mt8183 pumpkin board")
> > Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
> > ---
> > This is just a few of the warnings related to mt8183-pinctrl... Mediatek
> > is #1 for DT warnings on arm64. And by #1, I mean worst. :( It would be
> > nice to see some progress on fixing them. Otherwise, seeing new Mediatek
> > bindings rather than fixing the existing stuff makes me grumpy.
> >
>
> Thanks for this fix.
>
> You're absolutely right about this, let me check what I can do (and if I can get
> some colleague(s) of mine to look at that while I'm away in August).
>
> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Is this going to get applied and into linux-next sometime soon? Only
been like 6 weeks...
Rob
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] arm64: dts: mediatek: mt8183: Fix out of range pull values
2025-09-03 1:50 ` Rob Herring
@ 2025-09-03 4:10 ` Chen-Yu Tsai
0 siblings, 0 replies; 4+ messages in thread
From: Chen-Yu Tsai @ 2025-09-03 4:10 UTC (permalink / raw)
To: Rob Herring
Cc: AngeloGioacchino Del Regno, Krzysztof Kozlowski, Conor Dooley,
Matthias Brugger, Enric Balletbo i Serra, Ben Ho, Fabien Parent,
devicetree, linux-kernel, linux-arm-kernel, linux-mediatek
On Wed, Sep 3, 2025 at 9:53 AM Rob Herring <robh@kernel.org> wrote:
>
> On Wed, Jul 23, 2025 at 3:16 AM AngeloGioacchino Del Regno
> <angelogioacchino.delregno@collabora.com> wrote:
> >
> > Il 22/07/25 19:11, Rob Herring (Arm) ha scritto:
> > > A value of 10 is not valid for "mediatek,pull-down-adv" and
> > > "mediatek,pull-up-adv" properties which have defined values of 0-3. It
> > > appears the "10" was written as a binary value. The driver only looks at
> > > the lowest 2 bits, so the value "10" decimal works out the same as if
> > > "2" was used.
> > >
> > > Fixes: cd894e274b74 ("arm64: dts: mt8183: Add krane-sku176 board")
> > > Fixes: 19b6403f1e2a ("arm64: dts: mt8183: add mt8183 pumpkin board")
> > > Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
> > > ---
> > > This is just a few of the warnings related to mt8183-pinctrl... Mediatek
> > > is #1 for DT warnings on arm64. And by #1, I mean worst. :( It would be
> > > nice to see some progress on fixing them. Otherwise, seeing new Mediatek
> > > bindings rather than fixing the existing stuff makes me grumpy.
> > >
> >
> > Thanks for this fix.
> >
> > You're absolutely right about this, let me check what I can do (and if I can get
> > some colleague(s) of mine to look at that while I'm away in August).
> >
> > Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
>
> Is this going to get applied and into linux-next sometime soon? Only
> been like 6 weeks...
AFAIK Angelo is on vacation but should be back shortly in September.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-09-03 4:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-22 17:11 [PATCH] arm64: dts: mediatek: mt8183: Fix out of range pull values Rob Herring (Arm)
2025-07-23 8:16 ` AngeloGioacchino Del Regno
2025-09-03 1:50 ` Rob Herring
2025-09-03 4:10 ` Chen-Yu Tsai
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).