Skip to content

Commit acbba7f

Browse files
committed
Merge tag 'thermal-v6.18-rc1' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/thermal/linux
Merge updates of thermal drivers for 6.18-rc1 from Daniel Lezcano: "- Add the QCS615 compatible DT bindings for QCom platforms (Gaurav Kohli) - Support fallback trimming values when the fuse is empty in the R-Car driver (Marek Vasut) - Remove unneeded semicolon in the Mediatek LVTS driver (Jiapeng Chong) - Fix the LMH Kconfig option by selecting QCOM_SCM and take the opportunity to add the COMPILE_TEST option for the QCom's LMH feature (Dmitry Baryshkov) - Fix the missing includes and incorrect error message in the Qcom's LMH driver (Dmitry Baryshkov) - Fix comment typo and add the documentation in the Kconfig for the R-Car Gen3 and Gen4 (Marek Vasut) - Add Tegra114 SOCTHERM support (Svyatoslav Ryhel) - Rename the functions name in the driver to be consistent and generic with the different R-Car platform variants (Wolfram Sang) - Register the TI K3 J72xx bandgap sensor as a hwmon sensor too (Michael Walle) - Add and document the thermal sensor unit reporting the junction temperature of the RZ/G3S SoC (Claudiu Beznea) - Support the GRF in the Rockchip driver (Sebastian Reichel) - Add a temperature IIO sensor channel in the generic thermal ADC driver (Svyatoslav Ryhel) - Document the temperature sensor on the QCOM's Glymur platform (Manaf Meethalavalappu) - Add and document the thermal sensor unit reporting the junction temperature of the RZ/G3E SoC (John Madieu)" * tag 'thermal-v6.18-rc1' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/thermal/linux: (24 commits) dt-bindings: thermal: qcom-tsens: Document the Glymur temperature Sensor thermal/drivers/renesas/rzg3e: Add thermal driver for the Renesas RZ/G3E SoC dt-bindings: thermal: r9a09g047-tsu: Document the TSU unit thermal/drivers/thermal-generic-adc: Add temperature sensor channel dt-bindings: thermal: rockchip: Tighten grf requirements thermal/drivers/rockchip: Shut up GRF warning thermal/drivers/rockchip: Unify struct rockchip_tsadc_chip format thermal/drivers/renesas/rzg3s: Add thermal driver for the Renesas RZ/G3S SoC dt-bindings: thermal: r9a08g045-tsu: Document the TSU unit thermal/drivers/k3_j72xx_bandgap: Register sensors with hwmon thermal/drivers/rcar_gen3: Fix mapping SoCs to generic Gen4 entry thermal/drivers/tegra: Add Tegra114 specific SOCTHERM driver dt-bindings: thermal: add Tegra114 soctherm header thermal/drivers/tegra/soctherm-fuse: Prepare calibration for Tegra114 support dt-bindings: thermal: Document Tegra114 SOCTHERM Thermal Management System thermal/drivers/rcar_gen3: Document Gen4 support in Kconfig entry thermal/drivers/rcar_gen3: Fix comment typo drivers/thermal/qcom/lmh: Fix incorrect error message thermal/drivers/qcom/lmh: Add missing IRQ includes thermal/drivers/qcom: Make LMH select QCOM_SCM ...
2 parents b1793cd + 79428e6 commit acbba7f

25 files changed

Lines changed: 911 additions & 62 deletions

Documentation/devicetree/bindings/thermal/nvidia,tegra124-soctherm.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ description: The SOCTHERM IP block contains thermal sensors, support for
1818
properties:
1919
compatible:
2020
enum:
21+
- nvidia,tegra114-soctherm
2122
- nvidia,tegra124-soctherm
2223
- nvidia,tegra132-soctherm
2324
- nvidia,tegra210-soctherm
@@ -206,6 +207,7 @@ allOf:
206207
compatible:
207208
contains:
208209
enum:
210+
- nvidia,tegra114-soctherm
209211
- nvidia,tegra124-soctherm
210212
- nvidia,tegra210-soctherm
211213
- nvidia,tegra210b01-soctherm

