| /Linux-v5.15/drivers/thermal/ |
| D | da9062-thermal.c | 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() 82 ret = regmap_read(thermal->hw->regmap, in da9062_thermal_poll_on() 86 dev_err(thermal->dev, in da9062_thermal_poll_on() 92 mutex_lock(&thermal->lock); in da9062_thermal_poll_on() 93 thermal->temperature = DA9062_MILLI_CELSIUS(125); in da9062_thermal_poll_on() 94 mutex_unlock(&thermal->lock); in da9062_thermal_poll_on() 95 thermal_zone_device_update(thermal->zone, in da9062_thermal_poll_on() 98 delay = thermal->zone->passive_delay_jiffies; in da9062_thermal_poll_on() [all …]
|
| D | rockchip_thermal.c | 135 struct rockchip_thermal_data *thermal; member 1200 struct rockchip_thermal_data *thermal = dev; in rockchip_thermal_alarm_irq_thread() local 1203 dev_dbg(&thermal->pdev->dev, "thermal alarm\n"); in rockchip_thermal_alarm_irq_thread() 1205 thermal->chip->irq_ack(thermal->regs); in rockchip_thermal_alarm_irq_thread() 1207 for (i = 0; i < thermal->chip->chn_num; i++) in rockchip_thermal_alarm_irq_thread() 1208 thermal_zone_device_update(thermal->sensors[i].tzd, in rockchip_thermal_alarm_irq_thread() 1217 struct rockchip_thermal_data *thermal = sensor->thermal; in rockchip_thermal_set_trips() local 1218 const struct rockchip_tsadc_chip *tsadc = thermal->chip; in rockchip_thermal_set_trips() 1220 dev_dbg(&thermal->pdev->dev, "%s: sensor %d: low: %d, high %d\n", in rockchip_thermal_set_trips() 1224 sensor->id, thermal->regs, high); in rockchip_thermal_set_trips() [all …]
|
| D | Kconfig | 3 # Generic thermal drivers configuration 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 24 The thermal framework has a netlink interface to do thermal 32 Export thermal state transition statistics information through sysfs. 42 case of failure of an orderly_poweroff(), the thermal emergency 54 prompt "Expose thermal sensors as hwmon device" 58 In case a sensor is registered with the thermal 63 Say 'Y' here if you want all thermal sensors to [all …]
|
| D | kirkwood_thermal.c | 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() 37 dev_err(&thermal->device, in kirkwood_get_temp() 65 struct thermal_zone_device *thermal = NULL; in kirkwood_thermal_probe() local 79 thermal = thermal_zone_device_register("kirkwood_thermal", 0, 0, in kirkwood_thermal_probe() 81 if (IS_ERR(thermal)) { in kirkwood_thermal_probe() 84 return PTR_ERR(thermal); in kirkwood_thermal_probe() 86 ret = thermal_zone_device_enable(thermal); in kirkwood_thermal_probe() 88 thermal_zone_device_unregister(thermal); in kirkwood_thermal_probe() 93 platform_set_drvdata(pdev, thermal); in kirkwood_thermal_probe()
|
| D | dove_thermal.c | 86 static int dove_get_temp(struct thermal_zone_device *thermal, in dove_get_temp() argument 90 struct dove_thermal_priv *priv = thermal->devdata; in dove_get_temp() 95 dev_err(&thermal->device, in dove_get_temp() 123 struct thermal_zone_device *thermal = NULL; in dove_thermal_probe() local 148 thermal = thermal_zone_device_register("dove_thermal", 0, 0, in dove_thermal_probe() 150 if (IS_ERR(thermal)) { in dove_thermal_probe() 153 return PTR_ERR(thermal); in dove_thermal_probe() 156 ret = thermal_zone_device_enable(thermal); in dove_thermal_probe() 158 thermal_zone_device_unregister(thermal); in dove_thermal_probe() 162 platform_set_drvdata(pdev, thermal); in dove_thermal_probe()
|
| /Linux-v5.15/drivers/net/ethernet/mellanox/mlxsw/ |
| D | core_thermal.c | 115 static int mlxsw_get_cooling_device_idx(struct mlxsw_thermal *thermal, in mlxsw_get_cooling_device_idx() argument 121 if (thermal->cdevs[i] == cdev) in mlxsw_get_cooling_device_idx() 189 static void mlxsw_thermal_tz_score_update(struct mlxsw_thermal *thermal, in mlxsw_thermal_tz_score_update() argument 211 if (score > thermal->tz_highest_score) { in mlxsw_thermal_tz_score_update() 212 thermal->tz_highest_score = score; in mlxsw_thermal_tz_score_update() 213 thermal->tz_highest_dev = tzdev; in mlxsw_thermal_tz_score_update() 220 struct mlxsw_thermal *thermal = tzdev->devdata; in mlxsw_thermal_bind() local 221 struct device *dev = thermal->bus_info->dev; in mlxsw_thermal_bind() 225 if (mlxsw_get_cooling_device_idx(thermal, cdev) < 0) in mlxsw_thermal_bind() 229 const struct mlxsw_thermal_trip *trip = &thermal->trips[i]; in mlxsw_thermal_bind() [all …]
|
| /Linux-v5.15/Documentation/devicetree/bindings/thermal/ |
| D | brcm,bcm2835-thermal.txt | 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 { 19 thermal-sensors = <&thermal>; 36 thermal: thermal@7e212000 { 37 compatible = "brcm,bcm2835-thermal"; [all …]
|
| D | brcm,sr-thermal.txt | 3 This binding describes thermal sensors that is part of Stingray SoCs. 6 - compatible : Must be "brcm,sr-thermal" 10 - #thermal-sensor-cells : Thermal sensor phandler 12 - thermal-sensors: A list of thermal sensor phandles and specifier. 25 compatible = "brcm,sr-thermal"; 28 #thermal-sensor-cells = <1>; 32 thermal-zones { 33 ihost0_thermal: ihost0-thermal { 36 thermal-sensors = <&tmon 0>; 45 ihost1_thermal: ihost1-thermal { [all …]
|
| D | amazon,al-thermal.txt | 3 Simple thermal device that allows temperature reading by a single MMIO 7 - compatible: "amazon,al-thermal". 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 { 22 thermal-sensors = <&thermal 0>;
|
| D | mediatek-thermal.txt | 3 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 - "mediatek,mt8183-thermal" : For MT8183 family of SoCs 17 - "mediatek,mt8516-thermal", "mediatek,mt2701-thermal : For MT8516 family of SoCs 18 - reg: Address range of the thermal controller 19 - interrupts: IRQ for the thermal controller 20 - clocks, clock-names: Clocks needed for the thermal controller. required [all …]
|
| D | nvidia,tegra186-bpmp-thermal.txt | 1 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 Documentation/devicetree/bindings/thermal/thermal-sensor… 12 core thermal binding. 18 - "nvidia,tegra186-bpmp-thermal" 19 - "nvidia,tegra194-bpmp-thermal" 20 - #thermal-sensor-cells: Cell for sensor index. 29 bpmp_thermal: thermal { 30 compatible = "nvidia,tegra186-bpmp-thermal"; [all …]
|
| D | armada-thermal.txt | 1 * 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 …]
|
| D | da9062-thermal.txt | 6 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";
|
| D | thermal-generic-adc.txt | 1 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". 11 - #thermal-sensor-cells: Should be 1. See Documentation/devicetree/bindings/thermal/thermal-sen… 29 #include <dt-bindings/thermal/thermal.h> 40 tboard_thermistor: thermal-sensor { 41 compatible = "generic-adc-thermal"; 42 #thermal-sensor-cells = <0>; 72 thermal-zones { 76 thermal-sensors = <&tboard_thermistor>;
|
| D | max77620_thermal.txt | 11 #thermal-sensor-cells: For more details, please refer to 12 <devicetree/bindings/thermal/thermal-sensor.yaml> 15 For more details, please refer generic thermal DT binding document 16 <devicetree/bindings/thermal/thermal*.yaml>. 24 #include <dt-bindings/thermal/thermal.h> 31 #thermal-sensor-cells = <0>; 41 thermal-zones { 45 thermal-sensors = <&spmic>;
|
| D | spear-thermal.txt | 4 - 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>;
|
| D | qcom-spmi-temp-alarm.txt | 11 - #thermal-sensor-cells: Should be 0. See Documentation/devicetree/bindings/thermal/thermal-sensor.… 16 - io-channel-names: Should contain "thermal". 20 pm8941_temp: thermal-alarm@2400 { 24 #thermal-sensor-cells = <0>; 27 io-channel-names = "thermal"; 30 thermal-zones { 35 thermal-sensors = <&pm8941_temp>;
|
| /Linux-v5.15/drivers/thermal/ti-soc-thermal/ |
| D | Makefile | 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
|
| /Linux-v5.15/Documentation/driver-api/thermal/ |
| D | sysfs-api.rst | 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 33 1. thermal sysfs driver interface functions [all …]
|
| D | x86_pkg_temperature_thermal.rst | 7 * x86: with package level thermal management 22 This driver register CPU digital temperature package level sensor as a thermal 25 user mode can receive notification via thermal notification mechanism and can 31 Each package will register as a thermal zone under /sys/class/thermal. 35 /sys/class/thermal/thermal_zone1 43 are in milli-degree Celsius. Refer to "Documentation/driver-api/thermal/sysfs-api.rst" for 44 thermal sys-fs details. 46 Any value other than 0 in these trip points, can trigger thermal notifications. 47 Setting 0, stops sending thermal notifications. 50 To get kobject-uevent notifications, set the thermal zone
|
| /Linux-v5.15/drivers/thermal/broadcom/ |
| D | bcm2711_thermal.c | 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() 72 struct thermal_zone_device *thermal; in bcm2711_thermal_probe() local 94 thermal = devm_thermal_zone_of_sensor_register(dev, 0, priv, in bcm2711_thermal_probe() 96 if (IS_ERR(thermal)) { in bcm2711_thermal_probe() 97 ret = PTR_ERR(thermal); in bcm2711_thermal_probe() 102 priv->thermal = thermal; in bcm2711_thermal_probe() 104 thermal->tzp->no_hwmon = false; in bcm2711_thermal_probe() 105 return thermal_add_hwmon_sysfs(thermal); in bcm2711_thermal_probe()
|
| D | Kconfig | 3 tristate "Broadcom AVS RO thermal sensor driver" 7 Support for thermal sensors on Broadcom BCM2711 SoCs. 15 Support for thermal sensors on Broadcom bcm2835 SoCs. 18 tristate "Broadcom STB AVS TMON thermal driver" 22 thermal framework support. 25 tristate "Northstar thermal driver" 31 Management Unit) block with a thermal sensor that allows checking CPU 35 tristate "Stingray thermal driver" 40 iHost, CRMU and NITRO has thermal sensor that allows checking its
|
| /Linux-v5.15/arch/arm64/boot/dts/ti/ |
| D | k3-am654-industrial-thermal.dtsi | 3 #include <dt-bindings/thermal/thermal.h> 5 mpu0_thermal: mpu0-thermal { 8 thermal-sensors = <&wkup_vtm0 0>; 19 mpu1_thermal: mpu1-thermal { 22 thermal-sensors = <&wkup_vtm0 1>; 33 mcu_thermal: mcu-thermal { 36 thermal-sensors = <&wkup_vtm0 2>;
|
| /Linux-v5.15/drivers/net/wireless/ath/ath10k/ |
| D | thermal.c | 31 *state = ar->thermal.throttle_state; in ath10k_thermal_get_cur_throttle_state() 49 ar->thermal.throttle_state = throttle_state; in ath10k_thermal_set_cur_throttle_state() 77 reinit_completion(&ar->thermal.wmi_sync); in ath10k_thermal_show_temp() 89 time_left = wait_for_completion_timeout(&ar->thermal.wmi_sync, in ath10k_thermal_show_temp() 98 temperature = ar->thermal.temperature; in ath10k_thermal_show_temp() 111 ar->thermal.temperature = temperature; in ath10k_thermal_event_temperature() 113 complete(&ar->thermal.wmi_sync); in ath10k_thermal_event_temperature() 141 period = ar->thermal.quiet_period; in ath10k_thermal_set_throttling() 142 duration = (period * ar->thermal.throttle_state) / 100; in ath10k_thermal_set_throttling() 179 ar->thermal.cdev = cdev; in ath10k_thermal_register() [all …]
|
| /Linux-v5.15/drivers/thermal/tegra/ |
| D | Kconfig | 2 menu "NVIDIA Tegra thermal drivers" 6 tristate "Tegra SOCTHERM thermal management" 8 Enable this option for integrated thermal management support on NVIDIA 9 Tegra systems-on-chip. The driver supports four thermal zones 10 (CPU, GPU, MEM, PLLX). Cooling devices can be bound to the thermal 12 emergency thermal reset (thermtrip) feature to function. 15 tristate "Tegra BPMP thermal sensing" 25 Enable this option to support thermal management of NVIDIA Tegra30
|