[PATCH v2 0/2] thermal: qcom: Add Qualcomm SPMI MBG thermal monitor support
From: Sachin Gupta
Date: Mon Jul 06 2026 - 04:31:25 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 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 | 11 +
drivers/thermal/qcom/Makefile | 1 +
drivers/thermal/qcom/qcom-spmi-mbg-tm.c | 256 +++++++++++++++++++++
5 files changed, 344 insertions(+)
---
base-commit: 2b763db0c2763d6bf73d7d3e69665222d1f377cf
change-id: 20260601-spmi-mbg-driver-582aab5aa6a6
Best regards,
--
Sachin Gupta <sachin.gupta@xxxxxxxxxxxxxxxx>