Skip to content

Commit

Permalink
Merge tag 'thermal-v6.11-rc1' of ssh://gitolite.kernel.org/pub/scm/li…
Browse files Browse the repository at this point in the history
…nux/kernel/git/thermal/linux into thermal

Merge thermal drivers updates for 6.11-rc1 from Daniel Lezcano:

"- Group all Renesas drivers inside a dedicated sub directory and add
   the missing dependency to OF (Niklas Söderlund)

 - Add suspend/resume support on k3_j72xx_bandgap and take the
   opportunity to remove a unneeded delay in the init time code path
   (Théo Lebrun)

 - Fix thermal zone definition for MT8186 and MT8188 (Julien Panis)

 - Convert hisilicon-thermal.txt to dt-schema (Abdulrasaq Lawani)

 - Add the DT bindings for the X1E80100 temperature sensor (Abel Vesa)

 - Fix the thermal zone node name regular expression in the DT schema
   (Krzysztof Kozlowski)

 - Take into account some production platforms may not have calibration
   data. Deal with it with a default value instead of failing the
   initialization (Chen-Yu Tsai)

 - Fix the sensor cell size on the Exynos platform (Krzysztof Kozlowski)

 - Bring the common definition of '#thermal-sensor-cells' property in
   order to simplify the bindings on all the platforms where this
   change makes sense and do some minor cleanups (Krzysztof Kozlowski)

 - Fix a race between removal and clock disable on the broadcom driver
   (Krzysztof Kozlowski)

 - Drop 'trips' node as required from the thermal zone bindings in
   order to fix the remaining warnings appearing with thermal zone
   whithout trip points defined (Rob Herring)

 - Simplify all the drivers where dev_err_probe() can apply (Krzysztof
   Kozlowski)

 - Cleanup code related to stih416 as this platform is not described
   anywhere (Raphael Gallais-Pou)"

* tag 'thermal-v6.11-rc1' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/thermal/linux: (45 commits)
  thermal/drivers/sti: Cleanup code related to stih416
  thermal/drivers/generic-adc: Simplify with dev_err_probe()
  thermal/drivers/generic-adc: Simplify probe() with local dev variable
  thermal/drivers/qcom-tsens: Simplify with dev_err_probe()
  thermal/drivers/qcom-spmi-adc-tm5: Simplify with dev_err_probe()
  thermal/drivers/imx: Simplify with dev_err_probe()
  thermal/drivers/imx: Simplify probe() with local dev variable
  thermal/drivers/hisi: Simplify with dev_err_probe()
  thermal/drivers/exynos: Simplify with dev_err_probe()
  thermal/drivers/exynos: Simplify probe() with local dev variable
  thermal/drivers/broadcom: Simplify with dev_err_probe()
  thermal/drivers/broadcom: Simplify probe() with local dev variable
  thermal/drivers/broadcom: Fix race between removal and clock disable
  dt-bindings: thermal: Drop 'trips' node as required
  dt-bindings: thermal: qoriq: reference thermal-sensor schema
  dt-bindings: thermal: cleanup examples indentation
  dt-bindings: thermal: simplify few bindings
  dt-bindings: thermal: ti,j72xx: reference thermal-sensor schema
  dt-bindings: thermal: ti,am654: reference thermal-sensor schema
  dt-bindings: thermal: st,stm32: reference thermal-sensor schema
  ...
  • Loading branch information
rafaeljw committed Jul 15, 2024
2 parents 462be1c + e61cc85 commit 3fdd8ea
Show file tree
Hide file tree
Showing 50 changed files with 531 additions and 505 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ maintainers:
- Vasily Khoruzhick <[email protected]>
- Yangtao Li <[email protected]>

$ref: thermal-sensor.yaml#

properties:
compatible:
enum:
Expand Down Expand Up @@ -55,7 +57,6 @@ properties:
maxItems: 1
description: phandle to device controlling temperate offset SYS_CFG register

# See Documentation/devicetree/bindings/thermal/thermal-sensor.yaml for details
"#thermal-sensor-cells":
enum:
- 0
Expand Down Expand Up @@ -135,9 +136,8 @@ required:
- compatible
- reg
- interrupts
- '#thermal-sensor-cells'

