Skip to content

Commit 607218d

Browse files
committed
Merge tag 'thermal-v6.7-rc1' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/thermal/linux
Merge thermal control (ARM drivers mostly) updates for 6.7-rc1 from Daniel Lezcano: "- Add support for Mediatek LVTS MT8192 driver along with the suspend/resume routines (Balsam Chihi) - Fix probe for THERMAL_V2 for the Mediatek LVTS driver (Markus Schneider-Pargmann) - Remove duplicate error message in the max76620 driver when thermal_of_zone_register() fails as the sub routine already show one (Thierry Reding) - Add i.MX7D compatible bindings to fix a warning from dtbs_check for the imx6ul platform (Alexander Stein) - Add sa8775p compatible for the QCom tsens driver (Priyansh Jain) - Fix error check in lvts_debugfs_init() which is checking against NULL instead of PTR_ERR() on the LVTS Mediatek driver (Minjie Du) - Remove unused variable in the thermal/tools (Kuan-Wei Chiu) - Document the imx8dl thermal sensor (Fabio Estevam) - Add variable names in callback prototypes to prevent warning from checkpatch.pl for the imx8mm driver (Bragatheswaran Manickavel) - Add missing unevaluatedProperties on child node schemas for tegra124 (Rob Herring) - Add mt7988 support for the Mediatek LVTS driver (Frank Wunderlich)" * tag 'thermal-v6.7-rc1' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/thermal/linux: thermal/qcom/tsens: Drop ops_v0_1 thermal/drivers/mediatek/lvts_thermal: Update calibration data documentation thermal/drivers/mediatek/lvts_thermal: Add mt8192 support thermal/drivers/mediatek/lvts_thermal: Add suspend and resume dt-bindings: thermal: mediatek: Add LVTS thermal controller definition for mt8192 thermal/drivers/mediatek: Fix probe for THERMAL_V2 thermal/drivers/max77620: Remove duplicate error message dt-bindings: timer: add imx7d compatible dt-bindings: net: microchip: Allow nvmem-cell usage dt-bindings: imx-thermal: Add #thermal-sensor-cells property dt-bindings: thermal: tsens: Add sa8775p compatible thermal/drivers/mediatek/lvts_thermal: Fix error check in lvts_debugfs_init() tools/thermal: Remove unused 'mds' and 'nrhandler' variables dt-bindings: thermal: fsl,scu-thermal: Document imx8dl thermal/drivers/imx8mm_thermal: Fix function pointer declaration by adding identifier name dt-bindings: thermal: nvidia,tegra124-soctherm: Add missing unevaluatedProperties on child node schemas thermal/drivers/mediatek/lvts_thermal: Add mt7988 support thermal/drivers/mediatek/lvts_thermal: Make coeff configurable dt-bindings: thermal: mediatek: Add LVTS thermal sensors for mt7988 dt-bindings: thermal: mediatek: Add mt7988 lvts compatible
2 parents 8aa4928 + 9618efe commit 607218d

File tree

14 files changed

+288
-52
lines changed

14 files changed

+288
-52
lines changed

Documentation/devicetree/bindings/net/microchip,lan95xx.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ properties:
4444

4545
local-mac-address: true
4646
mac-address: true
47+
nvmem-cells: true
48+
nvmem-cell-names: true
4749

4850
required:
4951
- compatible

Documentation/devicetree/bindings/thermal/fsl,scu-thermal.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ allOf:
1818
properties:
1919
compatible:
2020
items:
21-
- const: fsl,imx8qxp-sc-thermal
21+
- enum:
22+
- fsl,imx8dxl-sc-thermal
23+
- fsl,imx8qxp-sc-thermal
2224
- const: fsl,imx-sc-thermal
2325

2426
'#thermal-sensor-cells':

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,19 @@ properties:
6060
clocks:
6161
maxItems: 1
6262

63+
"#thermal-sensor-cells":
64+
const: 0
65+
6366
required:
6467
- compatible
6568
- interrupts
6669
- fsl,tempmon
6770
- nvmem-cells
6871
- nvmem-cell-names
6972

73+
allOf:
74+
- $ref: thermal-sensor.yaml#
75+
7076
additionalProperties: false
7177

7278
examples:
@@ -104,5 +110,6 @@ examples:
104110
nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>;
105111
nvmem-cell-names = "calib", "temp_grade";
106112
clocks = <&clks IMX6SX_CLK_PLL3_USB_OTG>;
113+
#thermal-sensor-cells = <0>;
107114
};
108115
};

Documentation/devicetree/bindings/thermal/mediatek,lvts-thermal.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ description: |
1818
properties:
1919
compatible:
2020
enum:
21+
- mediatek,mt7988-lvts-ap
2122
- mediatek,mt8192-lvts-ap
2223
- mediatek,mt8192-lvts-mcu
2324
- mediatek,mt8195-lvts-ap

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,12 @@ properties:
6868
patternProperties:
6969
"^(light|heavy|oc1)$":
7070
type: object
71+
additionalProperties: false
72+
7173
properties:
74+
"#cooling-cells":
75+
const: 2
76+
7277
nvidia,priority:
7378
$ref: /schemas/types.yaml#/definitions/uint32
7479
minimum: 1

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ properties:
5151
- qcom,msm8996-tsens
5252
- qcom,msm8998-tsens
5353
- qcom,qcm2290-tsens
54+
- qcom,sa8775p-tsens
5455
- qcom,sc7180-tsens
5556
- qcom,sc7280-tsens
5657
- qcom,sc8180x-tsens

Documentation/devicetree/bindings/timer/fsl,imxgpt.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ properties:
3636
- fsl,imxrt1170-gpt
3737
- const: fsl,imx6dl-gpt
3838
- items:
39-
- const: fsl,imx6ul-gpt
39+
- enum:
40+
- fsl,imx6ul-gpt
41+
- fsl,imx7d-gpt
4042
- const: fsl,imx6sx-gpt
4143

4244
reg:

drivers/thermal/imx8mm_thermal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
struct thermal_soc_data {
7979
u32 num_sensors;
8080
u32 version;
81-
int (*get_temp)(void *, int *);
81+
int (*get_temp)(void *data, int *temp);
8282
};
8383

8484
struct tmu_sensor {

drivers/thermal/max77620_thermal.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,8 @@ static int max77620_thermal_probe(struct platform_device *pdev)
114114

115115
mtherm->tz_device = devm_thermal_of_zone_register(&pdev->dev, 0,
116116
mtherm, &max77620_thermal_ops);
117-
if (IS_ERR(mtherm->tz_device)) {
118-
ret = PTR_ERR(mtherm->tz_device);
119-
dev_err(&pdev->dev, "Failed to register thermal zone: %d\n",
120-
ret);
121-
return ret;
122-
}
117+
if (IS_ERR(mtherm->tz_device))
118+
return PTR_ERR(mtherm->tz_device);
123119

124120
ret = devm_request_threaded_irq(&pdev->dev, mtherm->irq_tjalarm1, NULL,
125121
max77620_thermal_irq,

drivers/thermal/mediatek/auxadc_thermal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ static int mtk_thermal_probe(struct platform_device *pdev)
12671267

12681268
mtk_thermal_turn_on_buffer(mt, apmixed_base);
12691269

1270-
if (mt->conf->version != MTK_THERMAL_V2)
1270+
if (mt->conf->version != MTK_THERMAL_V1)
12711271
mtk_thermal_release_periodic_ts(mt, auxadc_base);
12721272

12731273
if (mt->conf->version == MTK_THERMAL_V1)

0 commit comments

Comments
 (0)