mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-02-28 02:34:09 +00:00
uboot-mediatek: mt7622: suppress unwanted pinctrl warning
Import patch which removes the default pinctrl of uart0 to suppress the unwanted warning. Apply also to downstream boards. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
parent
d691625ec4
commit
512e76967f
@ -0,0 +1,45 @@
|
|||||||
|
From a3ba6adb70c91ec3b9312c3a025faa44acd39cfa Mon Sep 17 00:00:00 2001
|
||||||
|
From: Weijie Gao <weijie.gao@mediatek.com>
|
||||||
|
Date: Wed, 13 Jul 2022 11:16:39 +0800
|
||||||
|
Subject: [PATCH] arm: dts: mt7622: remove default pinctrl of uart0
|
||||||
|
|
||||||
|
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(-)
|
||||||
|
|
||||||
|
--- 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";
|
||||||
|
};
|
||||||
|
|
||||||
|
--- 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";
|
||||||
|
};
|
||||||
|
|
@ -139,7 +139,7 @@
|
|||||||
+CONFIG_USB_STORAGE=y
|
+CONFIG_USB_STORAGE=y
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/arch/arm/dts/mt7622-linksys-e8450-ubi.dts
|
+++ b/arch/arm/dts/mt7622-linksys-e8450-ubi.dts
|
||||||
@@ -0,0 +1,195 @@
|
@@ -0,0 +1,193 @@
|
||||||
+// SPDX-License-Identifier: GPL-2.0
|
+// SPDX-License-Identifier: GPL-2.0
|
||||||
+/*
|
+/*
|
||||||
+ * Copyright (c) 2019 MediaTek Inc.
|
+ * Copyright (c) 2019 MediaTek Inc.
|
||||||
@ -302,8 +302,6 @@
|
|||||||
+};
|
+};
|
||||||
+
|
+
|
||||||
+&uart0 {
|
+&uart0 {
|
||||||
+ pinctrl-names = "default";
|
|
||||||
+ pinctrl-0 = <&uart0_pins>;
|
|
||||||
+ status = "okay";
|
+ status = "okay";
|
||||||
+};
|
+};
|
||||||
+
|
+
|
||||||
|
@ -145,7 +145,7 @@
|
|||||||
+CONFIG_SPI_FLASH_USE_4K_SECTORS=y
|
+CONFIG_SPI_FLASH_USE_4K_SECTORS=y
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/arch/arm/dts/mt7622-ubnt-unifi-6-lr.dts
|
+++ b/arch/arm/dts/mt7622-ubnt-unifi-6-lr.dts
|
||||||
@@ -0,0 +1,189 @@
|
@@ -0,0 +1,187 @@
|
||||||
+// SPDX-License-Identifier: GPL-2.0
|
+// SPDX-License-Identifier: GPL-2.0
|
||||||
+/*
|
+/*
|
||||||
+ * Copyright (c) 2019 MediaTek Inc.
|
+ * Copyright (c) 2019 MediaTek Inc.
|
||||||
@ -299,8 +299,6 @@
|
|||||||
+};
|
+};
|
||||||
+
|
+
|
||||||
+&uart0 {
|
+&uart0 {
|
||||||
+ pinctrl-names = "default";
|
|
||||||
+ pinctrl-0 = <&uart0_pins>;
|
|
||||||
+ status = "okay";
|
+ status = "okay";
|
||||||
+};
|
+};
|
||||||
+
|
+
|
||||||
|
Loading…
Reference in New Issue
Block a user