/linux/Documentation/devicetree/bindings/thermal/ |
H A D | thermal-cooling-devices.yaml | 1 # SPDX-License-Identifier: (GPL-2.0) 4 --- 5 $id: http://devicetree.org/schemas/thermal/thermal-cooling-devices.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: Thermal cooling device 11 - Amit Kucheria <amitk@kernel.org> 15 and the software abstraction of cooling devices and thermal zones required to 20 - thermal-sensor: device that measures temperature, has SoC-specific bindings 21 - cooling-device: device used to dissipate heat either passively or actively 22 - thermal-zones: a container of the following node types used to describe all [all …]
|
H A D | thermal-idle.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 5 $id: http://devicetree.org/schemas/thermal/thermal-idle.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: Thermal idle cooling device 11 - Daniel Lezcano <daniel.lezcano@linaro.org> 14 The thermal idle cooling device allows the system to passively 15 mitigate the temperature on the device by injecting idle cycles, 22 const: thermal-idle 24 A thermal-idle node describes the idle cooling device properties to [all …]
|
/linux/drivers/thermal/ |
H A D | cpufreq_cooling.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Copyright (C) 2012-2018 Linaro Limited. 16 #include <linux/device.h> 29 * Cooling state <-> CPUFreq frequency 31 * Cooling states are translated to frequencies throughout this driver and this 34 * Highest cooling state corresponds to lowest possible frequency. 37 * level 0 --> 1st Max Freq 38 * level 1 --> 2nd Max Freq 43 * struct time_in_idle - Idle time stats 53 * struct cpufreq_cooling_device - data for cooling device with cpufreq [all …]
|
H A D | cpuidle_cooling.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #define pr_fmt(fmt) "cpuidle cooling: " fmt 13 #include <linux/device.h> 21 * struct cpuidle_cooling_device - data for the idle cooling device 23 * @state: a normalized integer giving the state of the cooling device 31 * cpuidle_cooling_runtime - Running time computation 43 * running = idle x ((100 / ratio) - 1) 47 * running = (idle x 100) / ratio - idle 60 return ((idle_duration_us * 100) / state) - idle_duration_us; in cpuidle_cooling_runtime() 64 * cpuidle_cooling_get_max_state - Get the maximum state [all …]
|
H A D | devfreq_cooling.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * devfreq_cooling: Thermal cooling device implementation for devices using 6 * Copyright (C) 2014-2015 ARM Limited 9 * - If OPPs are added or removed after devfreq cooling has 10 * registered, the devfreq cooling won't react to it. 28 * struct devfreq_cooling_device - Devfreq cooling device 30 * @cdev: Pointer to associated thermal cooling device. 31 * @cooling_ops: devfreq callbacks to thermal cooling device ops 32 * @devfreq: Pointer to associated devfreq device. 33 * @cooling_state: Current cooling state. [all …]
|
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 11 zones and cooling devices. 13 and cooling devices. 26 trip point crossed, cooling device update or governor 47 Say Y to add a debugfs-based thermal core testing facility. 53 int "Emergency poweroff delay in milli-seconds" 70 prompt "Expose thermal sensors as hwmon device" 84 prompt "APIs to parse thermal data out of device tree" 90 device tree blob. 93 based on device tree. [all …]
|
/linux/arch/arm/boot/dts/samsung/ |
H A D | exynos5422-odroidxu3-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 * Hardkernel Odroid XU3/XU3-Lite/XU4 boards common device tree source 12 #include <dt-bindings/input/input.h> 13 #include "exynos5422-odroid-core.dtsi" 20 gpio-keys { 21 compatible = "gpio-keys"; 22 pinctrl-names = "default"; 23 pinctrl-0 = <&power_key>; 25 power-key { 36 debounce-interval = <0>; [all …]
|
H A D | exynos5422-odroidhc1.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 * Hardkernel Odroid HC1 board device tree source 10 /dts-v1/; 11 #include <dt-bindings/leds/common.h> 12 #include "exynos5422-odroid-core.dtsi" 16 compatible = "hardkernel,odroid-hc1", "samsung,exynos5800", \ 19 led-controller { 20 compatible = "pwm-leds"; 22 led-1 { 26 pwm-names = "pwm2"; [all …]
|
H A D | exynos4412-odroidu3.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 * Hardkernel's Exynos4412 based ODROID-U3 board device tree source 7 * Device tree source file for Hardkernel's ODROID-U3 board which is based 11 /dts-v1/; 12 #include <dt-bindings/leds/common.h> 13 #include "exynos4412-odroid-common.dtsi" 14 #include "exynos4412-prime.dtsi" 17 model = "Hardkernel ODROID-U3 board based on Exynos4412"; 18 compatible = "hardkernel,odroid-u3", "samsung,exynos4412", "samsung,exynos4"; 29 vbus_otg_reg: regulator-1 { [all …]
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-thermal | 5 E.g: "acpitz" indicates it's an ACPI thermal device. 61 E.g. it can be one of critical, hot, passive, `active[0-*]` 77 Sysfs link to the thermal cooling device node where the sys I/F 78 for cooling device throttling control represents. 84 The trip point in this thermal zone which `cdev[0-*]` is 85 associated with; -1 means the cooling device is not 92 The influence of `cdev[0-*]` in this thermal zone. This value 93 is relative to the rest of cooling devices in the thermal 94 zone. For example, if a cooling device has a weight double 95 than that of other, it's twice as effective in cooling the [all …]
|
/linux/tools/thermal/tmon/ |
H A D | tmon.8 | 2 # SPDX-License-Identifier: GPL-2.0 4 \fBtmon\fP - A monitoring and testing tool for Linux kernel thermal subsystem 13 real-time thermal data; tune 14 and test cooling devices and sensors; collect thermal data for offline 15 analysis and plot. \fBtmon\fP must be run as root in order to control device 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 28 - show temperature of all thermal zones w.r.t. its trip points and types [all …]
|
/linux/Documentation/driver-api/thermal/ |
H A D | cpu-cooling-api.rst | 2 CPU cooling APIs How To 14 The generic cpu cooling(freq clipping) provides registration/unregistration APIs 15 to the caller. The binding of the cooling devices to the trip point is left for 16 the user. The registration APIs returns the cooling device pointer. 18 1. cpu cooling APIs 22 -------------------------------------------- 29 This interface function registers the cpufreq cooling device with the name 30 "thermal-cpufreq-%x". This api can support multiple instances of cpufreq 31 cooling devices. 41 This interface function registers the cpufreq cooling device with [all …]
|
H A D | power_allocator.rst | 6 ----------- 20 -------------- 23 Proportional-Integral-Derivative controller (PID controller) with 29 - e = desired_temperature - current_temperature 30 - err_integral is the sum of previous errors 31 - diff_err = e - previous_error 39 | +----------+ +---+ 40 | +----->| diff_err |-->| X |------+ 41 | | +----------+ +---+ | 47 +---+ | +-------+ +---+ +---+ +---+ +----------+ [all …]
|
/linux/arch/arm64/boot/dts/exynos/ |
H A D | exynos5433-tmu.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 * Device tree sources for Exynos5433 thermal zone 8 #include <dt-bindings/thermal/thermal.h> 11 thermal-zones { 12 atlas0_thermal: atlas0-thermal { 13 thermal-sensors = <&tmu_atlas0>; 14 polling-delay-passive = <0>; 15 polling-delay = <0>; 17 atlas0_alert_0: atlas0-alert-0 { 22 atlas0_alert_1: atlas0-alert-1 { [all …]
|
/linux/Documentation/devicetree/bindings/hwmon/ |
H A D | aspeed-pwm-tacho.txt | 1 ASPEED AST2400/AST2500 PWM and Fan Tacho controller device driver 9 Required properties for pwm-tacho node: 10 - #address-cells : should be 1. 12 - #size-cells : should be 1. 14 - #cooling-cells: should be 2. 16 - reg : address and length of the register set for the device. 18 - pinctrl-names : a pinctrl state named "default" must be defined. 20 - pinctrl-0 : phandle referencing pin configuration of the PWM ports. 22 - compatible : should be "aspeed,ast2400-pwm-tacho" for AST2400 and 23 "aspeed,ast2500-pwm-tacho" for AST2500. [all …]
|
H A D | npcm750-pwm-fan.txt | 1 Nuvoton NPCM PWM and Fan Tacho controller device 3 The Nuvoton BMC NPCM7XX supports 8 Pulse-width modulation (PWM) 6 The Nuvoton BMC NPCM8XX supports 12 Pulse-width modulation (PWM) 9 Required properties for pwm-fan node 10 - #address-cells : should be 1. 11 - #size-cells : should be 0. 12 - compatible : "nuvoton,npcm750-pwm-fan" for Poleg NPCM7XX. 13 : "nuvoton,npcm845-pwm-fan" for Arbel NPCM8XX. 14 - reg : specifies physical base address and size of the registers. 15 - reg-names : must contain: [all …]
|
/linux/arch/arm64/boot/dts/marvell/ |
H A D | armada-8040-clearfog-gt-8k.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 * Device Tree file for SolidRun's ClearFog GT 8K 9 #include "armada-8040.dtsi" 11 #include <dt-bindings/input/input.h> 12 #include <dt-bindings/gpio/gpio.h> 16 compatible = "solidrun,clearfog-gt-8k", "marvell,armada8040", 17 "marvell,armada-ap806-quad", "marvell,armada-ap806"; 20 stdout-path = "serial0:115200n8"; 35 compatible = "pwm-fan"; 37 cooling-levels = <0 51 102 153 204 255>; [all …]
|
H A D | armada-ap80x.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 5 * Device Tree file for Marvell Armada AP80x. 8 #include <dt-bindings/interrupt-controller/arm-gic.h> 9 #include <dt-bindings/thermal/thermal.h> 11 /dts-v1/; 14 #address-cells = <2>; 15 #size-cells = <2>; 25 compatible = "arm,psci-0.2"; 29 reserved-memory { 30 #address-cells = <2>; [all …]
|
/linux/arch/riscv/boot/dts/sophgo/ |
H A D | sg2042-evb-v2.dts | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/input/input.h> 13 compatible = "sophgo,sg2042-evb-v2", "sophgo,sg2042"; 16 stdout-path = "serial0"; 19 pwmfan: pwm-fan { 20 compatible = "pwm-fan"; 21 cooling-levels = <103 128 179 230 255>; 23 #cooling-cells = <2>; 26 thermal-zones { [all …]
|
H A D | sg2042-milkv-pioneer.dts | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/input/input.h> 12 model = "Milk-V Pioneer"; 16 stdout-path = "serial0"; 19 gpio-power { 20 compatible = "gpio-keys"; 22 key-power { 26 linux,input-type = <EV_KEY>; 27 debounce-interval = <100>; [all …]
|
H A D | sg2042-evb-v1.dts | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/input/input.h> 13 compatible = "sophgo,sg2042-evb-v1", "sophgo,sg2042"; 16 stdout-path = "serial0"; 19 gpio-power { 20 compatible = "gpio-keys"; 22 key-power { 26 linux,input-type = <EV_KEY>; 27 debounce-interval = <100>; [all …]
|
/linux/drivers/gpu/drm/lima/ |
H A D | lima_devfreq.c | 1 // SPDX-License-Identifier: GPL-2.0 11 #include <linux/device.h> 24 last = devfreq->time_last_update; in lima_devfreq_update_utilization() 26 if (devfreq->busy_count > 0) in lima_devfreq_update_utilization() 27 devfreq->busy_time += ktime_sub(now, last); in lima_devfreq_update_utilization() 29 devfreq->idle_time += ktime_sub(now, last); in lima_devfreq_update_utilization() 31 devfreq->time_last_update = now; in lima_devfreq_update_utilization() 34 static int lima_devfreq_target(struct device *dev, unsigned long *freq, in lima_devfreq_target() 49 devfreq->busy_time = 0; in lima_devfreq_reset() 50 devfreq->idle_time = 0; in lima_devfreq_reset() [all …]
|
/linux/Documentation/hwmon/ |
H A D | mlxreg-fan.rst | 1 Kernel driver mlxreg-fan 6 - QMB700, equipped with 40x200GbE InfiniBand ports; 7 - MSN3700, equipped with 32x200GbE or 16x400GbE Ethernet ports; 8 - MSN3410, equipped with 6x400GbE plus 48x50GbE Ethernet ports; 9 - MSN3800, equipped with 64x1000GbE Ethernet ports; 14 board with Mellanox Quantum or Spectrume-2 devices. 15 FAN controller is implemented by the programmable device logic. 17 The default registers offsets set within the programmable device is as 36 This setup can be re-programmed with other registers. 39 ----------- [all …]
|
/linux/arch/arm64/boot/dts/ti/ |
H A D | k3-am62a-thermal.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only OR MIT 3 * Copyright (C) 2023-2024 Texas Instruments Incorporated - https://www.ti.com/ 6 #include <dt-bindings/thermal/thermal.h> 8 thermal_zones: thermal-zones { 9 main0_thermal: main0-thermal { 10 polling-delay-passive = <250>; /* milliSeconds */ 11 polling-delay = <500>; /* milliSeconds */ 12 thermal-sensors = <&wkup_vtm0 0>; 15 main0_alert: main0-alert { 21 main0_crit: main0-crit { [all …]
|
H A D | k3-am62p-j722s-common-thermal.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only OR MIT 3 * Copyright (C) 2023-2024 Texas Instruments Incorporated - https://www.ti.com/ 6 #include <dt-bindings/thermal/thermal.h> 8 thermal_zones: thermal-zones { 9 main0_thermal: main0-thermal { 10 polling-delay-passive = <250>; /* milliSeconds */ 11 polling-delay = <500>; /* milliSeconds */ 12 thermal-sensors = <&wkup_vtm0 0>; 15 main0_alert: main0-alert { 21 main0_crit: main0-crit { [all …]
|