diff options
author | Daniel Golle <daniel@makrotopia.org> | 2022-09-03 03:53:56 +0100 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2022-09-03 03:55:34 +0100 |
commit | 512e76967f36163df324fdfa93742c82161b8499 (patch) | |
tree | fb0007c7c2428cadf1bd9868fec477b23f22a4d0 /package/boot/uboot-mediatek/001-mtk-0100-arm-dts-mt7622-remove-default-pinctrl-of-uart0.patch | |
parent | d691625ec4aabb6847063bb559a7c5053e7e7b94 (diff) | |
download | upstream-512e76967f36163df324fdfa93742c82161b8499.tar.gz upstream-512e76967f36163df324fdfa93742c82161b8499.tar.bz2 upstream-512e76967f36163df324fdfa93742c82161b8499.zip |
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>
Diffstat (limited to 'package/boot/uboot-mediatek/001-mtk-0100-arm-dts-mt7622-remove-default-pinctrl-of-uart0.patch')
-rw-r--r-- | package/boot/uboot-mediatek/001-mtk-0100-arm-dts-mt7622-remove-default-pinctrl-of-uart0.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/package/boot/uboot-mediatek/001-mtk-0100-arm-dts-mt7622-remove-default-pinctrl-of-uart0.patch b/package/boot/uboot-mediatek/001-mtk-0100-arm-dts-mt7622-remove-default-pinctrl-of-uart0.patch new file mode 100644 index 0000000000..603896f260 --- /dev/null +++ b/package/boot/uboot-mediatek/001-mtk-0100-arm-dts-mt7622-remove-default-pinctrl-of-uart0.patch @@ -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"; + }; + |