Documentation/devicetree/bindings/thermal/qcom-tsens.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,13 @@ properties:
4949
- description: v2 of TSENS
5050
items:
5151
- enum:
52+
- qcom,glymur-tsens
5253
- qcom,milos-tsens
5354
- qcom,msm8953-tsens
5455
- qcom,msm8996-tsens
5556
- qcom,msm8998-tsens
5657
- qcom,qcm2290-tsens
58+
- qcom,qcs615-tsens
5759
- qcom,sa8255p-tsens
5860
- qcom,sa8775p-tsens
5961
- qcom,sar2130p-tsens
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/thermal/renesas,r9a08g045-tsu.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Renesas RZ/G3S Thermal Sensor Unit
8+
9+
description:
10+
The thermal sensor unit (TSU) measures the temperature(Tj) inside
11+
the LSI.
12+
13+
maintainers:
14+
- Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
15+
16+
$ref: thermal-sensor.yaml#
17+
18+
properties:
19+
compatible:
20+
const: renesas,r9a08g045-tsu
21+
22+
reg:
23+
maxItems: 1
24+
25+
clocks:
26+
items:
27+
- description: TSU module clock
28+
29+
power-domains:
30+
maxItems: 1
31+
32+
resets:
33+
items:
34+
- description: TSU module reset
35+
36+
io-channels:
37+
items:
38+
- description: ADC channel which reports the TSU temperature
39+
40+
io-channel-names:
41+
items:
42+
- const: tsu
43+
44+
"#thermal-sensor-cells":
45+
const: 0
46+
47+
required:
48+
- compatible
49+
- reg
50+
- clocks
51+
- power-domains
52+
- resets
53+
- io-channels
54+
- io-channel-names
55+
- '#thermal-sensor-cells'
56+
57+
additionalProperties: false
58+
59+
examples:
60+
- |
61+
#include <dt-bindings/clock/r9a08g045-cpg.h>
62+
63+
tsu: thermal@10059000 {
64+
compatible = "renesas,r9a08g045-tsu";
65+
reg = <0x10059000 0x1000>;
66+
clocks = <&cpg CPG_MOD R9A08G045_TSU_PCLK>;
67+
resets = <&cpg R9A08G045_TSU_PRESETN>;
68+
power-domains = <&cpg>;
69+
#thermal-sensor-cells = <0>;
70+
io-channels = <&adc 8>;
71+
io-channel-names = "tsu";
72+
};
73+
74+
thermal-zones {
75+
cpu-thermal {
76+
polling-delay-passive = <250>;
77+
polling-delay = <1000>;
78+
thermal-sensors = <&tsu>;
79+
80+
trips {
81+
sensor_crit: sensor-crit {
82+
temperature = <125000>;
83+
hysteresis = <1000>;
84+
type = "critical";
85+
};
86+
target: trip-point {
87+
temperature = <100000>;
88+
hysteresis = <1000>;
89+
type = "passive";
90+
};
91+
};
92+
};
93+
};
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/thermal/renesas,r9a09g047-tsu.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Renesas RZ/G3E Temperature Sensor Unit (TSU)
8+
9+
maintainers:
10+
- John Madieu <john.madieu.xa@bp.renesas.com>
11+
12+
description:
13+
The Temperature Sensor Unit (TSU) is an integrated thermal sensor that
14+
monitors the chip temperature on the Renesas RZ/G3E SoC. The TSU provides
15+
real-time temperature measurements for thermal management.
16+
17+
properties:
18+
compatible:
19+
const: renesas,r9a09g047-tsu
20+
21+
reg:
22+
maxItems: 1
23+
24+
clocks:
25+
maxItems: 1
26+
27+
resets:
28+
maxItems: 1
29+
30+
power-domains:
31+
maxItems: 1
32+
33+
interrupts:
34+
items:
35+
- description: Conversion complete interrupt signal (pulse)
36+
- description: Comparison result interrupt signal (level)
37+
38+
interrupt-names:
39+
items:
40+
- const: adi
41+
- const: adcmpi
42+
43+
"#thermal-sensor-cells":
44+
const: 0
45+
46+
renesas,tsu-trim:
47+
$ref: /schemas/types.yaml#/definitions/phandle-array
48+
items:
49+
- items:
50+
- description: phandle to system controller
51+
- description: offset of trim registers
52+
description:
53+
Phandle and offset to the system controller containing the TSU
54+
calibration trim values. The offset points to the first trim register
55+
(OTPTSU1TRMVAL0), with the second trim register (OTPTSU1TRMVAL1) located
56+
at offset + 4.
57+
58+
required:
59+
- compatible
60+
- reg
61+
- clocks
62+
- resets
63+
- power-domains
64+
- interrupts
65+
- interrupt-names
66+
- "#thermal-sensor-cells"
67+
- renesas,tsu-trim
68+
69+
additionalProperties: false
70+
71+
examples:
72+
- |
73+
#include <dt-bindings/clock/renesas,r9a09g047-cpg.h>
74+
#include <dt-bindings/interrupt-controller/arm-gic.h>
75+
76+
thermal-sensor@14002000 {
77+
compatible = "renesas,r9a09g047-tsu";
78+
reg = <0x14002000 0x1000>;
79+
clocks = <&cpg CPG_MOD 0x10a>;
80+
resets = <&cpg 0xf8>;
81+
power-domains = <&cpg>;
82+
interrupts = <GIC_SPI 250 IRQ_TYPE_EDGE_RISING>,
83+
<GIC_SPI 251 IRQ_TYPE_LEVEL_HIGH>;
84+
interrupt-names = "adi", "adcmpi";
85+
#thermal-sensor-cells = <0>;
86+
renesas,tsu-trim = <&sys 0x330>;
87+
};

