u-boot.lists.denx.de archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm: dts: mt7622: remove default pinctrl of uart0
@ 2022-07-13  3:16 Weijie Gao
  2022-07-25 21:22 ` Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Weijie Gao @ 2022-07-13  3:16 UTC (permalink / raw)
  To: u-boot; +Cc: GSS_MTK_Uboot_upstream, Daniel Golle, Weijie Gao

Currently u-boot running on mt7622 will print an warning log at beginning:
> serial_mtk serial@11002000: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19

It turns out that the pinctrl uclass can't work properly in board_f stage.

Since the uart0 is the default UART device used by bootrom, and will be
initialized in both bootrom and tf-a bl2. It's ok not to setup pinctrl for
uart0 in u-boot.

This patch removes the default pinctrl of uart0 to suppress the unwanted
warning.

Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
---
 arch/arm/dts/mt7622-bananapi-bpi-r64.dts | 2 --
 arch/arm/dts/mt7622-rfb.dts              | 2 --
 2 files changed, 4 deletions(-)

diff --git a/arch/arm/dts/mt7622-bananapi-bpi-r64.dts b/arch/arm/dts/mt7622-bananapi-bpi-r64.dts
index 4f2f04851d..2ac933a6ac 100644
--- a/arch/arm/dts/mt7622-bananapi-bpi-r64.dts
+++ b/arch/arm/dts/mt7622-bananapi-bpi-r64.dts
@@ -182,8 +182,6 @@
 };
 
 &uart0 {
-	pinctrl-names = "default";
-	pinctrl-0 = <&uart0_pins>;
 	status = "okay";
 };
 
diff --git a/arch/arm/dts/mt7622-rfb.dts b/arch/arm/dts/mt7622-rfb.dts
index c2f1ad2011..30a9137407 100644
--- a/arch/arm/dts/mt7622-rfb.dts
+++ b/arch/arm/dts/mt7622-rfb.dts
@@ -189,8 +189,6 @@
 };
 
 &uart0 {
-	pinctrl-names = "default";
-	pinctrl-0 = <&uart0_pins>;
 	status = "okay";
 };
 
-- 
2.17.1


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

* Re: [PATCH] arm: dts: mt7622: remove default pinctrl of uart0
  2022-07-13  3:16 [PATCH] arm: dts: mt7622: remove default pinctrl of uart0 Weijie Gao
@ 2022-07-25 21:22 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2022-07-25 21:22 UTC (permalink / raw)
  To: Weijie Gao; +Cc: u-boot, GSS_MTK_Uboot_upstream, Daniel Golle

[-- Attachment #1: Type: text/plain, Size: 701 bytes --]

On Wed, Jul 13, 2022 at 11:16:39AM +0800, Weijie Gao wrote:

> Currently u-boot running on mt7622 will print an warning log at beginning:
> > serial_mtk serial@11002000: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19
> 
> It turns out that the pinctrl uclass can't work properly in board_f stage.
> 
> Since the uart0 is the default UART device used by bootrom, and will be
> initialized in both bootrom and tf-a bl2. It's ok not to setup pinctrl for
> uart0 in u-boot.
> 
> This patch removes the default pinctrl of uart0 to suppress the unwanted
> warning.
> 
> Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>

Applied to u-boot/master, thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

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

end of thread, other threads:[~2022-07-25 21:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-13  3:16 [PATCH] arm: dts: mt7622: remove default pinctrl of uart0 Weijie Gao
2022-07-25 21:22 ` Tom Rini

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).