Skip to contentSkip to conversation

powerpc: DTS: mpc8313erdb: Add timer@*/clock-frequency properties

PATCH RESEND New J. Neuschäfer 1 participant 1 message Mar 3

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

PATCH RESEND 1/1 powerpc: DTS: mpc8313erdb: Add timer@*/clock-frequency properties

The recent formalization of the fsl,gtm schema has shown that mpc8313erdb.dts doesn't provide the clock-frequency property on timer nodes. A few different expectations collide here:

- Both the binding and the driver for the Freescale global timer module (GTM) have always required clock-frequency, since their addition in 2008 (v2.6.26-rc5-236-g83ff9dcf375c41).
- mpc8313erdb.dts never had the timer@*/clock-frequency property, since the timer nodes were added in 2008 (v2.6.26-3343-g574366128db29e)

I suspect the way this worked was that the bootloader filled these values when booting on an MPC8313 board.

---
 arch/powerpc/boot/dts/mpc8313erdb.dts | 2 ++
 1 file changed, 2 insertions(+)
arch/powerpc/boot/dts/mpc8313erdb.dts +2 -0
index 09508b4c8c7309..0bddc3be9e62f8 100644
@@ -308,6 +308,7 @@ gtm1: timer@500 {
 			reg = <0x500 0x100>;
 			interrupts = <90 8 78 8 84 8 72 8>;
 			interrupt-parent = <&ipic>;
+			clock-frequency = <0>; /* filled by bootloader */
 		};
 
 		timer@600 {
@@ -315,6 +316,7 @@ timer@600 {
 			reg = <0x600 0x100>;
 			interrupts = <91 8 79 8 85 8 73 8>;
 			interrupt-parent = <&ipic>;
+			clock-frequency = <0>; /* filled by bootloader */
 		};
 	};
 

---
base-commit: 9448598b22c50c8a5bb77a9103e2d49f134c9578
change-id: 20250625-timer-clock-e03fa9e835c8

Best regards,

Signature · 1 line
J. Neuschäfer <[email protected]>