Documentation/devicetree/bindings/thermal/rockchip-thermal.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,21 @@ required:
119119
- resets
120120

121121
allOf:
122+
- if:
123+
properties:
124+
compatible:
125+
contains:
126+
enum:
127+
- rockchip,px30-tsadc
128+
- rockchip,rk3366-tsadc
129+
- rockchip,rk3399-tsadc
130+
- rockchip,rk3568-tsadc
131+
then:
132+
required:
133+
- rockchip,grf
134+
else:
135+
properties:
136+
rockchip,grf: false
122137
- if:
123138
not:
124139
properties:

MAINTAINERS

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21568,6 +21568,20 @@ S: Maintained
2156821568
F: Documentation/devicetree/bindings/iio/potentiometer/renesas,x9250.yaml
2156921569
F: drivers/iio/potentiometer/x9250.c
2157021570

21571+
RENESAS RZ/G3S THERMAL SENSOR UNIT DRIVER
21572+
M: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
21573+
L: linux-pm@vger.kernel.org
21574+
S: Maintained
21575+
F: Documentation/devicetree/bindings/thermal/renesas,r9a08g045-tsu.yaml
21576+
F: drivers/thermal/renesas/rzg3s_thermal.c
21577+
21578+
RENESAS RZ/G3E THERMAL SENSOR UNIT DRIVER
21579+
M: John Madieu <john.madieu.xa@bp.renesas.com>
21580+
L: linux-pm@vger.kernel.org
21581+
S: Maintained
21582+
F: Documentation/devicetree/bindings/thermal/renesas,r9a09g047-tsu.yaml
21583+
F: drivers/thermal/renesas/rzg3e_thermal.c
21584+
2157121585
RESET CONTROLLER FRAMEWORK
2157221586
M: Philipp Zabel <p.zabel@pengutronix.de>
2157321587
S: Maintained

drivers/thermal/k3_j72xx_bandgap.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
#include <linux/delay.h>
2121
#include <linux/slab.h>
2222

23+
#include "thermal_hwmon.h"
24+
2325
#define K3_VTM_DEVINFO_PWR0_OFFSET 0x4
2426
#define K3_VTM_DEVINFO_PWR0_TEMPSENS_CT_MASK 0xf0
2527
#define K3_VTM_TMPSENS0_CTRL_OFFSET 0x300
@@ -513,6 +515,8 @@ static int k3_j72xx_bandgap_probe(struct platform_device *pdev)
513515
ret = PTR_ERR(ti_thermal);
514516
goto err_free_ref_table;
515517
}
518+
519+
devm_thermal_add_hwmon_sysfs(bgp->dev, ti_thermal);
516520
}
517521

518522
platform_set_drvdata(pdev, bgp);

drivers/thermal/mediatek/lvts_thermal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ static int lvts_sensor_init(struct device *dev, struct lvts_ctrl *lvts_ctrl,
639639

640640
lvts_sensor[i].low_thresh = INT_MIN;
641641
lvts_sensor[i].high_thresh = INT_MIN;
642-
};
642+
}
643643

644644
lvts_ctrl->valid_sensor_mask = lvts_ctrl_data->valid_sensor_mask;
645645

drivers/thermal/qcom/Kconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ config QCOM_SPMI_TEMP_ALARM
3434

3535
config QCOM_LMH
3636
tristate "Qualcomm Limits Management Hardware"
37-
depends on ARCH_QCOM && QCOM_SCM
37+
depends on ARCH_QCOM || COMPILE_TEST
38+
select QCOM_SCM
3839
help
3940
This enables initialization of Qualcomm limits management
4041
hardware(LMh). LMh allows for hardware-enforced mitigation for cpus based on

drivers/thermal/qcom/lmh.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
*/
66
#include <linux/module.h>
77
#include <linux/interrupt.h>
8+
#include <linux/irq.h>
9+
#include <linux/irqdesc.h>
810
#include <linux/irqdomain.h>
911
#include <linux/err.h>
1012
#include <linux/platform_device.h>
@@ -204,7 +206,7 @@ static int lmh_probe(struct platform_device *pdev)
204206
ret = qcom_scm_lmh_dcvsh(LMH_SUB_FN_THERMAL, LMH_TH_LOW_THRESHOLD, temp_low,
205207
LMH_NODE_DCVS, node_id, 0);
206208
if (ret) {
207-
dev_err(dev, "Error setting thermal ARM threshold%d\n", ret);
209+
dev_err(dev, "Error setting thermal LOW threshold%d\n", ret);
208210
return ret;
209211
}
210212

0 commit comments

Comments
 (0)