Cadence watchdog HW supports prescaler values of 8, 64, 512 and 4096, currently only 512 and 4096 are used by driver. This series adds support to select prescaler values of 8 and 64 for lower input clock frequencies. Changes v3: - Rebased on v5.2 - Move entire clock init block earlier in probe - Add check for clock rate not being 0 - Add clock rate in error message Changes v2: - Add calculation of actual min/max timeout values - Validate input clock frequencies to not allow frequencies that would result in timeout granularity of > 1 second. Tomas Melin (4): watchdog: cadence_wdt: Move clock detection eariler in probe watchdog: cadence_wdt: Calculate actual timeout limits watchdog: cadence_wdt: Group struct member init statements watchdog: cadence_wdt: Support all available prescaler values drivers/watchdog/cadence_wdt.c | 65 ++++++++++++++++++++-------------- 1 file changed, 38 insertions(+), 27 deletions(-) -- 2.17.2