| /linux/Documentation/devicetree/bindings/thermal/ | 
| H A D | thermal-sensor.yaml | 1 # SPDX-License-Identifier: (GPL-2.0)4 ---
 5 $id: http://devicetree.org/schemas/thermal/thermal-sensor.yaml#
 6 $schema: http://devicetree.org/meta-schemas/core.yaml#
 8 title: Thermal sensor
 11   - Amit Kucheria <amitk@kernel.org>
 14   Thermal management is achieved in devicetree by describing the sensor hardware
 15   and the software abstraction of thermal zones required to take appropriate
 16   action to mitigate thermal overloads.
 18   The following node types are used to completely describe a thermal management
 [all …]
 
 | 
| H A D | generic-adc-thermal.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause3 ---
 4 $id: http://devicetree.org/schemas/thermal/generic-adc-thermal.yaml#
 5 $schema: http://devicetree.org/meta-schemas/core.yaml#
 7 title: General Purpose Analog To Digital Converter (ADC) based thermal sensor
 10   - Laxman Dewangan <ldewangan@nvidia.com>
 13   On some of platforms, thermal sensor like thermistors are connected to
 14   one of ADC channel and sensor resistance is read via voltage across the
 15   sensor resistor. The voltage read across the sensor is mapped to
 16   temperature using voltage-temperature lookup table.
 [all …]
 
 | 
| H A D | rcar-gen3-thermal.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only4 ---
 5 $id: http://devicetree.org/schemas/thermal/rcar-gen3-thermal.yaml#
 6 $schema: http://devicetree.org/meta-schemas/core.yaml#
 8 title: Renesas R-Car Gen3 Thermal Sensor
 11   On most R-Car Gen3 and later SoCs, the thermal sensor controllers (TSC)
 12   control the thermal sensors (THS) which are the analog circuits for
 16   - Niklas Söderlund <niklas.soderlund@ragnatech.se>
 18 $ref: thermal-sensor.yaml#
 23       - renesas,r8a774a1-thermal # RZ/G2M
 [all …]
 
 | 
| H A D | amazon,al-thermal.txt | 1 Amazon's Annapurna Labs Thermal Sensor3 Simple thermal device that allows temperature reading by a single MMIO
 7 - compatible: "amazon,al-thermal".
 8 - reg: The physical base address and length of the sensor's registers.
 9 - #thermal-sensor-cells: Must be 1. See Documentation/devicetree/bindings/thermal/thermal-sensor.ya…
 12 	thermal: thermal {
 13 		compatible = "amazon,al-thermal";
 15 		#thermal-sensor-cells = <0x1>;
 18 	thermal-zones {
 19 		thermal-z0 {
 [all …]
 
 | 
| H A D | sprd-thermal.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)3 ---
 4 $id: http://devicetree.org/schemas/thermal/sprd-thermal.yaml#
 5 $schema: http://devicetree.org/meta-schemas/core.yaml#
 7 title: Spreadtrum thermal sensor controller
 10   - Orson Zhai <orsonzhai@gmail.com>
 11   - Baolin Wang <baolin.wang7@gmail.com>
 12   - Chunyan Zhang <zhang.lyra@gmail.com>
 14 $ref: thermal-sensor.yaml#
 18     const: sprd,ums512-thermal
 [all …]
 
 | 
| H A D | rzg2l-thermal.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)3 ---
 4 $id: http://devicetree.org/schemas/thermal/rzg2l-thermal.yaml#
 5 $schema: http://devicetree.org/meta-schemas/core.yaml#
 7 title: Renesas RZ/G2L Thermal Sensor Unit
 10   On RZ/G2L SoCs, the thermal sensor unit (TSU) measures the
 14   - Biju Das <biju.das.jz@bp.renesas.com>
 16 $ref: thermal-sensor.yaml#
 21       - enum:
 22           - renesas,r9a07g043-tsu # RZ/G2UL and RZ/Five
 [all …]
 
 | 
| H A D | st,stih407-thermal.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)3 ---
 4 $id: http://devicetree.org/schemas/thermal/st,stih407-thermal.yaml#
 5 $schema: http://devicetree.org/meta-schemas/core.yaml#
 7 title: STMicroelectronics STi digital thermal sensor (DTS)
 10   - Patrice Chotard <patrice.chotard@foss.st.com>
 11   - Lee Jones <lee@kernel.org>
 14   - $ref: thermal-sensor.yaml
 18     const: st,stih407-thermal
 26   clock-names:
 [all …]
 
 | 
