Skip to contentSkip to conversation

imx6sx-udoo-neo-basic: Introduce the u-boot.dtsi

PATCH In review Fabio Estevam 2 participants 4 messages Mar 22, 2023 – Mar 28, 2023

Subsystems (2)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/1 imx6sx-udoo-neo-basic: Introduce the u-boot.dtsi

From: Fabio Estevam <[email protected]>

After the conversion to DM_SERIAL in commit 01f372d8d62b ("udoo_neo:
Select DM_SERIAL and drop iomux board level init") the SPL log is gone and the U-Boot proper log becomes incomplete:

Core:  80 devices, 18 uclasses, devicetree: separate
MMC:   FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... OK
In:    serial@2020000
Out:   serial@2020000
Err:   serial@2020000
Net:   eth0: ethernet@2188000
Hit any key to stop autoboot:  0  

Introduce the u-boot.dtsi file that passes the u-boot,dm-pre-reloc properties to the relevant nodes so that UART can be used early in SPL.

With this change, the complete SPL and U-Boot messages are seen again.

---
 arch/arm/dts/imx6sx-udoo-neo-basic-u-boot.dtsi | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 arch/arm/dts/imx6sx-udoo-neo-basic-u-boot.dtsi
arch/arm/dts/imx6sx-udoo-neo-basic-u-boot.dtsi new file +17 -0
new file mode 100644
index 000000000000..cb9e83fde6b7
@@ -0,0 +1,17 @@
+// SPDX-License-Identifier: GPL-2.0+
+
+&soc {
+	u-boot,dm-pre-reloc;
+};
+
+&aips1 {
+	u-boot,dm-pre-reloc;
+};
+
+&pinctrl_uart1 {
+	u-boot,dm-pre-reloc;
+};
+
+&uart1 {
+	u-boot,dm-pre-reloc;
+};
Signature · 1 line
2.34.1
#1 lore raw
Quoted 18 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

After the conversion to DM_SERIAL in commit 01f372d8d62b ("udoo_neo:
Select DM_SERIAL and drop iomux board level init") the SPL log is gone and the U-Boot proper log becomes incomplete:

Core:  80 devices, 18 uclasses, devicetree: separate
MMC:   FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... OK
In:    serial@2020000
Out:   serial@2020000
Err:   serial@2020000
Net:   eth0: ethernet@2188000
Hit any key to stop autoboot:  0  

Introduce the u-boot.dtsi file that passes the u-boot,dm-pre-reloc properties to the relevant nodes so that UART can be used early in SPL.

Quoted 7 lines

With this change, the complete SPL and U-Boot messages are seen again.

---
 arch/arm/dts/imx6sx-udoo-neo-basic-u-boot.dtsi | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 arch/arm/dts/imx6sx-udoo-neo-basic-u-boot.dtsi

Is this for master? If so, OK, we'll pick it up. If not, NAK, these are all bootph- properties now, and need to go upstream too.

Signature · 1 line
Tom
author reviewer
#2 lore raw

Hi Tom,

Quoted 2 lines · Tom Rini

Is this for master? If so, OK, we'll pick it up. If not, NAK, these are all bootph- properties now, and need to go upstream too.

Yes, this is for master as it is a regression.

Thanks.

#3 lore raw
In reply to Fabio Estevam
Quoted 13 lines · Fabio Estevam

After the conversion to DM_SERIAL in commit 01f372d8d62b ("udoo_neo:
Select DM_SERIAL and drop iomux board level init") the SPL log is gone and the U-Boot proper log becomes incomplete:

Core:  80 devices, 18 uclasses, devicetree: separate
MMC:   FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... OK
In:    serial@2020000
Out:   serial@2020000
Err:   serial@2020000
Net:   eth0: ethernet@2188000
Hit any key to stop autoboot:  0
Quoted 1 line

[...]

Applied to u-boot/master, thanks!

Signature · 1 line
Tom