-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'thermal-v6.8-rc1' of ssh://gitolite.kernel.org/pub/scm/lin…
…ux/kernel/git/thermal/linux into thermal Merge thermal control material for 6.8-rc1 from Daniel Lezcano: "- Converted Mediatek Thermal to the json-schema (Rafał Miłecki) - Fixed DT bindings issue on Loongson (Binbin Zhou) - Fixed returning NULL instead of -ENODEV on Loogsoo (Binbin Zhou) - Added the DT binding for the tsens on SM8650 platform (Neil Armstrong) - Added a reboot on critical option feature (Fabio Estevam) - Made usage of DEFINE_SIMPLE_DEV_PM_OPS on AmLogic (Uwe Kleine-König) - Added the D1/T113s THS controller support on Sun8i (Maxim Kiselev) - Fixed example in the DT binding for QCom SPMI (Johan Hovold) - Fixed compilation warning for the tmon utility (Florian Eckert) - Added interrupt based configuration on Exynos along with a set of related cleanups (Mateusz Majewski)" * tag 'thermal-v6.8-rc1' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/thermal/linux: (24 commits) thermal/drivers/exynos: Use set_trips ops thermal/drivers/exynos: Use BIT wherever possible thermal/drivers/exynos: Split initialization of TMU and the thermal zone thermal/drivers/exynos: Stop using the threshold mechanism on Exynos 4210 thermal/drivers/exynos: Simplify regulator (de)initialization thermal/drivers/exynos: Handle devm_regulator_get_optional return value correctly thermal/drivers/exynos: Wwitch from workqueue-driven interrupt handling to threaded interrupts thermal/drivers/exynos: Drop id field thermal/drivers/exynos: Remove an unnecessary field description tools/thermal/tmon: Fix compilation warning for wrong format dt-bindings: thermal: qcom-spmi-adc-tm5/hc: Clean up examples dt-bindings: thermal: qcom-spmi-adc-tm5/hc: Fix example node names thermal/drivers/sun8i: Add D1/T113s THS controller support dt-bindings: thermal: sun8i: Add binding for D1/T113s THS controller thermal: amlogic: Use DEFINE_SIMPLE_DEV_PM_OPS for PM functions thermal: amlogic: Make amlogic_thermal_disable() return void thermal/thermal_of: Allow rebooting after critical temp reboot: Introduce thermal_zone_device_critical_reboot() thermal/core: Prepare for introduction of thermal reboot dt-bindings: thermal-zones: Document critical-action ...
- Loading branch information
Showing
18 changed files
with
491 additions
and
357 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
99 changes: 99 additions & 0 deletions
99
Documentation/devicetree/bindings/thermal/mediatek,thermal.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/thermal/mediatek,thermal.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Mediatek thermal controller for on-SoC temperatures | ||
|
||
maintainers: | ||
- Sascha Hauer <s.hauer@pengutronix.de> | ||
|
||
description: | ||
This device does not have its own ADC, instead it directly controls the AUXADC | ||
via AHB bus accesses. For this reason it needs phandles to the AUXADC. Also it | ||
controls a mux in the apmixedsys register space via AHB bus accesses, so a | ||
phandle to the APMIXEDSYS is also needed. | ||
|
||
allOf: | ||
- $ref: thermal-sensor.yaml# | ||
|
||
properties: | ||
compatible: | ||
enum: | ||
- mediatek,mt2701-thermal | ||
- mediatek,mt2712-thermal | ||
- mediatek,mt7622-thermal | ||
- mediatek,mt7981-thermal | ||
- mediatek,mt7986-thermal | ||
- mediatek,mt8173-thermal | ||
- mediatek,mt8183-thermal | ||
- mediatek,mt8365-thermal | ||
- mediatek,mt8516-thermal | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
interrupts: | ||
maxItems: 1 | ||
|
||
clocks: | ||
items: | ||
- description: Main clock needed for register access | ||
- description: The AUXADC clock | ||
|
||
clock-names: | ||
items: | ||
- const: therm | ||
- const: auxadc | ||
|
||
mediatek,auxadc: | ||
$ref: /schemas/types.yaml#/definitions/phandle | ||
description: A phandle to the AUXADC which the thermal controller uses | ||
|
||
mediatek,apmixedsys: | ||
$ref: /schemas/types.yaml#/definitions/phandle | ||
description: A phandle to the APMIXEDSYS controller | ||
|
||
resets: | ||
description: Reset controller controlling the thermal controller | ||
|
||
nvmem-cells: | ||
items: | ||
- description: | ||
NVMEM cell with EEPROMA phandle to the calibration data provided by an | ||
NVMEM device. If unspecified default values shall be used. | ||
|
||
nvmem-cell-names: | ||
items: | ||
- const: calibration-data | ||
|
||
required: | ||
- reg | ||
- interrupts | ||
- clocks | ||
- clock-names | ||
- mediatek,auxadc | ||
- mediatek,apmixedsys | ||
|
||
unevaluatedProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/interrupt-controller/irq.h> | ||
#include <dt-bindings/clock/mt8173-clk.h> | ||
#include <dt-bindings/reset/mt8173-resets.h> | ||
thermal@1100b000 { | ||
compatible = "mediatek,mt8173-thermal"; | ||
reg = <0x1100b000 0x1000>; | ||
interrupts = <0 70 IRQ_TYPE_LEVEL_LOW>; | ||
clocks = <&pericfg CLK_PERI_THERM>, <&pericfg CLK_PERI_AUXADC>; | ||
clock-names = "therm", "auxadc"; | ||
resets = <&pericfg MT8173_PERI_THERM_SW_RST>; | ||
mediatek,auxadc = <&auxadc>; | ||
mediatek,apmixedsys = <&apmixedsys>; | ||
nvmem-cells = <&thermal_calibration_data>; | ||
nvmem-cell-names = "calibration-data"; | ||
#thermal-sensor-cells = <1>; | ||
}; |
52 changes: 0 additions & 52 deletions
52
Documentation/devicetree/bindings/thermal/mediatek-thermal.txt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.