[PATCH 0/2] AM64: Tick timer fixes

Patch 1 switches AM64 to use GTC as system timer at A53 SPL/U-boot stage as done in other TI K3 platforms
Patch 2 corrects DM timer freq to be 200MHz (used at R5 SPL stage)
Vignesh Raghavendra (2): configs: am64x_evm_a53_defconfig: Switch to GTC as tick timer ARM: dts: k3-am642: Fix correct timer frequency
arch/arm/dts/k3-am642-evm-u-boot.dtsi | 2 +- arch/arm/dts/k3-am642-sk-u-boot.dtsi | 2 +- configs/am64x_evm_a53_defconfig | 3 --- 3 files changed, 2 insertions(+), 5 deletions(-)

GTC is to be used as tick timer for A53 SPL/U-Boot, but currently AM64 ends up using DM timer as driver is enabled in the config, drop OMAP DM Timer related configs so that GTC is used by default.
Signed-off-by: Vignesh Raghavendra vigneshr@ti.com --- configs/am64x_evm_a53_defconfig | 3 --- 1 file changed, 3 deletions(-)
diff --git a/configs/am64x_evm_a53_defconfig b/configs/am64x_evm_a53_defconfig index 7397436def..bceb35f5ec 100644 --- a/configs/am64x_evm_a53_defconfig +++ b/configs/am64x_evm_a53_defconfig @@ -135,9 +135,6 @@ CONFIG_CADENCE_QSPI=y CONFIG_SYSRESET=y CONFIG_SPL_SYSRESET=y CONFIG_SYSRESET_TI_SCI=y -CONFIG_TIMER=y -CONFIG_SPL_TIMER=y -CONFIG_OMAP_TIMER=y CONFIG_USB=y CONFIG_DM_USB_GADGET=y CONFIG_SPL_DM_USB_GADGET=y

Timer0 runs at 200MHz,and the clock-frequency defined in DT appears is incorrect.
Signed-off-by: Vignesh Raghavendra vigneshr@ti.com --- arch/arm/dts/k3-am642-evm-u-boot.dtsi | 2 +- arch/arm/dts/k3-am642-sk-u-boot.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/dts/k3-am642-evm-u-boot.dtsi b/arch/arm/dts/k3-am642-evm-u-boot.dtsi index 03688a51a3..0c2d973409 100644 --- a/arch/arm/dts/k3-am642-evm-u-boot.dtsi +++ b/arch/arm/dts/k3-am642-evm-u-boot.dtsi @@ -16,7 +16,7 @@ compatible = "ti,omap5430-timer"; reg = <0x0 0x2400000 0x0 0x80>; ti,timer-alwon; - clock-frequency = <250000000>; + clock-frequency = <200000000>; u-boot,dm-spl; }; }; diff --git a/arch/arm/dts/k3-am642-sk-u-boot.dtsi b/arch/arm/dts/k3-am642-sk-u-boot.dtsi index e5c26b8326..afe5baba8c 100644 --- a/arch/arm/dts/k3-am642-sk-u-boot.dtsi +++ b/arch/arm/dts/k3-am642-sk-u-boot.dtsi @@ -20,7 +20,7 @@ compatible = "ti,omap5430-timer"; reg = <0x0 0x2400000 0x0 0x80>; ti,timer-alwon; - clock-frequency = <250000000>; + clock-frequency = <200000000>; u-boot,dm-spl; }; };

On 14:50-20220307, Vignesh Raghavendra wrote:
Patch 1 switches AM64 to use GTC as system timer at A53 SPL/U-boot stage as done in other TI K3 platforms
Minor nuance clarification: We don't use System timer (aka GTC) directly. System timer[1] feeds the armv8 per cpu timer[2] - and the per-cpu timer is what we use.
Will be good to fixup the commit messages and $subject accordingly.
Patch 2 corrects DM timer freq to be 200MHz (used at R5 SPL stage)
Vignesh Raghavendra (2): configs: am64x_evm_a53_defconfig: Switch to GTC as tick timer ARM: dts: k3-am642: Fix correct timer frequency
arch/arm/dts/k3-am642-evm-u-boot.dtsi | 2 +- arch/arm/dts/k3-am642-sk-u-boot.dtsi | 2 +- configs/am64x_evm_a53_defconfig | 3 --- 3 files changed, 2 insertions(+), 5 deletions(-)
-- 2.35.1
[1] https://developer.arm.com/documentation/102379/0000/System-Counter?lang=en [2] https://developer.arm.com/documentation/den0024/a/Multi-core-processors/Mult...
participants (2)
-
Nishanth Menon
-
Vignesh Raghavendra