| H A D | brcm,ns-thermal.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause3 ---
 4 $id: http://devicetree.org/schemas/thermal/brcm,ns-thermal.yaml#
 5 $schema: http://devicetree.org/meta-schemas/core.yaml#
 7 title: Broadcom Northstar Thermal
 10   - Rafał Miłecki <rafal@milecki.pl>
 13   Thermal sensor that is part of Northstar's DMU (Device Management Unit).
 16   - $ref: thermal-sensor.yaml#
 20     const: brcm,ns-thermal
 26   "#thermal-sensor-cells":
 [all …]
 
 | 
| H A D | loongson,ls2k-thermal.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)3 ---
 4 $id: http://devicetree.org/schemas/thermal/loongson,ls2k-thermal.yaml#
 5 $schema: http://devicetree.org/meta-schemas/core.yaml#
 7 title: Thermal sensors on Loongson-2 SoCs
 10   - zhanghongchen <zhanghongchen@loongson.cn>
 11   - Yinbo Zhu <zhuyinbo@loongson.cn>
 14   - $ref: /schemas/thermal/thermal-sensor.yaml#
 19       - enum:
 20           - loongson,ls2k1000-thermal
 [all …]
 
 | 
| H A D | mediatek,lvts-thermal.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)3 ---
 4 $id: http://devicetree.org/schemas/thermal/mediatek,lvts-thermal.yaml#
 5 $schema: http://devicetree.org/meta-schemas/core.yaml#
 7 title: MediaTek SoC Low Voltage Thermal Sensor (LVTS)
 10   - Balsam CHIHI <bchihi@baylibre.com>
 13   LVTS is a thermal management architecture composed of three subsystems,
 14   a Sensing device - Thermal Sensing Micro Circuit Unit (TSMCU),
 15   a Converter - Low Voltage Thermal Sensor converter (LVTS), and
 21       - mediatek,mt7988-lvts-ap
 [all …]
 
 | 
| H A D | fsl,scu-thermal.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)3 ---
 4 $id: http://devicetree.org/schemas/thermal/fsl,scu-thermal.yaml#
 5 $schema: http://devicetree.org/meta-schemas/core.yaml#
 7 title: i.MX SCU Client Device Node - Thermal Based on SCU Message Protocol
 10   - Dong Aisheng <aisheng.dong@nxp.com>
 13   Client nodes are maintained as children of the relevant IMX-SCU device node.
 16   - $ref: thermal-sensor.yaml#
 21       - enum:
 22           - fsl,imx8dxl-sc-thermal
 [all …]
 
 | 
| H A D | brcm,bcm2835-thermal.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)3 ---
 4 $id: http://devicetree.org/schemas/thermal/brcm,bcm2835-thermal.yaml#
 5 $schema: http://devicetree.org/meta-schemas/core.yaml#
 7 title: Broadcom BCM2835 thermal sensor
 10   - Stefan Wahren <stefan.wahren@i2se.com>
 13   - $ref: thermal-sensor.yaml#
 18       - brcm,bcm2835-thermal
 19       - brcm,bcm2836-thermal
 20       - brcm,bcm2837-thermal
 [all …]
 
 | 
| H A D | amlogic,thermal.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)3 ---
 4 $id: http://devicetree.org/schemas/thermal/amlogic,thermal.yaml#
 5 $schema: http://devicetree.org/meta-schemas/core.yaml#
 7 title: Amlogic Thermal
 10   - Guillaume La Roque <glaroque@baylibre.com>
 12 description: Binding for Amlogic Thermal
 14 $ref: thermal-sensor.yaml#
 19       - items:
 20           - enum:
 [all …]
 
 | 
| H A D | socionext,uniphier-thermal.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)3 ---
 4 $id: http://devicetree.org/schemas/thermal/socionext,uniphier-thermal.yaml#
 5 $schema: http://devicetree.org/meta-schemas/core.yaml#
 7 title: Socionext UniPhier thermal monitor
 10   This describes the devicetree bindings for thermal monitor supported by
 15   - Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
 17 $ref: thermal-sensor.yaml#
 22       - socionext,uniphier-pxs2-thermal
 23       - socionext,uniphier-ld20-thermal
 [all …]
 
 | 
