Home
last modified time | relevance | path

Searched +full:- +full:thermal (Results 1 – 25 of 1058) sorted by relevance

12345678910>>...43

/OK3568_Linux_fs/kernel/drivers/thermal/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
3 # 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 Dda9062-thermal.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Thermal device driver for DA9062 and DA9061
7 /* When over-temperature is reached, an interrupt from the device will be
11 * implementation of the thermal driver will include a .notify() function
14 * These uevents are intended to indicate non-invasive temperature control
17 * the IRQ is re-enabled so the start of a new over-temperature event can
27 #include <linux/thermal.h>
61 struct da9062_thermal *thermal = container_of(work, in da9062_thermal_poll_on() local
69 ret = regmap_write(thermal->hw->regmap, in da9062_thermal_poll_on()
73 dev_err(thermal->dev, in da9062_thermal_poll_on()
[all …]
H A Drockchip_thermal.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2014-2016, Fuzhou Rockchip Electronics Co., Ltd
4 * Caesar Wang <wxt@rock-chips.com>
19 #include <linux/thermal.h>
22 #include <linux/nvmem-consumer.h>
71 * struct chip_tsadc_table - hold information about chip-specific differences
90 * struct rockchip_tsadc_chip - hold the private data of tsadc chip
95 * @tshut_temp: the hardware-controlled shutdown temperature value
96 * @tshut_mode: the hardware-controlled shutdown mode (0:CRU 1:GPIO)
97 * @tshut_polarity: the hardware-controlled active polarity (0:LOW 1:HIGH)
[all …]
H A Dkirkwood_thermal.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Kirkwood thermal sensor driver
14 #include <linux/thermal.h>
21 /* Kirkwood Thermal Sensor Dev Structure */
26 static int kirkwood_get_temp(struct thermal_zone_device *thermal, in kirkwood_get_temp() argument
30 struct kirkwood_thermal_priv *priv = thermal->devdata; in kirkwood_get_temp()
32 reg = readl_relaxed(priv->sensor); in kirkwood_get_temp()
37 dev_err(&thermal->device, in kirkwood_get_temp()
39 return -EIO; in kirkwood_get_temp()
45 * Celsius = (322-reg)/1.3625 in kirkwood_get_temp()
[all …]
H A Dthermal_of.c1 // SPDX-License-Identifier: GPL-2.0
3 * of-thermal.c - Generic Thermal Management device tree support.
16 #include <linux/thermal.h>
22 /*** Private data structures to represent thermal device tree data ***/
25 * struct __thermal_cooling_bind_param - a cooling device for a trip point
38 * struct __thermal_bind_param - a match between trip and cooling device
53 * struct __thermal_zone - internal representation of a thermal zone
59 * @trips: an array of trip points (0..ntrips - 1)
60 * @num_tbps: number of thermal bind params
61 * @tbps: an array of thermal bind params (0..num_tbps - 1)
[all …]
H A Dthermal_core.c1 // SPDX-License-Identifier: GPL-2.0
3 * thermal.c - Generic Thermal Management Sysfs support.
18 #include <linux/thermal.h>
25 #include <trace/events/thermal.h>
27 #include <trace/hooks/thermal.h>
49 * Governor section: set of functions to handle thermal governors
51 * Functions to help in the life cycle of thermal governors within
52 * the thermal core and by the thermal governor code.
63 if (!strncasecmp(name, pos->name, THERMAL_NAME_LENGTH)) in __find_governor()
70 * bind_previous_governor() - bind the previous governor of the thermal zone
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/thermal/
H A Drcar-thermal.yaml1 # SPDX-License-Identifier: GPL-2.0-only
4 ---
5 $id: http://devicetree.org/schemas/thermal/rcar-thermal.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: Renesas R-Car Thermal
11 - Niklas Söderlund <niklas.soderlund@ragnatech.se>
16 - items:
17 - enum:
18 - renesas,thermal-r8a73a4 # R-Mobile APE6
19 - renesas,thermal-r8a7779 # R-Car H1
[all …]
H A Dthermal-zones.yaml1 # SPDX-License-Identifier: (GPL-2.0)
4 ---
5 $id: http://devicetree.org/schemas/thermal/thermal-zones.yaml#
6 $schema: http://devicetree.org/meta-schemas/base.yaml#
8 title: Thermal zone binding
11 - Amit Kucheria <amitk@kernel.org>
14 Thermal management is achieved in devicetree by describing the sensor hardware
15 and the software abstraction of cooling devices and thermal zones required to
16 take appropriate action to mitigate thermal overloads.
18 The following node types are used to completely describe a thermal management
[all …]
H A Dbrcm,sr-thermal.txt1 * Broadcom Stingray Thermal
3 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 …]
H A Drcar-gen3-thermal.yaml1 # SPDX-License-Identifier: GPL-2.0-only
4 ---
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 R-Car Gen3 SoCs, the thermal sensor controllers (TSC) control the thermal
16 - Niklas Söderlund <niklas.soderlund@ragnatech.se>
21 - renesas,r8a774a1-thermal # RZ/G2M
22 - renesas,r8a774b1-thermal # RZ/G2N
23 - renesas,r8a774e1-thermal # RZ/G2H
[all …]
H A Dbrcm,bcm2835-thermal.txt1 Binding for Thermal Sensor driver for BCM2835 SoCs.
4 -------------------
6 compatible: should be one of: "brcm,bcm2835-thermal",
7 "brcm,bcm2836-thermal" or "brcm,bcm2837-thermal"
8 reg: Address range of the thermal registers.
9 clocks: Phandle of the clock used by the thermal sensor.
10 #thermal-sensor-cells: should be 0 (see Documentation/devicetree/bindings/thermal/thermal-sensor.ya…
14 thermal-zones {
15 cpu_thermal: cpu-thermal {
16 polling-delay-passive = <0>;
[all …]
H A Dmediatek-thermal.txt1 * Mediatek Thermal
3 This describes the device tree binding for the Mediatek thermal controller
4 which measures the on-SoC temperatures. This device does not have its own ADC,
11 - compatible:
12 - "mediatek,mt8173-thermal" : For MT8173 family of SoCs
13 - "mediatek,mt2701-thermal" : For MT2701 family of SoCs
14 - "mediatek,mt2712-thermal" : For MT2712 family of SoCs
15 - "mediatek,mt7622-thermal" : For MT7622 SoC
16 - "mediatek,mt8183-thermal" : For MT8183 family of SoCs
17 - reg: Address range of the thermal controller
[all …]
H A Dthermal-sensor.yaml1 # 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 binding
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 Damazon,al-thermal.txt1 Amazon's Annapurna Labs Thermal Sensor
3 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 Darmada-thermal.txt1 * Marvell Armada 370/375/380/XP thermal management
5 - compatible: Should be set to one of the following:
6 * marvell,armada370-thermal
7 * marvell,armada375-thermal
8 * marvell,armada380-thermal
9 * marvell,armadaxp-thermal
10 * marvell,armada-ap806-thermal
11 * marvell,armada-cp110-thermal
15 Documentation/devicetree/bindings/arm/marvell/ap80x-system-controller.txt
16 Documentation/devicetree/bindings/arm/marvell/cp110-system-controller.txt
[all …]
H A Dnvidia,tegra186-bpmp-thermal.txt1 NVIDIA Tegra186 BPMP thermal sensor
5 and GPU temperatures. This binding describes the thermal sensor that is
8 The BPMP thermal node must be located directly inside the main BPMP node. See
9 ../firmware/nvidia,tegra186-bpmp.txt for details of the BPMP binding.
11 This node represents a thermal sensor. See Documentation/devicetree/bindings/thermal/thermal-sensor…
12 core thermal binding.
15 - compatible:
18 - "nvidia,tegra186-bpmp-thermal"
19 - "nvidia,tegra194-bpmp-thermal"
20 - #thermal-sensor-cells: Cell for sensor index.
[all …]
H A Dbrcm,avs-ro-thermal.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/thermal/brcm,avs-ro-thermal.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Broadcom AVS ring oscillator thermal
10 - Stefan Wahren <wahrenst@gmx.net>
13 The thermal node should be the child of a syscon node with the
16 - compatible: Should be one of the following:
17 "brcm,bcm2711-avs-monitor", "syscon", "simple-mfd"
24 const: brcm,bcm2711-thermal
[all …]
H A Dbrcm,ns-thermal.txt1 * Broadcom Northstar Thermal
3 This binding describes thermal sensor that is part of Northstar's DMU (Device
7 - compatible : Must be "brcm,ns-thermal"
8 - reg : iomem address range of PVTMON registers
9 - #thermal-sensor-cells : Should be <0>
13 thermal: thermal@1800c2c0 {
14 compatible = "brcm,ns-thermal";
16 #thermal-sensor-cells = <0>;
19 thermal-zones {
20 cpu_thermal: cpu-thermal {
[all …]
H A Dsocionext,uniphier-thermal.yaml1 # 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>
20 - socionext,uniphier-pxs2-thermal
21 - socionext,uniphier-ld20-thermal
22 - socionext,uniphier-pxs3-thermal
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlxsw/
H A Dcore_thermal.c1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0
2 /* Copyright (c) 2016-2018 Mellanox Technologies. All rights reserved
10 #include <linux/thermal.h>
31 /* External cooling devices, allowed for binding to mlxsw thermal zones. */
52 { /* In range - 0-40% PWM */
60 /* In range - 40-100% PWM */
74 { /* Critical - soft poweroff */
85 #define MLXSW_THERMAL_TRIP_MASK (BIT(MLXSW_THERMAL_NUM_TRIPS) - 1)
124 static int mlxsw_get_cooling_device_idx(struct mlxsw_thermal *thermal, in mlxsw_get_cooling_device_idx() argument
130 if (thermal->cdevs[i] == cdev) in mlxsw_get_cooling_device_idx()
[all …]
/OK3568_Linux_fs/kernel/Documentation/driver-api/thermal/
H A Dsysfs-api.rst2 Generic Thermal Sysfs driver How To
15 The generic thermal sysfs provides a set of interfaces for thermal zone
16 devices (sensors) and thermal cooling devices (fan, processor...) to register
17 with the thermal management solution and to be a part of it.
19 This how-to focuses on enabling new thermal zone and cooling devices to
20 participate in thermal management.
21 This solution is platform independent and any type of thermal zone devices
24 The main task of the thermal sysfs driver is to expose thermal zone attributes
26 An intelligent thermal management application can make decisions based on
27 inputs from thermal zone attributes (the current temperature and trip point
[all …]
/OK3568_Linux_fs/kernel/drivers/thermal/intel/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
8 enforce idle time which results in more package C-state residency. The
9 user interface is exposed via generic thermal framework.
12 tristate "X86 package temperature thermal driver"
19 thermal zone. Each package will have its own thermal zone. There are
20 two trip points which can be set by user to get notifications via thermal
34 tristate "Intel SoCs DTS thermal driver"
42 thermal zone. There are two trip points. One of the trip point can
43 be set by user mode programs to get notifications via Linux thermal
48 tristate "Intel Quark DTS thermal driver"
[all …]
/OK3568_Linux_fs/kernel/drivers/thermal/ti-soc-thermal/
H A DMakefile1 # SPDX-License-Identifier: GPL-2.0
2 obj-$(CONFIG_TI_SOC_THERMAL) += ti-soc-thermal.o
3 ti-soc-thermal-y := ti-bandgap.o
4 ti-soc-thermal-$(CONFIG_TI_THERMAL) += ti-thermal-common.o
5 ti-soc-thermal-$(CONFIG_DRA752_THERMAL) += dra752-thermal-data.o
6 ti-soc-thermal-$(CONFIG_OMAP3_THERMAL) += omap3-thermal-data.o
7 ti-soc-thermal-$(CONFIG_OMAP4_THERMAL) += omap4-thermal-data.o
8 ti-soc-thermal-$(CONFIG_OMAP5_THERMAL) += omap5-thermal-data.o
/OK3568_Linux_fs/kernel/tools/thermal/tmon/
H A Dtmon.82 # SPDX-License-Identifier: GPL-2.0
4 \fBtmon\fP - A monitoring and testing tool for Linux kernel thermal subsystem
12 \fBtmon \fP can be used to visualize thermal relationship and
13 real-time thermal data; tune
14 and test cooling devices and sensors; collect thermal data for offline
21 1. Thermal relationships:
22 - show thermal zone information
23 - show cooling device information
24 - show trip point binding within each thermal zone
25 - show trip point and cooling device instance bindings
[all …]
/OK3568_Linux_fs/kernel/drivers/thermal/broadcom/
H A Dbcm2711_thermal.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Broadcom AVS RO thermal sensor driver
21 #include <linux/thermal.h>
31 struct thermal_zone_device *thermal; member
37 int slope = thermal_zone_get_slope(priv->thermal); in bcm2711_get_temp()
38 int offset = thermal_zone_get_offset(priv->thermal); in bcm2711_get_temp()
42 ret = regmap_read(priv->regmap, AVS_RO_TEMP_STATUS, &val); in bcm2711_get_temp()
47 return -EIO; in bcm2711_get_temp()
62 { .compatible = "brcm,bcm2711-thermal" },
69 struct thermal_zone_device *thermal; in bcm2711_thermal_probe() local
[all …]

12345678910>>...43