Skip to contentSkip to conversation

ARM: dts: imxrt1050-evk: set gpt1 as tick-timer for u-boot

PATCH New Giulio Benetti 1 participant 4 messages Apr 7, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 13/16 ARM: dts: imxrt1050-evk: set gpt1 as tick-timer for u-boot

---
 arch/arm/dts/imxrt1050-evk.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm/dts/imxrt1050-evk.dts +1 -0
index e592330332..6d21f2b738 100644
@@ -16,6 +16,7 @@
 	chosen {
 		bootargs = "root=/dev/ram";
 		stdout-path = "serial0:115200n8";
+		tick-timer = &gpt1;
 	};
 
 	memory {
Signature · 1 line
2.25.1
#1 lore raw

PATCH 14/16 ARM: dts: imxrt1050-evk-u-boot: make gpt1 present for SPL

---
 arch/arm/dts/imxrt1050-evk-u-boot.dtsi | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/dts/imxrt1050-evk-u-boot.dtsi +4 -0
index fb4f7f6f9d..a4b50f0bb2 100644
@@ -10,6 +10,10 @@
 	};
 };
 
+&gpt1 {
+	u-boot,dm-spl;
+};
+
 &lpuart1 { /* console */
 	u-boot,dm-spl;
 };
Signature · 1 line
2.25.1
#2 lore raw

PATCH 15/16 ARM: dts: imxrt1050-evk: add device_type = "memory" to memory node

In reply to Giulio Benetti

Now device_type = "memory" is mandatory to allow u-boot to read memory node, so let's add it to memory node.

---
 arch/arm/dts/imxrt1050-evk.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm/dts/imxrt1050-evk.dts +1 -0
index 6d21f2b738..2052d4eb4e 100644
@@ -20,6 +20,7 @@
 	};
 
 	memory {
+		device_type = "memory";
 		reg = <0x80000000 0x2000000>;
 	};
 };
Signature · 1 line
2.25.1
#3 lore raw

PATCH 16/16 configs: imxrt1050-evk: enable imx gpt timer as tick-timer

In reply to Giulio Benetti
---
 configs/imxrt1050-evk_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/imxrt1050-evk_defconfig +1 -0
index f639ea7623..e74473511d 100644
@@ -65,6 +65,7 @@ CONFIG_IMXRT_SDRAM=y
 CONFIG_FSL_LPUART=y
 CONFIG_TIMER=y
 CONFIG_SPL_TIMER=y
+CONFIG_IMX_GPT_TIMER=y
 CONFIG_DM_VIDEO=y
 CONFIG_BACKLIGHT_GPIO=y
 CONFIG_SYS_WHITE_ON_BLACK=y
Signature · 1 line
2.25.1