UART pinctrl for serial is typically applied multiple times:
- in external TPL
- in SPL using pinctrl from DT
- in pre-reloc phase using pinctrl from DT
- after relocation using pinctrl from DT

Skip including UART pinctrl for the pre-reloc phase to save time during
boot. On a Radxa ROCK Pi S this reduce boot time by ~80 ms.

After this a warning may be shown with LOGLEVEL=5 (or higher), it is
safe to ignore this warning as device probe is successful even when
pinctrl cannot be applied:

  ns16550_serial serial@ff0a0000: pinctrl_select_state_full: 
uclass_get_device_by_phandle_id: err=-19

Signed-off-by: Jonas Karlman <jo...@kwiboo.se>
---
 arch/arm/dts/rk3308-evb-u-boot.dtsi       | 3 ++-
 arch/arm/dts/rk3308-roc-cc-u-boot.dtsi    | 3 ++-
 arch/arm/dts/rk3308-rock-pi-s-u-boot.dtsi | 3 ++-
 arch/arm/dts/rk3308-rock-s0-u-boot.dtsi   | 3 ++-
 4 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/arch/arm/dts/rk3308-evb-u-boot.dtsi 
b/arch/arm/dts/rk3308-evb-u-boot.dtsi
index 007a69f9a60e..ce826667dcc2 100644
--- a/arch/arm/dts/rk3308-evb-u-boot.dtsi
+++ b/arch/arm/dts/rk3308-evb-u-boot.dtsi
@@ -10,5 +10,6 @@
 };
 
 &uart4_xfer {
-       bootph-all;
+       bootph-pre-sram;
+       bootph-pre-ram;
 };
diff --git a/arch/arm/dts/rk3308-roc-cc-u-boot.dtsi 
b/arch/arm/dts/rk3308-roc-cc-u-boot.dtsi
index 3e01e7af6113..72b6f223838b 100644
--- a/arch/arm/dts/rk3308-roc-cc-u-boot.dtsi
+++ b/arch/arm/dts/rk3308-roc-cc-u-boot.dtsi
@@ -29,7 +29,8 @@
 };
 
 &uart2m0_xfer {
-       bootph-all;
+       bootph-pre-sram;
+       bootph-pre-ram;
 };
 
 &vcc_sd {
diff --git a/arch/arm/dts/rk3308-rock-pi-s-u-boot.dtsi 
b/arch/arm/dts/rk3308-rock-pi-s-u-boot.dtsi
index ff5bab316a34..3059a0246086 100644
--- a/arch/arm/dts/rk3308-rock-pi-s-u-boot.dtsi
+++ b/arch/arm/dts/rk3308-rock-pi-s-u-boot.dtsi
@@ -14,7 +14,8 @@
 };
 
 &uart0_xfer {
-       bootph-all;
+       bootph-pre-sram;
+       bootph-pre-ram;
 };
 
 &vcc5v0_otg {
diff --git a/arch/arm/dts/rk3308-rock-s0-u-boot.dtsi 
b/arch/arm/dts/rk3308-rock-s0-u-boot.dtsi
index 84ca2ee0d5fb..dd4cb8660b8d 100644
--- a/arch/arm/dts/rk3308-rock-s0-u-boot.dtsi
+++ b/arch/arm/dts/rk3308-rock-s0-u-boot.dtsi
@@ -13,7 +13,8 @@
 };
 
 &uart0_xfer {
-       bootph-all;
+       bootph-pre-sram;
+       bootph-pre-ram;
 };
 
 &vdd_core {
-- 
2.45.2

Reply via email to