Home
last modified time | relevance | path

Searched refs:thermal (Results 1 – 25 of 325) sorted by relevance

12345678910>>...13

/Linux-v4.19/drivers/thermal/
Dda9062-thermal.c71 struct da9062_thermal *thermal = container_of(work, in da9062_thermal_poll_on() local
79 ret = regmap_write(thermal->hw->regmap, in da9062_thermal_poll_on()
83 dev_err(thermal->dev, in da9062_thermal_poll_on()
92 ret = regmap_read(thermal->hw->regmap, in da9062_thermal_poll_on()
96 dev_err(thermal->dev, in da9062_thermal_poll_on()
102 mutex_lock(&thermal->lock); in da9062_thermal_poll_on()
103 thermal->temperature = DA9062_MILLI_CELSIUS(125); in da9062_thermal_poll_on()
104 mutex_unlock(&thermal->lock); in da9062_thermal_poll_on()
105 thermal_zone_device_update(thermal->zone, in da9062_thermal_poll_on()
108 delay = msecs_to_jiffies(thermal->zone->passive_delay); in da9062_thermal_poll_on()
[all …]
Drockchip_thermal.c140 struct rockchip_thermal_data *thermal; member
1036 struct rockchip_thermal_data *thermal = dev; in rockchip_thermal_alarm_irq_thread() local
1039 dev_dbg(&thermal->pdev->dev, "thermal alarm\n"); in rockchip_thermal_alarm_irq_thread()
1041 thermal->chip->irq_ack(thermal->regs); in rockchip_thermal_alarm_irq_thread()
1043 for (i = 0; i < thermal->chip->chn_num; i++) in rockchip_thermal_alarm_irq_thread()
1044 thermal_zone_device_update(thermal->sensors[i].tzd, in rockchip_thermal_alarm_irq_thread()
1053 struct rockchip_thermal_data *thermal = sensor->thermal; in rockchip_thermal_set_trips() local
1054 const struct rockchip_tsadc_chip *tsadc = thermal->chip; in rockchip_thermal_set_trips()
1056 dev_dbg(&thermal->pdev->dev, "%s: sensor %d: low: %d, high %d\n", in rockchip_thermal_set_trips()
1060 sensor->id, thermal->regs, high); in rockchip_thermal_set_trips()
[all …]
DKconfig2 # Generic thermal sysfs drivers configuration
9 thermal management. Usually it's made up of one or more thermal
11 Each thermal zone contains its own temperature, trip points,
13 All platforms with ACPI thermal support can use this driver.
21 Export thermal state transition statistics information through sysfs.
32 case of failure of an orderly_poweroff(), the thermal emergency
44 prompt "Expose thermal sensors as hwmon device"
48 In case a sensor is registered with the thermal
53 Say 'Y' here if you want all thermal sensors to
58 prompt "APIs to parse thermal data out of device tree"
[all …]
Dkirkwood_thermal.c35 static int kirkwood_get_temp(struct thermal_zone_device *thermal, in kirkwood_get_temp() argument
39 struct kirkwood_thermal_priv *priv = thermal->devdata; in kirkwood_get_temp()
46 dev_err(&thermal->device, in kirkwood_get_temp()
74 struct thermal_zone_device *thermal = NULL; in kirkwood_thermal_probe() local
87 thermal = thermal_zone_device_register("kirkwood_thermal", 0, 0, in kirkwood_thermal_probe()
89 if (IS_ERR(thermal)) { in kirkwood_thermal_probe()
92 return PTR_ERR(thermal); in kirkwood_thermal_probe()
95 platform_set_drvdata(pdev, thermal); in kirkwood_thermal_probe()
/Linux-v4.19/Documentation/devicetree/bindings/thermal/
Drcar-thermal.txt4 - compatible : "renesas,thermal-<soctype>",
5 "renesas,rcar-gen2-thermal" (with thermal-zone) or
6 "renesas,rcar-thermal" (without thermal-zone) as
9 - "renesas,thermal-r8a73a4" (R-Mobile APE6)
10 - "renesas,thermal-r8a7743" (RZ/G1M)
11 - "renesas,thermal-r8a7779" (R-Car H1)
12 - "renesas,thermal-r8a7790" (R-Car H2)
13 - "renesas,thermal-r8a7791" (R-Car M2-W)
14 - "renesas,thermal-r8a7792" (R-Car V2H)
15 - "renesas,thermal-r8a7793" (R-Car M2-N)
[all …]
Dbrcm,bcm2835-thermal.txt6 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 thermal.txt)
14 thermal-zones {
15 cpu_thermal: cpu-thermal {
19 thermal-sensors = <&thermal>;
36 thermal: thermal@7e212000 {
37 compatible = "brcm,bcm2835-thermal";
[all …]
Dbrcm,ns-thermal.txt3 This binding describes thermal sensor that is part of Northstar's DMU (Device
7 - compatible : Must be "brcm,ns-thermal"
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 {
24 thermal-sensors = <&thermal>;
Dthermal.txt4 defining hardware thermal structure using device tree.
5 A thermal structure includes thermal zones and their components,
9 The target of device tree thermal descriptors is to describe only
10 the hardware thermal aspects. The thermal device tree bindings are
14 There are five types of nodes involved to describe thermal bindings:
15 - thermal sensors: devices which may be used to take temperature
21 - thermal zones: used to describe thermal data within the hardware;
28 thermal zones. Typical devices are I2C ADC converters and bandgaps. These are
29 nodes providing temperature data to thermal zones. Thermal sensor devices may
33 - #thermal-sensor-cells: Used to provide sensor device specific information
[all …]
Darmada-thermal.txt1 * Marvell Armada 370/375/380/XP thermal management
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
22 Note: The compatibles marvell,armada370-thermal,
23 marvell,armada380-thermal, and marvell,armadaxp-thermal must point to
31 thermal@d0018300 {
[all …]
Dmediatek-thermal.txt3 This describes the device tree binding for the Mediatek thermal controller
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 - reg: Address range of the thermal controller
17 - interrupts: IRQ for the thermal controller
18 - clocks, clock-names: Clocks needed for the thermal controller. required
22 - resets: Reference to the reset controller controlling the thermal controller.
23 - mediatek,auxadc: A phandle to the AUXADC which the thermal controller uses
[all …]
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
11 This node represents a thermal sensor. See thermal.txt for details of the
12 core thermal binding.
18 - "nvidia,tegra186-bpmp-thermal".
19 - #thermal-sensor-cells: Cell for sensor index.
28 bpmp_thermal: thermal {
29 compatible = "nvidia,tegra186-bpmp-thermal";
30 #thermal-sensor-cells = <1>;
Drcar-gen3-thermal.txt3 On R-Car Gen3 SoCs, the thermal sensor controllers (TSC) control the thermal
8 - compatible : "renesas,<soctype>-thermal",
10 - "renesas,r8a7795-thermal" (R-Car H3)
11 - "renesas,r8a7796-thermal" (R-Car M3-W)
12 - "renesas,r8a77965-thermal" (R-Car M3-N)
13 - reg : Address ranges of the thermal registers. Each sensor
18 - #thermal-sensor-cells : must be <1>.
24 property is mandatory if the thermal sensor instance
29 tsc: thermal@e6198000 {
30 compatible = "renesas,r8a7795-thermal";
[all …]
Dda9062-thermal.txt6 Junction temperature thermal module uses an interrupt signal to identify
12 "dlg,da9061-thermal", "dlg,da9062-thermal"
13 "dlg,da9062-thermal"
18 milliseconds, between thermal zone device update checks.
23 thermal {
24 compatible = "dlg,da9062-thermal";
32 thermal {
33 compatible = "dlg,da9061-thermal", "dlg,da9062-thermal";
Dmax77620_thermal.txt11 #thermal-sensor-cells: Please refer <devicetree/bindings/thermal/thermal.txt>
15 For more details, please refer generic thermal DT binding document
16 <devicetree/bindings/thermal/thermal.txt>.
24 #include <dt-bindings/thermal/thermal.h>
31 #thermal-sensor-cells = <0>;
41 thermal-zones {
45 thermal-sensors = <&spmic>;
Dspear-thermal.txt4 - compatible : "st,thermal-spear1340"
5 - reg : Address range of the thermal registers
6 - st,thermal-flags: flags used to enable thermal sensor
10 thermal@fc000000 {
11 compatible = "st,thermal-spear1340";
13 st,thermal-flags = <0x7000>;
Dthermal-generic-adc.txt1 General Purpose Analog To Digital Converter (ADC) based thermal sensor.
3 On some of platforms, thermal sensor like thermistors are connected to
10 - compatible: Must be "generic-adc-thermal".
19 - #thermal-sensor-cells: Should be 1. See ./thermal.txt for a description
23 #include <dt-bindings/thermal/thermal.h>
34 tboard_thermistor: thermal-sensor {
35 compatible = "generic-adc-thermal";
36 #thermal-sensor-cells = <0>;
66 thermal-zones {
70 thermal-sensors = <&tboard_thermistor>;
Duniphier-thermal.txt3 This describes the devicetree bindings for thermal monitor supported by
9 - "socionext,uniphier-pxs2-thermal" : For UniPhier PXs2 SoC
10 - "socionext,uniphier-ld20-thermal" : For UniPhier LD20 SoC
11 - "socionext,uniphier-pxs3-thermal" : For UniPhier PXs3 SoC
13 - #thermal-sensor-cells : Should be 0. See ./thermal.txt for details.
28 compatible = "socionext,uniphier-ld20-thermal";
30 #thermal-sensor-cells = <0>;
35 thermal-zones {
39 thermal-sensors = <&pvtctl>;
Dtango-thermal.txt7 - #thermal-sensor-cells: Should be 0 (see thermal.txt)
8 - compatible: "sigma,smp8758-thermal"
9 - reg: Address range of the thermal registers
13 cpu_temp: thermal@920100 {
14 #thermal-sensor-cells = <0>;
15 compatible = "sigma,smp8758-thermal";
/Linux-v4.19/drivers/net/ethernet/mellanox/mlxsw/
Dcore_thermal.c87 static int mlxsw_get_cooling_device_idx(struct mlxsw_thermal *thermal, in mlxsw_get_cooling_device_idx() argument
93 if (thermal->cdevs[i] == cdev) in mlxsw_get_cooling_device_idx()
102 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_bind() local
103 struct device *dev = thermal->bus_info->dev; in mlxsw_thermal_bind()
107 if (mlxsw_get_cooling_device_idx(thermal, cdev) < 0) in mlxsw_thermal_bind()
111 const struct mlxsw_thermal_trip *trip = &thermal->trips[i]; in mlxsw_thermal_bind()
128 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_unbind() local
129 struct device *dev = thermal->bus_info->dev; in mlxsw_thermal_unbind()
134 if (mlxsw_get_cooling_device_idx(thermal, cdev) < 0) in mlxsw_thermal_unbind()
150 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_get_mode() local
[all …]
/Linux-v4.19/drivers/thermal/ti-soc-thermal/
DMakefile2 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
/Linux-v4.19/Documentation/thermal/
Dsysfs-api.txt13 The generic thermal sysfs provides a set of interfaces for thermal zone
14 devices (sensors) and thermal cooling devices (fan, processor...) to register
15 with the thermal management solution and to be a part of it.
17 This how-to focuses on enabling new thermal zone and cooling devices to
18 participate in thermal management.
19 This solution is platform independent and any type of thermal zone devices
22 The main task of the thermal sysfs driver is to expose thermal zone attributes
24 An intelligent thermal management application can make decisions based on
25 inputs from thermal zone attributes (the current temperature and trip point
31 1. thermal sysfs driver interface functions
[all …]
Dx86_pkg_temperature_thermal5 * x86: with package level thermal management
18 This driver register CPU digital temperature package level sensor as a thermal
21 user mode can receive notification via thermal notification mechanism and can
27 Each package will register as a thermal zone under /sys/class/thermal.
29 /sys/class/thermal/thermal_zone1
36 are in milli-degree Celsius. Refer to "Documentation/thermal/sysfs-api.txt" for
37 thermal sys-fs details.
39 Any value other than 0 in these trip points, can trigger thermal notifications.
40 Setting 0, stops sending thermal notifications.
42 Thermal notifications: To get kobject-uevent notifications, set the thermal zone
/Linux-v4.19/drivers/net/wireless/ath/ath10k/
Dthermal.c42 *state = ar->thermal.throttle_state; in ath10k_thermal_get_cur_throttle_state()
60 ar->thermal.throttle_state = throttle_state; in ath10k_thermal_set_cur_throttle_state()
88 reinit_completion(&ar->thermal.wmi_sync); in ath10k_thermal_show_temp()
100 time_left = wait_for_completion_timeout(&ar->thermal.wmi_sync, in ath10k_thermal_show_temp()
109 temperature = ar->thermal.temperature; in ath10k_thermal_show_temp()
122 ar->thermal.temperature = temperature; in ath10k_thermal_event_temperature()
124 complete(&ar->thermal.wmi_sync); in ath10k_thermal_event_temperature()
149 period = ar->thermal.quiet_period; in ath10k_thermal_set_throttling()
150 duration = (period * ar->thermal.throttle_state) / 100; in ath10k_thermal_set_throttling()
184 ar->thermal.cdev = cdev; in ath10k_thermal_register()
[all …]
/Linux-v4.19/drivers/thermal/broadcom/
Dbrcmstb_thermal.c117 struct thermal_zone_device *thermal; member
179 t = avs_tmon_code_to_temp(priv->thermal, val); in brcmstb_get_temp()
213 return avs_tmon_code_to_temp(priv->thermal, val); in avs_tmon_get_trip_temp()
226 val = avs_tmon_temp_to_code(priv->thermal, temp, in avs_tmon_set_trip_temp()
243 return avs_tmon_code_to_temp(priv->thermal, val); in avs_tmon_get_intr_temp()
269 thermal_zone_device_update(priv->thermal, intr); in brcmstb_tmon_irq_thread()
315 struct thermal_zone_device *thermal; in brcmstb_thermal_probe() local
332 thermal = thermal_zone_of_sensor_register(&pdev->dev, 0, priv, &of_ops); in brcmstb_thermal_probe()
333 if (IS_ERR(thermal)) { in brcmstb_thermal_probe()
334 ret = PTR_ERR(thermal); in brcmstb_thermal_probe()
[all …]
/Linux-v4.19/drivers/thermal/int340x_thermal/
DKconfig2 # ACPI INT340x thermal drivers configuration
6 tristate "ACPI INT340X thermal drivers"
13 Newer laptops and tablets that use ACPI may have thermal sensors and
14 other devices with thermal control capabilities outside the core
15 CPU/SOC, for thermal safety reasons.
19 from these objects to userspace via the normal thermal framework.
33 tristate "ACPI INT3406 display thermal driver"
36 The display thermal device represents the LED/LCD display panel
38 the display thermal device is to allow control of the display
39 brightness in order to address a thermal condition or to reduce

12345678910>>...13