]> www.infradead.org Git - users/jedix/linux-maple.git/commit
clk: en7523: Fix wrong BUS clock for EN7581
authorChristian Marangi <ansuelsmth@gmail.com>
Sat, 16 Nov 2024 10:56:53 +0000 (11:56 +0100)
committerStephen Boyd <sboyd@kernel.org>
Tue, 3 Dec 2024 22:52:35 +0000 (14:52 -0800)
commit2eb75f86d52565367211c51334d15fe672633085
treeff0df7cdb12d028c65bff0a7b85f72407e838a41
parent5ae1a43486fb3febd5ce78da13eb354f16d049e0
clk: en7523: Fix wrong BUS clock for EN7581

The Documentation for EN7581 had a typo and still referenced the EN7523
BUS base source frequency. This was in conflict with a different page in
the Documentration that state that the BUS runs at 300MHz (600MHz source
with divisor set to 2) and the actual watchdog that tick at half the BUS
clock (150MHz). This was verified with the watchdog by timing the
seconds that the system takes to reboot (due too watchdog) and by
operating on different values of the BUS divisor.

The correct values for source of BUS clock are 600MHz and 540MHz.

This was also confirmed by Airoha.

Cc: stable@vger.kernel.org
Fixes: 66bc47326ce2 ("clk: en7523: Add EN7581 support")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Link: https://lore.kernel.org/r/20241116105710.19748-1-ansuelsmth@gmail.com
Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-en7523.c