[PATCH 2/2] watchdog: qcom: report bootstatus on IPQ9574 and IPQ5332
Kathiravan Thirumoorthy <[email protected]> Tue, 28 Jul 2026 16:28:03 +0530
| Newsgroups | org.kernel.vger.linux-watchdog,org.kernel.vger.linux-arm-msm,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
Report bootstatus on IPQ5332 and IPQ9574. These SoCs use different restart-reason values from IPQ5424 for watchdog reset and powerunder reset events, so add separate match data for them and use it when decoding the restart reason. Reviewed-by: Konrad Dybcio <[email protected]> Signed-off-by: Kathiravan Thirumoorthy <[email protected]> --- drivers/watchdog/qcom-wdt.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/watchdog/qcom-wdt.c b/drivers/watchdog/qcom-wdt.c index 8e1fa1347343..a425902b9f68 100644 --- a/drivers/watchdog/qcom-wdt.c +++ b/drivers/watchdog/qcom-wdt.c @@ -194,6 +194,14 @@ static const struct qcom_wdt_match_data match_data_ipq5424 = { .powerunder_reason_val = 1, }; +static const struct qcom_wdt_match_data match_data_ipq9574 = { + .offset = reg_offset_data_kpss, + .pretimeout = true, + .max_tick_count = 0xFFFFFU, + .wdt_reason_val = 1, + .powerunder_reason_val = 32, +}; + static const struct qcom_wdt_match_data match_data_kpss = { .offset = reg_offset_data_kpss, .pretimeout = true, @@ -374,7 +382,9 @@ static const struct dev_pm_ops qcom_wdt_pm_ops = { }; static const struct of_device_id qcom_wdt_of_table[] = { + { .compatible = "qcom,apss-wdt-ipq5332", .data = &match_data_ipq9574 }, { .compatible = "qcom,apss-wdt-ipq5424", .data = &match_data_ipq5424 }, + { .compatible = "qcom,apss-wdt-ipq9574", .data = &match_data_ipq9574 }, { .compatible = "qcom,kpss-timer", .data = &match_data_apcs_tmr }, { .compatible = "qcom,scss-timer", .data = &match_data_apcs_tmr }, { .compatible = "qcom,kpss-wdt", .data = &match_data_kpss }, -- 2.34.1