additionalProperties: false
unevaluatedProperties: false

examples:
- |
Expand Down
22 changes: 12 additions & 10 deletions Documentation/devicetree/bindings/thermal/amlogic,thermal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ maintainers:

description: Binding for Amlogic Thermal

$ref: thermal-sensor.yaml#

properties:
compatible:
oneOf:
Expand Down Expand Up @@ -44,17 +46,17 @@ required:
- clocks
- amlogic,ao-secure

additionalProperties: false
unevaluatedProperties: false

examples:
- |
cpu_temp: temperature-sensor@ff634800 {
compatible = "amlogic,g12a-cpu-thermal",
"amlogic,g12a-thermal";
reg = <0xff634800 0x50>;
interrupts = <0x0 0x24 0x0>;
clocks = <&clk 164>;
#thermal-sensor-cells = <0>;
amlogic,ao-secure = <&sec_AO>;
};
temperature-sensor@ff634800 {
compatible = "amlogic,g12a-cpu-thermal",
"amlogic,g12a-thermal";
reg = <0xff634800 0x50>;
interrupts = <0x0 0x24 0x0>;
clocks = <&clk 164>;
#thermal-sensor-cells = <0>;
amlogic,ao-secure = <&sec_AO>;
};
...
24 changes: 12 additions & 12 deletions Documentation/devicetree/bindings/thermal/brcm,avs-ro-thermal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,30 +19,30 @@ description: |+
Refer to the bindings described in
Documentation/devicetree/bindings/mfd/syscon.yaml
$ref: thermal-sensor.yaml#

properties:
compatible:
const: brcm,bcm2711-thermal

# See Documentation/devicetree/bindings/thermal/thermal-sensor.yaml for details
"#thermal-sensor-cells":
const: 0

required:
- compatible
- '#thermal-sensor-cells'

additionalProperties: false
unevaluatedProperties: false

