Skip to content

Commit cbe0e1d

Browse files
Satya Priya Kakitapallijprakash-qc
authored andcommitted
FROMLIST: dt-bindings: thermal: Add Qualcomm MBG thermal monitor support
Add bindings for the Qualcomm MBG (Master Bandgap) temperature alarm peripheral found on the PM8775 PMIC. Unlike the existing SPMI temp alarm peripheral, the MBG peripheral supports both hot and cold thresholdi monitoring across two programmable levels (LVL1 and LVL2), with interrupt status reported via a fault status register over SPMI. Link: https://lore.kernel.org/all/20260601-spmi-mbg-driver-v1-1-b4892b55a17f@oss.qualcomm.com/ Signed-off-by: Satya Priya Kakitapalli <quic_skakitap@quicinc.com> Co-developed-by: Sachin Gupta <sachin.gupta@oss.qualcomm.com> Signed-off-by: Sachin Gupta <sachin.gupta@oss.qualcomm.com>
1 parent 412150a commit cbe0e1d

2 files changed

Lines changed: 76 additions & 0 deletions

File tree

Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,10 @@ patternProperties:
193193
type: object
194194
$ref: /schemas/thermal/qcom,spmi-temp-alarm.yaml#
195195

196+
"^temperature-sensor@[0-9a-f]+$":
197+
type: object
198+
$ref: /schemas/thermal/qcom-spmi-mbg-tm.yaml#
199+
196200
"^typec@[0-9a-f]+$":
197201
type: object
198202
$ref: /schemas/usb/qcom,pmic-typec.yaml#
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/thermal/qcom-spmi-mbg-tm.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Qualcomm's SPMI PMIC MBG Thermal Monitoring
8+
9+
maintainers:
10+
- Jishnu Prakash <jishnu.prakash@oss.qualcomm.com>
11+
- Kamal Wadhwa <kamal.wadhwa@oss.qualcomm.com>
12+
13+
description:
14+
Qualcomm's MBG(Master Bandgap) temperature alarm monitors the die
15+
temperature and generates an interrupt if the PMIC die temperature is
16+
over a set of programmable temperature thresholds. It allows monitoring
17+
for both hot and cold, LVL1 and LVL2 thresholds, which makes it different
18+
from the existing temp alarm peripheral. The interrupt comes over SPMI
19+
and the MBG's fault status register gives details to understand whether
20+
it is a hot/cold and LVL1/LVL2 violation.
21+
22+
properties:
23+
compatible:
24+
const: qcom,pm8775-mbg-tm
25+
26+
reg:
27+
maxItems: 1
28+
29+
interrupts:
30+
maxItems: 1
31+
32+
io-channels:
33+
items:
34+
- description: ADC channel, which reports chip die temperature.
35+
36+
io-channel-names:
37+
items:
38+
- const: thermal
39+
40+
'#thermal-sensor-cells':
41+
const: 0
42+
43+
required:
44+
- compatible
45+
- reg
46+
- interrupts
47+
- io-channels
48+
- io-channel-names
49+
50+
allOf:
51+
- $ref: thermal-sensor.yaml#
52+
53+
unevaluatedProperties: false
54+
55+
examples:
56+
- |
57+
#include <dt-bindings/interrupt-controller/irq.h>
58+
59+
pmic {
60+
#address-cells = <1>;
61+
#size-cells = <0>;
62+
63+
temperature-sensor@d700 {
64+
compatible = "qcom,pm8775-mbg-tm";
65+
reg = <0xd700>;
66+
interrupts = <0x1 0xd7 0x0 IRQ_TYPE_EDGE_RISING>;
67+
io-channels = <&pm8775_adc 0x3>;
68+
io-channel-names = "thermal";
69+
#thermal-sensor-cells = <0>;
70+
};
71+
};
72+
...

0 commit comments

Comments
 (0)