| H A D | nvidia,tegra30-tsensor.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)3 ---
 4 $id: http://devicetree.org/schemas/thermal/nvidia,tegra30-tsensor.yaml#
 5 $schema: http://devicetree.org/meta-schemas/core.yaml#
 7 title: NVIDIA Tegra30 Thermal Sensor
 10   - Dmitry Osipenko <digetx@gmail.com>
 11   - Jon Hunter <jonathanh@nvidia.com>
 12   - Thierry Reding <thierry.reding@gmail.com>
 15   TSENSOR provides thermal and voltage sensors which monitor temperature
 20     a certain thermal/voltage threshold.
 [all …]
 
 | 
| H A D | brcm,sr-thermal.txt | 1 * Broadcom Stingray Thermal3 This binding describes thermal sensors that is part of Stingray SoCs.
 6 - compatible : Must be "brcm,sr-thermal"
 7 - reg : Memory where tmon data will be available.
 8 - brcm,tmon-mask: A one cell bit mask of valid TMON sources.
 10 - #thermal-sensor-cells : Thermal sensor phandler
 11 - polling-delay: Max number of milliseconds to wait between polls.
 12 - thermal-sensors: A list of thermal sensor phandles and specifier.
 14                    in correspond with brcm,tmon-mask.
 15 - temperature: trip temperature threshold in millicelsius.
 [all …]
 
 | 
| /linux/drivers/thermal/ | 
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only3 # Generic thermal drivers configuration
 6 menuconfig THERMAL  config
 7 	bool "Thermal drivers"
 9 	  Thermal drivers offer a generic mechanism for
 10 	  thermal management. Usually it's made up of one or more thermal
 12 	  Each thermal zone contains its own temperature, trip points,
 14 	  All platforms with ACPI or Open Firmware thermal support can use
 18 if THERMAL
 21 	bool "Thermal netlink management"
 [all …]
 
 | 
| H A D | thermal_of.c | 1 // SPDX-License-Identifier: GPL-2.03  *  of-thermal.c - Generic Thermal Management device tree support.
 15 #include <linux/thermal.h>
 24  * It maps 'enum thermal_trip_type' found in include/linux/thermal.h
 35  * thermal_of_get_trip_type - Get phy mode for given device_node
 60 	return -ENODEV;  in thermal_of_get_trip_type()
 74 	trip->temperature = prop;  in thermal_of_populate_trip()
 81 	trip->hysteresis = prop;  in thermal_of_populate_trip()
 83 	ret = thermal_of_get_trip_type(np, &trip->type);  in thermal_of_populate_trip()
 89 	trip->flags = THERMAL_TRIP_FLAG_RW_TEMP;  in thermal_of_populate_trip()
 [all …]
 
 | 
| H A D | dove_thermal.c | 1 // SPDX-License-Identifier: GPL-2.0-only3  * Dove thermal sensor driver
 14 #include <linux/thermal.h>
 19 /* Dove Thermal Manager Control and Status Register */
 32 /* Dove Thermal Diode Control 1 Register */
 36 /* Dove Thermal Sensor Dev Structure */
 38 	void __iomem *sensor;  member
 48 	reg = readl_relaxed(priv->control);  in dove_init_sensor()
 61 	writel(reg, priv->control);  in dove_init_sensor()
 63 	/* Reset the sensor */  in dove_init_sensor()
 [all …]
 
 | 
