Skip to content

Commit

Permalink
Merge tag 'thermal-v6.7-rc1' of ssh://gitolite.kernel.org/pub/scm/lin…
Browse files Browse the repository at this point in the history
…ux/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
  • Loading branch information
rafaeljw committed Oct 25, 2023
2 parents 8aa4928 + 9618efe commit 607218d
Show file tree
Hide file tree
Showing 14 changed files with 288 additions and 52 deletions.
2 changes: 2 additions & 0 deletions Documentation/devicetree/bindings/net/microchip,lan95xx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ properties:

local-mac-address: true
mac-address: true
nvmem-cells: true
nvmem-cell-names: true

required:
- compatible
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ allOf:
properties:
compatible:
items:
- const: fsl,imx8qxp-sc-thermal
- enum:
- fsl,imx8dxl-sc-thermal
- fsl,imx8qxp-sc-thermal
- const: fsl,imx-sc-thermal

'#thermal-sensor-cells':
Expand Down
7 changes: 7 additions & 0 deletions Documentation/devicetree/bindings/thermal/imx-thermal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,19 @@ properties:
clocks:
maxItems: 1

"#thermal-sensor-cells":
const: 0

required:
- compatible
- interrupts
- fsl,tempmon
- nvmem-cells
- nvmem-cell-names

allOf:
- $ref: thermal-sensor.yaml#

additionalProperties: false

examples:
Expand Down Expand Up @@ -104,5 +110,6 @@ examples:
nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>;
nvmem-cell-names = "calib", "temp_grade";
clocks = <&clks IMX6SX_CLK_PLL3_USB_OTG>;
#thermal-sensor-cells = <0>;
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ description: |
properties:
compatible:
enum:
- mediatek,mt7988-lvts-ap
- mediatek,mt8192-lvts-ap
- mediatek,mt8192-lvts-mcu
- mediatek,mt8195-lvts-ap
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@ properties:
patternProperties:
"^(light|heavy|oc1)$":
type: object
additionalProperties: false

properties:
"#cooling-cells":
const: 2

nvidia,priority:
$ref: /schemas/types.yaml#/definitions/uint32
minimum: 1
Expand Down
1 change: 1 addition & 0 deletions Documentation/devicetree/bindings/thermal/qcom-tsens.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ properties:
- qcom,msm8996-tsens
- qcom,msm8998-tsens
- qcom,qcm2290-tsens
- qcom,sa8775p-tsens
- qcom,sc7180-tsens
- qcom,sc7280-tsens
- qcom,sc8180x-tsens
Expand Down
4 changes: 3 additions & 1 deletion Documentation/devicetree/bindings/timer/fsl,imxgpt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ properties:
- fsl,imxrt1170-gpt
- const: fsl,imx6dl-gpt
- items:
- const: fsl,imx6ul-gpt
- enum:
- fsl,imx6ul-gpt
- fsl,imx7d-gpt
- const: fsl,imx6sx-gpt

reg:
Expand Down
2 changes: 1 addition & 1 deletion drivers/thermal/imx8mm_thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
struct thermal_soc_data {
u32 num_sensors;
u32 version;
int (*get_temp)(void *, int *);
int (*get_temp)(void *data, int *temp);
};

struct tmu_sensor {
Expand Down
8 changes: 2 additions & 6 deletions drivers/thermal/max77620_thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,8 @@ static int max77620_thermal_probe(struct platform_device *pdev)

mtherm->tz_device = devm_thermal_of_zone_register(&pdev->dev, 0,
mtherm, &max77620_thermal_ops);
if (IS_ERR(mtherm->tz_device)) {
ret = PTR_ERR(mtherm->tz_device);
dev_err(&pdev->dev, "Failed to register thermal zone: %d\n",
ret);
return ret;
}
if (IS_ERR(mtherm->tz_device))
return PTR_ERR(mtherm->tz_device);

ret = devm_request_threaded_irq(&pdev->dev, mtherm->irq_tjalarm1, NULL,
max77620_thermal_irq,
Expand Down
2 changes: 1 addition & 1 deletion drivers/thermal/mediatek/auxadc_thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1267,7 +1267,7 @@ static int mtk_thermal_probe(struct platform_device *pdev)

mtk_thermal_turn_on_buffer(mt, apmixed_base);

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

if (mt->conf->version == MTK_THERMAL_V1)
Expand Down
Loading

0 comments on commit 607218d

Please sign in to comment.