arm64: dts: ti: k3-j784s4-main: Align watchdog clocks
authorEric Chanudet <echanude@redhat.com>
Mon, 5 Aug 2024 17:42:51 +0000 (13:42 -0400)
committerNishanth Menon <nm@ti.com>
Wed, 28 Aug 2024 17:15:50 +0000 (12:15 -0500)
commit549833b697534a6f61840941b7c847669cfd77fa
treeb67d64b73e497402fbe8a9663b085477de901b96
parent1a314099b7559690fe23cdf3300dfff6e830ecb1
arm64: dts: ti: k3-j784s4-main: Align watchdog clocks

assigned-clock sets DEV_RTIx_RTI_CLK(id:0) whereas clocks sets
DEV_RTIx_RTI_CLK_PARENT_GLUELOGIC_HFOSC0_CLKOUT(id:1)[1]. This does not
look right, the timers in the driver assume a max frequency of 32kHz for
the heartbeat (HFOSC0 is 19.2MHz on j784s4-evm).

With this change, WDIOC_GETTIMELEFT return coherent time left
(DEFAULT_HEARTBEAT=60, reports 60s upon opening the cdev).

[1] https://software-dl.ti.com/tisci/esd/latest/5_soc_doc/j784s4/clocks.html#clocks-for-rti0-device

Fixes: caae599de8c6 ("arm64: dts: ti: k3-j784s4-main: Add the main domain watchdog instances")
Suggested-by: Andrew Halaney <ahalaney@redhat.com>
Signed-off-by: Eric Chanudet <echanude@redhat.com>
Tested-by: Andrew Halaney <ahalaney@redhat.com>
Tested-by: Udit Kumar <u-kumar1@ti.com>
Link: https://lore.kernel.org/r/20240805174330.2132717-2-echanude@redhat.com
Signed-off-by: Nishanth Menon <nm@ti.com>
arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi