[PATCH v3 0/2] thermal: qcom: Add Qualcomm SPMI MBG thermal monitor support

From: Sachin Gupta

Date: Wed Jul 22 2026 - 06:45:07 EST


This series adds support for Qualcomm MBG thermal monitoring.

Adding support for:
- DT bindings for the MBG thermal monitor peripheral on PM8775
- A new Qualcomm SPMI MBG thermal monitor driver under `drivers/thermal/qcom/`

The driver monitors die temperature alarms, handles the MBG interrupt on
upper-threshold violation, reads the fault status, and reports events to the
thermal framework.

RFC patch:
https://lore.kernel.org/all/qq3cggafexwpdrv46eqijxfmrdbqusl2vpbuswqmcvshqueaiw@r4mrmap4nwkt/

Signed-off-by: Satya Priya Kakitapalli <quic_skakitap@xxxxxxxxxxx>
Signed-off-by: Sachin Gupta <sachin.gupta@xxxxxxxxxxxxxxxx>
---
Changes in v3:
- Fix Kconfig description and update commit message. [Daniel]
- Link to v2: https://patch.msgid.link/20260706-spmi-mbg-driver-v2-0-f883ff1d8719@xxxxxxxxxxxxxxxx

Changes in v2:
- Fix locking, -ERANGE, enum check, and flag race. [Sashiko AI]
- Rewrap commit text, rename binding file to match compatible. [Krzysztof]
- Drop redundant comment, return -ERANGE, fix ISR locking. [Konrad]
- Link to v1: https://patch.msgid.link/20260601-spmi-mbg-driver-v1-0-b4892b55a17f@xxxxxxxxxxxxxxxx

---
Satya Priya Kakitapalli (2):
dt-bindings: thermal: Add Qualcomm MBG thermal monitor support
thermal: qcom: Add support for Qualcomm MBG thermal monitoring

.../devicetree/bindings/mfd/qcom,spmi-pmic.yaml | 4 +
.../bindings/thermal/qcom,pm8775-mbg-tm.yaml | 72 ++++++
drivers/thermal/qcom/Kconfig | 14 ++
drivers/thermal/qcom/Makefile | 1 +
drivers/thermal/qcom/qcom-spmi-mbg-tm.c | 256 +++++++++++++++++++++
5 files changed, 347 insertions(+)
---
base-commit: 3fe08b9796f36ef437ab9328e7dd1e5ff2d66603
change-id: 20260601-spmi-mbg-driver-582aab5aa6a6

Best regards,
--
Sachin Gupta <sachin.gupta@xxxxxxxxxxxxxxxx>