/linux/drivers/thermal/ |
H A D | da9062-thermal.c | 11 * implementation of the thermal driver will include a .notify() function 27 #include <linux/thermal.h> 63 struct da9062_thermal *thermal = container_of(work, in da9062_thermal_poll_on() local 71 ret = regmap_write(thermal->hw->regmap, in da9062_thermal_poll_on() 75 dev_err(thermal->dev, in da9062_thermal_poll_on() 84 ret = regmap_read(thermal->hw->regmap, in da9062_thermal_poll_on() 88 dev_err(thermal->dev, in da9062_thermal_poll_on() 94 mutex_lock(&thermal->lock); in da9062_thermal_poll_on() 95 thermal->temperature = DA9062_MILLI_CELSIUS(125); in da9062_thermal_poll_on() 96 mutex_unlock(&thermal in da9062_thermal_poll_on() 120 struct da9062_thermal *thermal = data; da9062_thermal_irq_handler() local 131 struct da9062_thermal *thermal = thermal_zone_device_priv(z); da9062_thermal_get_temp() local 162 struct da9062_thermal *thermal; da9062_thermal_probe() local 244 struct da9062_thermal *thermal = platform_get_drvdata(pdev); da9062_thermal_remove() local [all...] |
H A D | rockchip_thermal.c | 19 #include <linux/thermal.h> 122 * struct rockchip_thermal_sensor - hold the information of thermal sensor 123 * @thermal: pointer to the platform/configuration data 124 * @tzd: pointer to a thermal zone 126 * @id: identifier of the thermal sensor 130 struct rockchip_thermal_data *thermal; member 138 * struct rockchip_thermal_data - hold the private data of thermal driver 140 * @pdev: platform device of thermal 142 * @sensors: array of thermal sensors 149 * @trim: fallback thermal tri 1427 struct rockchip_thermal_data *thermal = dev; rockchip_thermal_alarm_irq_thread() local 1444 struct rockchip_thermal_data *thermal = sensor->thermal; rockchip_thermal_set_trips() local 1457 struct rockchip_thermal_data *thermal = sensor->thermal; rockchip_thermal_get_temp() local 1518 rockchip_get_trim_configuration(struct device * dev,struct device_node * np,struct rockchip_thermal_data * thermal) rockchip_get_trim_configuration() argument 1573 rockchip_configure_from_dt(struct device * dev,struct device_node * np,struct rockchip_thermal_data * thermal) rockchip_configure_from_dt() argument 1638 rockchip_thermal_register_sensor(struct platform_device * pdev,struct rockchip_thermal_data * thermal,struct rockchip_thermal_sensor * sensor,int id) rockchip_thermal_register_sensor() argument 1708 struct rockchip_thermal_data *thermal; rockchip_thermal_probe() local 1811 struct rockchip_thermal_data *thermal = platform_get_drvdata(pdev); rockchip_thermal_remove() local 1826 struct rockchip_thermal_data *thermal = dev_get_drvdata(dev); rockchip_thermal_suspend() local 1844 struct rockchip_thermal_data *thermal = dev_get_drvdata(dev); rockchip_thermal_resume() local [all...] |
H A 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. 40 Say Y to allow the thermal subsystem to collect diagnostic 47 Say Y to add a debugfs-based thermal cor [all...] |
/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | core_thermal.c | 10 #include <linux/thermal.h> 31 /* External cooling devices, allowed for binding to mlxsw thermal zones. */ 104 struct mlxsw_thermal *thermal; member 150 static int mlxsw_get_cooling_device_idx(struct mlxsw_thermal *thermal, in mlxsw_get_cooling_device_idx() argument 156 if (thermal->cdevs[i].cdev == cdev) in mlxsw_get_cooling_device_idx() 159 /* Allow mlxsw thermal zone binding to an external cooling device */ in mlxsw_get_cooling_device_idx() 173 struct mlxsw_thermal *thermal = thermal_zone_device_priv(tzdev); in mlxsw_thermal_should_bind() local 177 if (mlxsw_get_cooling_device_idx(thermal, cdev) < 0) in mlxsw_thermal_should_bind() 189 struct mlxsw_thermal *thermal = thermal_zone_device_priv(tzdev); in mlxsw_thermal_get_temp() local 190 struct device *dev = thermal in mlxsw_thermal_get_temp() 224 struct mlxsw_thermal *thermal = tz->parent; mlxsw_thermal_module_should_bind() local 240 struct mlxsw_thermal *thermal = tz->parent; mlxsw_thermal_module_temp_get() local 264 struct mlxsw_thermal *thermal = tz->parent; mlxsw_thermal_gearbox_temp_get() local 300 struct mlxsw_thermal *thermal = mlxsw_cdev->thermal; mlxsw_thermal_get_cur_state() local 323 struct mlxsw_thermal *thermal = mlxsw_cdev->thermal; mlxsw_thermal_set_cur_state() local 387 mlxsw_thermal_module_init(struct mlxsw_thermal * thermal,struct mlxsw_thermal_area * area,u8 module) mlxsw_thermal_module_init() argument 416 mlxsw_thermal_modules_init(struct device * dev,struct mlxsw_core * core,struct mlxsw_thermal * thermal,struct mlxsw_thermal_area * area) mlxsw_thermal_modules_init() argument 456 mlxsw_thermal_modules_fini(struct mlxsw_thermal * thermal,struct mlxsw_thermal_area * area) mlxsw_thermal_modules_fini() argument 503 mlxsw_thermal_gearboxes_init(struct device * dev,struct mlxsw_core * core,struct mlxsw_thermal * thermal,struct mlxsw_thermal_area * area) mlxsw_thermal_gearboxes_init() argument 558 mlxsw_thermal_gearboxes_fini(struct mlxsw_thermal * thermal,struct mlxsw_thermal_area * area) mlxsw_thermal_gearboxes_fini() argument 572 struct mlxsw_thermal *thermal = priv; mlxsw_thermal_got_active() local 610 struct mlxsw_thermal *thermal = priv; mlxsw_thermal_got_inactive() local 634 struct mlxsw_thermal *thermal; mlxsw_thermal_init() local 769 mlxsw_thermal_fini(struct mlxsw_thermal * thermal) mlxsw_thermal_fini() argument [all...] |
/linux/arch/arm64/boot/dts/qcom/ |
H A D | x1p42100.dtsi | 90 thermal-zones { 91 aoss0-thermal { 92 thermal-sensors = <&tsens0 0>; 109 cpu0-0-top-thermal { 110 thermal-sensors = <&tsens0 1>; 121 cpu0-0-btm-thermal { 122 thermal-sensors = <&tsens0 2>; 133 cpu0-1-top-thermal { 134 thermal-sensors = <&tsens0 3>; 145 cpu0-1-btm-thermal { [all...] |
H A D | sm8750-pmics.dtsi | 7 thermal-zones { 8 pm8550ve-d-thermal { 11 thermal-sensors = <&pm8550ve_d_temp_alarm>; 28 pm8550ve-f-thermal { 31 thermal-sensors = <&pm8550ve_f_temp_alarm>; 48 pm8550ve-g-thermal { 51 thermal-sensors = <&pm8550ve_g_temp_alarm>; 68 pm8550vs-j-thermal { 71 thermal-sensors = <&pm8550vs_j_temp_alarm>; 102 #thermal [all...] |
H A D | pm8550vs.dtsi | 10 thermal-zones { 11 pm8550vs-c-thermal { 14 thermal-sensors = <&pm8550vs_c_temp_alarm>; 31 pm8550vs-d-thermal { 34 thermal-sensors = <&pm8550vs_d_temp_alarm>; 51 pm8550vs-e-thermal { 54 thermal-sensors = <&pm8550vs_e_temp_alarm>; 71 pm8550vs-g-thermal { 74 thermal-sensors = <&pm8550vs_g_temp_alarm>; 105 #thermal [all...] |
H A D | x1e80100-pmics.dtsi | 12 thermal-zones { 13 pm8550-thermal { 16 thermal-sensors = <&pm8550_temp_alarm>; 33 pm8550ve-2-thermal { 36 thermal-sensors = <&pm8550ve_2_temp_alarm>; 53 pmc8380-3-thermal { 56 thermal-sensors = <&pmc8380_3_temp_alarm>; 73 pmc8380-4-thermal { 76 thermal-sensors = <&pmc8380_4_temp_alarm>; 93 pmc8380-5-thermal { [all...] |
/linux/Documentation/devicetree/bindings/thermal/ |
H A 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 [all...] |
H A 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.yaml for a description. 12 thermal: thermal { 13 compatible = "amazon,al-thermal"; 15 #thermal-sensor-cells = <0x1>; 18 thermal [all...] |
H A 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-ap807-thermal 12 * marvell,armada-cp110-thermal 23 Note: The compatibles marvell,armada370-thermal, 24 marvell,armada380-thermal, an [all...] |
H A 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 [all...] |
H A 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>;
|
/linux/drivers/thermal/ti-soc-thermal/ |
H A 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 [all...] |
/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-thermal | 1 What: /sys/class/thermal/thermal_zoneX/type 3 Strings which represent the thermal zone type. 4 This is given by thermal zone driver as part of registration. 5 E.g: "acpitz" indicates it's an ACPI thermal device. 12 What: /sys/class/thermal/thermal_zoneX/temp 14 Current temperature as reported by thermal zone (sensor). 20 What: /sys/class/thermal/thermal_zoneX/mode 24 currently managing the thermal zone. It can be either default 30 Preventing kernel thermal zone driver actions upon 32 charge of the thermal managemen [all...] |
/linux/arch/arm64/boot/dts/ti/ |
H A D | k3-j784s4-j742s2-thermal-common.dtsi | 6 #include <dt-bindings/thermal/thermal.h> 8 wkup0_thermal: wkup0-thermal { 11 thermal-sensors = <&wkup_vtm0 0>; 22 wkup1_thermal: wkup1-thermal { 25 thermal-sensors = <&wkup_vtm0 1>; 36 main0_thermal: main0-thermal { 39 thermal-sensors = <&wkup_vtm0 2>; 50 main1_thermal: main1-thermal { 53 thermal [all...] |
H A D | k3-j721s2-thermal.dtsi | 6 #include <dt-bindings/thermal/thermal.h> 8 wkup0_thermal: wkup0-thermal { 11 thermal-sensors = <&wkup_vtm0 0>; 22 wkup1_thermal: wkup1-thermal { 25 thermal-sensors = <&wkup_vtm0 1>; 36 main0_thermal: main0-thermal { 39 thermal-sensors = <&wkup_vtm0 2>; 50 main1_thermal: main1-thermal { 53 thermal [all...] |
H A D | k3-j7200-thermal.dtsi | 6 #include <dt-bindings/thermal/thermal.h> 8 thermal_zones: thermal-zones { 9 mcu_thermal: mcu-thermal { 12 thermal-sensors = <&wkup_vtm0 0>; 23 mpu_thermal: mpu-thermal { 26 thermal-sensors = <&wkup_vtm0 1>; 37 main_thermal: main-thermal { 40 thermal-sensors = <&wkup_vtm0 2>;
|
H A D | k3-am654-industrial-thermal.dtsi | 6 #include <dt-bindings/thermal/thermal.h> 8 mpu0_thermal: mpu0-thermal { 11 thermal-sensors = <&wkup_vtm0 0>; 22 mpu1_thermal: mpu1-thermal { 25 thermal-sensors = <&wkup_vtm0 1>; 36 mcu_thermal: mcu-thermal { 39 thermal-sensors = <&wkup_vtm0 2>;
|
/linux/Documentation/driver-api/thermal/ |
H A D | sysfs-api.rst | 13 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 managemen [all...] |
H A 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 notification [all...] |
/linux/tools/ |
H A D | Makefile | 33 @echo ' tmon - thermal monitoring and tuning tool' 35 @echo ' thermal-engine - thermal monitoring tool' 36 @echo ' thermal - thermal library' 101 thermal: FORCE target 108 $(call descend,thermal/$@) 111 $(call descend,thermal/$@) 113 thermal-engine: FORCE thermal [all...] |
/linux/arch/arm64/boot/dts/arm/ |
H A D | juno-scmi.dtsi | 73 #thermal-sensor-cells = <1>; 78 thermal-zones { 79 pmic-thermal { 80 thermal-sensors = <&scmi_sensors0 0>; 83 soc-thermal { 84 thermal-sensors = <&scmi_sensors0 3>; 87 big-cl-thermal { 88 thermal-sensors = <&scmi_sensors0 21>; 91 little-cl-thermal { 92 thermal [all...] |
/linux/drivers/thermal/renesas/ |
H A D | Kconfig | 4 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 and RZ/G2 thermal driver" 18 Enable this to plug the R-Car Gen3 or RZ/G2 thermal sensor driver into 19 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.
|
/linux/drivers/net/wireless/ath/ath10k/ |
H A D | thermal.c | 9 #include <linux/thermal.h> 32 *state = ar->thermal.throttle_state; in ath10k_thermal_get_cur_throttle_state() 50 ar->thermal.throttle_state = throttle_state; in ath10k_thermal_set_cur_throttle_state() 78 reinit_completion(&ar->thermal.wmi_sync); in ath10k_thermal_show_temp() 90 time_left = wait_for_completion_timeout(&ar->thermal.wmi_sync, in ath10k_thermal_show_temp() 93 ath10k_warn(ar, "failed to synchronize thermal read\n"); in ath10k_thermal_show_temp() 99 temperature = ar->thermal.temperature; in ath10k_thermal_show_temp() 112 ar->thermal.temperature = temperature; in ath10k_thermal_event_temperature() 114 complete(&ar->thermal.wmi_sync); in ath10k_thermal_event_temperature() 142 period = ar->thermal in ath10k_thermal_set_throttling() [all...] |