examples:
- |
avs-monitor@7d5d2000 {
compatible = "brcm,bcm2711-avs-monitor",
"syscon", "simple-mfd";
reg = <0x7d5d2000 0xf00>;
thermal: thermal {
compatible = "brcm,bcm2711-thermal";
#thermal-sensor-cells = <0>;
};
avs-monitor@7d5d2000 {
compatible = "brcm,bcm2711-avs-monitor",
"syscon", "simple-mfd";
reg = <0x7d5d2000 0xf00>;
thermal: thermal {
compatible = "brcm,bcm2711-thermal";
#thermal-sensor-cells = <0>;
};
};
...
17 changes: 8 additions & 9 deletions Documentation/devicetree/bindings/thermal/brcm,avs-tmon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,14 @@ additionalProperties: false
required:
- compatible
- reg
- "#thermal-sensor-cells"

examples:
- |
thermal@f04d1500 {
compatible = "brcm,avs-tmon-bcm7445", "brcm,avs-tmon";
reg = <0xf04d1500 0x28>;
interrupts = <0x6>;
interrupt-names = "tmon";
interrupt-parent = <&avs_host_l2_intc>;
#thermal-sensor-cells = <0>;
};
thermal@f04d1500 {
compatible = "brcm,avs-tmon-bcm7445", "brcm,avs-tmon";
reg = <0xf04d1500 0x28>;
interrupts = <0x6>;
interrupt-names = "tmon";
interrupt-parent = <&avs_host_l2_intc>;
#thermal-sensor-cells = <0>;
};
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ required:
- compatible
- reg
- clocks
- '#thermal-sensor-cells'

examples:
- |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ properties:

required:
- compatible
- '#thermal-sensor-cells'

additionalProperties: false

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ description:
sensor resistor. The voltage read across the sensor is mapped to
temperature using voltage-temperature lookup table.

$ref: thermal-sensor.yaml#

properties:
compatible:
const: generic-adc-thermal
Expand Down Expand Up @@ -44,11 +46,10 @@ properties:

required:
- compatible
- '#thermal-sensor-cells'
- io-channels
- io-channel-names

additionalProperties: false
unevaluatedProperties: false

examples:
- |
Expand Down
57 changes: 57 additions & 0 deletions Documentation/devicetree/bindings/thermal/hisilicon,tsensor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/thermal/hisilicon,tsensor.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Temperature Sensor on HiSilicon SoCs

maintainers:
- Abdulrasaq Lawani <[email protected]>

allOf:
- $ref: thermal-sensor.yaml

properties:
compatible:
enum:
- hisilicon,tsensor
- hisilicon,hi3660-tsensor

reg:
maxItems: 1

clocks:
maxItems: 1

clock-names:
items:
- const: thermal_clk

interrupts:
maxItems: 1

'#thermal-sensor-cells':
const: 1

required:
- compatible
- reg
- interrupts
- '#thermal-sensor-cells'

unevaluatedProperties: false

examples:
- |
#include <dt-bindings/clock/hi6220-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
temperature-sensor@f7030700 {
compatible = "hisilicon,tsensor";
reg = <0xf7030700 0x1000>;
interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&sys_ctrl HI6220_TSENSOR_CLK>;
clock-names = "thermal_clk";
#thermal-sensor-cells = <1>;
};
32 changes: 0 additions & 32 deletions Documentation/devicetree/bindings/thermal/hisilicon-thermal.txt

This file was deleted.

5 changes: 3 additions & 2 deletions Documentation/devicetree/bindings/thermal/imx8mm-thermal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ description: |
for i.MX8MM which has ONLY 1 sensor, v2 is for i.MX8MP which has
2 sensors.
$ref: thermal-sensor.yaml#

properties:
compatible:
oneOf:
Expand Down Expand Up @@ -51,9 +53,8 @@ required:
- compatible
- reg
- clocks
- '#thermal-sensor-cells'

additionalProperties: false
unevaluatedProperties: false

examples:
- |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ required:
- compatible
- reg
- interrupts
- '#thermal-sensor-cells'

if:
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ required:
- resets
- nvmem-cells
- nvmem-cell-names
- "#thermal-sensor-cells"

additionalProperties: false

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ required:
- clock-names
- resets
- reset-names
- "#thermal-sensor-cells"

allOf:
- $ref: thermal-sensor.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@ description: |
node. See ../firmware/nvidia,tegra186-bpmp.yaml for details of the
BPMP binding.
This node represents a thermal sensor. See
Documentation/devicetree/bindings/thermal/thermal-sensor.yaml
for details of the core thermal binding.
$ref: thermal-sensor.yaml#

properties:
compatible:
Expand All @@ -33,10 +29,6 @@ properties:
- nvidia,tegra194-bpmp-thermal

'#thermal-sensor-cells':
$ref: /schemas/types.yaml#/definitions/uint32
description: Number of cells needed in the phandle specifier to
identify a given sensor. Must be 1 and the single cell specifies
the sensor index.
const: 1

additionalProperties: false
unevaluatedProperties: false
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ description: |
TSENSOR has two channels which monitor two different spots of the SoC.
$ref: thermal-sensor.yaml#

properties:
compatible:
const: nvidia,tegra30-tsensor
Expand All @@ -46,19 +48,14 @@ properties:
"#thermal-sensor-cells":
const: 1

assigned-clock-parents: true
assigned-clock-rates: true
assigned-clocks: true

required:
- compatible
- reg
- clocks
- resets
- interrupts
- "#thermal-sensor-cells"

additionalProperties: false
unevaluatedProperties: false

examples:
- |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ required:
- compatible
- reg
- interrupts
- '#thermal-sensor-cells'

additionalProperties: false

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ title: Qualcomm's SPMI PMIC ADC HC Thermal Monitoring
maintainers:
- Dmitry Baryshkov <[email protected]>

$ref: thermal-sensor.yaml#

properties:
compatible:
const: qcom,spmi-adc-tm-hc
Expand All @@ -20,9 +22,6 @@ properties:

"#thermal-sensor-cells":
const: 1
description:
Number of cells required to uniquely identify the thermal sensors. Since
we have multiple sensors this is set to 1

"#address-cells":
const: 1
Expand Down Expand Up @@ -106,9 +105,8 @@ required:
- interrupts
- "#address-cells"
- "#size-cells"
- "#thermal-sensor-cells"

additionalProperties: false
unevaluatedProperties: false

examples:
- |
Expand Down
Loading

0 comments on commit 3fdd8ea

Please sign in to comment.