Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

watchdog: qcom: introduce the device data for IPQ5424 watchdog device

To retrieve the restart reason from IMEM, certain device specific data
like IMEM compatible to lookup, location of IMEM to read, etc should be
defined. To achieve that, introduce the separate device data for IPQ5424
and add the required details subsequently.

Signed-off-by: Kathiravan Thirumoorthy <kathiravan.thirumoorthy@oss.qualcomm.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20250502-wdt_reset_reason-v3-3-b2dc7ace38ca@oss.qualcomm.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>

authored by

Kathiravan Thirumoorthy and committed by
Wim Van Sebroeck
1aea3e1e f55937e4

+7
+7
drivers/watchdog/qcom-wdt.c
··· 181 181 .max_tick_count = 0x10000000U, 182 182 }; 183 183 184 + static const struct qcom_wdt_match_data match_data_ipq5424 = { 185 + .offset = reg_offset_data_kpss, 186 + .pretimeout = true, 187 + .max_tick_count = 0xFFFFFU, 188 + }; 189 + 184 190 static const struct qcom_wdt_match_data match_data_kpss = { 185 191 .offset = reg_offset_data_kpss, 186 192 .pretimeout = true, ··· 328 322 }; 329 323 330 324 static const struct of_device_id qcom_wdt_of_table[] = { 325 + { .compatible = "qcom,apss-wdt-ipq5424", .data = &match_data_ipq5424 }, 331 326 { .compatible = "qcom,kpss-timer", .data = &match_data_apcs_tmr }, 332 327 { .compatible = "qcom,scss-timer", .data = &match_data_apcs_tmr }, 333 328 { .compatible = "qcom,kpss-wdt", .data = &match_data_kpss },