watchdog: qcom: report bootstatus on IPQ9574 and IPQ5332

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 <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Kathiravan Thirumoorthy <kathiravan.thirumoorthy@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260728-qcom_wdt_powerunder-v1-2-de8d9e964e7d@oss.qualcomm.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
Kathiravan Thirumoorthy 2026-07-28 16:28:03 +05:30 committed by Guenter Roeck
parent 0595f74ea1
commit 6a393b0ea3

View File

@ -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 },