Skip to contentSkip to conversation

ARM: dts: at91: sama5d2: Pass bootph-all to the PIT timer

PATCH In review Fabio Estevam 2 participants 4 messages Apr 3, 2025 – Apr 18, 2025 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: at91: sama5d2: Pass bootph-all to the PIT timer

From: Fabio Estevam <[email protected]>

The PIT timer needs to be available early in the SPL phase, otherwise SPL fails to boot and only prints:

Could not initialize timer (err -96)

Fix this problem by passing 'bootph-all' to the sama5d2 PIT node.

---
 arch/arm/dts/sama5d2.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm/dts/sama5d2.dtsi +1 -0
index 7b62fffb4ff..62191ff5d97 100644
@@ -778,6 +778,7 @@
 				compatible = "atmel,at91sam9260-pit";
 				reg = <0xf8048030 0x10>;
 				clocks = <&h32ck>;
+				bootph-all;
 			};
 
 			watchdog: watchdog@f8048040 {
Signature · 1 line
2.34.1
#1 lore raw

Hi Eugen,

Quoted 9 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

The PIT timer needs to be available early in the SPL phase, otherwise SPL fails to boot and only prints:

Could not initialize timer (err -96)

Fix this problem by passing 'bootph-all' to the sama5d2 PIT node.

Do you have any comments, please?

This allows SPL to work on sama5d27.

Thanks

#2 lore raw
Quoted 11 lines · Fabio Estevam

Hi Eugen,

Quoted 8 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

The PIT timer needs to be available early in the SPL phase, otherwise SPL fails to boot and only prints:

Could not initialize timer (err -96)

Quoted 7 lines
Quoted 1 line

Fix this problem by passing 'bootph-all' to the sama5d2 PIT node.

Do you have any comments, please?

This allows SPL to work on sama5d27.

Thanks

No, this looks good. I will apply it for 2025.07 or next, let's see what other patches I have and when the PR will be ready.

#3 lore raw
Quoted 16 lines · Eugen Hristev
Quoted 13 lines · Fabio Estevam

Hi Eugen,

Quoted 9 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

The PIT timer needs to be available early in the SPL phase, otherwise SPL fails to boot and only prints:

Could not initialize timer (err -96)

Fix this problem by passing 'bootph-all' to the sama5d2 PIT node.

Quoted 8 lines
Quoted 5 lines

Do you have any comments, please?

This allows SPL to work on sama5d27.

Thanks

No, this looks good. I will apply it for 2025.07 or next, let's see what other patches I have and when the PR will be ready.

Applied to u-boot-at91/master, thanks !