| H A D | kirkwood_thermal.c | 1 // SPDX-License-Identifier: GPL-2.0-only3  * Kirkwood thermal sensor driver
 14 #include <linux/thermal.h>
 21 /* Kirkwood Thermal Sensor Dev Structure */
 23 	void __iomem *sensor;  member
 26 static int kirkwood_get_temp(struct thermal_zone_device *thermal,  in kirkwood_get_temp()  argument
 30 	struct kirkwood_thermal_priv *priv = thermal_zone_device_priv(thermal);  in kirkwood_get_temp()
 32 	reg = readl_relaxed(priv->sensor);  in kirkwood_get_temp()
 37 		return -EIO;  in kirkwood_get_temp()
 42 	 * Celsius = (322-reg)/1.3625  in kirkwood_get_temp()
 [all …]
 
 | 
| H A D | imx_sc_thermal.c | 1 // SPDX-License-Identifier: GPL-2.0+3  * Copyright 2018-2020 NXP.
 6 #include <dt-bindings/firmware/imx/rsrc.h>
 13 #include <linux/thermal.h>
 48 	struct imx_sc_sensor *sensor = thermal_zone_device_priv(tz);  in imx_sc_thermal_get_temp()  local
 51 	msg.data.req.resource_id = sensor->resource_id;  in imx_sc_thermal_get_temp()
 54 	hdr->ver = IMX_SC_RPC_VERSION;  in imx_sc_thermal_get_temp()
 55 	hdr->svc = IMX_SC_RPC_SVC_MISC;  in imx_sc_thermal_get_temp()
 56 	hdr->func = IMX_SC_MISC_FUNC_GET_TEMP;  in imx_sc_thermal_get_temp()
 57 	hdr->size = 2;  in imx_sc_thermal_get_temp()
 [all …]
 
 | 
| H A D | thermal_mmio.c | 1 // SPDX-License-Identifier: GPL-2.09 #include <linux/thermal.h>
 26 	struct thermal_mmio *sensor = thermal_zone_device_priv(tz);  in thermal_mmio_get_temperature()  local
 28 	t = sensor->read_mmio(sensor->mmio_base) & sensor->mask;  in thermal_mmio_get_temperature()
 29 	t *= sensor->factor;  in thermal_mmio_get_temperature()
 42 	struct thermal_mmio *sensor;  in thermal_mmio_probe()  local
 44 				struct thermal_mmio *sensor);  in thermal_mmio_probe()
 49 	sensor = devm_kzalloc(&pdev->dev, sizeof(*sensor), GFP_KERNEL);  in thermal_mmio_probe()
 50 	if (!sensor)  in thermal_mmio_probe()
 51 		return -ENOMEM;  in thermal_mmio_probe()
 [all …]
 
 | 
| H A D | spear_thermal.c | 1 // SPDX-License-Identifier: GPL-2.0-only3  * SPEAr thermal driver.
 5  * Copyright (C) 2011-2012 ST Microelectronics
 17 #include <linux/thermal.h>
 21 /* SPEAr Thermal Sensor Dev Structure */
 23 	/* pointer to base address of the thermal sensor */
 27 	/* pointer to thermal flags */
 31 static inline int thermal_get_temp(struct thermal_zone_device *thermal,  in thermal_get_temp()  argument
 34 	struct spear_thermal_dev *stdev = thermal_zone_device_priv(thermal);  in thermal_get_temp()
 40 	*temp = (readl_relaxed(stdev->thermal_base) & 0x7F) * MD_FACTOR;  in thermal_get_temp()
 [all …]
 
 | 
| /linux/drivers/thermal/renesas/ | 
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only4 	tristate "Renesas R-Car thermal driver"
 9 	  Enable this to plug the R-Car thermal sensor driver into the Linux
 10 	  thermal framework.
 13 	tristate "Renesas R-Car Gen3/Gen4 and RZ/G2 thermal driver"
 18 	  Enable this to plug the R-Car Gen3/Gen4 or RZ/G2 thermal sensor
 19 	  driver into the Linux thermal framework.
 22 	tristate "Renesas RZ/G2L thermal driver"
 27 	  Enable this to plug the RZ/G2L thermal sensor driver into the Linux
 28 	  thermal framework.
 [all …]
 
 | 
| /linux/drivers/thermal/st/ | 
| H A D | st_thermal.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */3  * ST Thermal Sensor Driver for STi series of SoCs
 6  * Copyright (C) 2003-2014 STMicroelectronics (R&D) Limited
 15 #include <linux/thermal.h>
 28 /* Thermal sensor power states */
 37  * Description of private thermal sensor ops.
 39  * @power_ctrl:		Function for powering on/off a sensor. Clock to the
 40  *			sensor is also controlled from this function.
 41  * @alloc_regfields:	Allocate regmap register fields, specific to a sensor.
 42  * @do_memmap_regmap:	Memory map the thermal register space and init regmap
 [all …]
 
 |