| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/hwmon/ |
| D | aspeed-pwm-tacho.txt | 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. 25 - clocks : phandle to clock provider with the clock number in the second cell [all …]
|
| D | npcm750-pwm-fan.txt | 3 The Nuvoton BMC NPCM7XX supports 8 Pulse-width modulation (PWM) 6 Required properties for pwm-fan node 7 - #address-cells : should be 1. 8 - #size-cells : should be 0. 9 - compatible : "nuvoton,npcm750-pwm-fan" for Poleg NPCM7XX. 10 - reg : specifies physical base address and size of the registers. 11 - reg-names : must contain: 14 - clocks : phandle of reference clocks. 15 - clock-names : must contain 18 - interrupts : contain the Fan interrupts with flags for falling edge. [all …]
|
| D | pwm-fan.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/hwmon/pwm-fan.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jean Delvare <jdelvare@suse.com> 11 - Guenter Roeck <linux@roeck-us.net> 15 const: pwm-fan 17 cooling-levels: 18 description: PWM duty cycle values corresponding to thermal cooling states. 19 $ref: /schemas/types.yaml#/definitions/uint32-array [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/hwmon/ |
| D | aspeed-pwm-tacho.txt | 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. 25 - clocks : phandle to clock provider with the clock number in the second cell [all …]
|
| D | npcm750-pwm-fan.txt | 3 The Nuvoton BMC NPCM7XX supports 8 Pulse-width modulation (PWM) 6 Required properties for pwm-fan node 7 - #address-cells : should be 1. 8 - #size-cells : should be 0. 9 - compatible : "nuvoton,npcm750-pwm-fan" for Poleg NPCM7XX. 10 - reg : specifies physical base address and size of the registers. 11 - reg-names : must contain: 14 - clocks : phandle of reference clocks. 15 - clock-names : must contain 18 - interrupts : contain the Fan interrupts with flags for falling edge. [all …]
|
| D | pwm-fan.txt | 4 - compatible : "pwm-fan" 5 - pwms : the PWM that is used to control the PWM fan 6 - cooling-levels : PWM duty cycle values in a range from 0 to 255 7 which correspond to thermal cooling states 10 - fan-supply : phandle to the regulator that provides power to the fan 11 - interrupts : This contains a single interrupt specifier which 16 See interrupt-controller/interrupts.txt for the format. 17 - pulses-per-revolution : define the tachometer pulses per fan revolution as 22 fan0: pwm-fan { 23 compatible = "pwm-fan"; [all …]
|
| /kernel/linux/linux-6.6/arch/arm/boot/dts/nuvoton/ |
| D | nuvoton-npcm750-evb.dts | 1 // SPDX-License-Identifier: GPL-2.0 5 /dts-v1/; 6 #include "nuvoton-npcm750.dtsi" 7 #include "dt-bindings/gpio/gpio.h" 8 #include "nuvoton-npcm750-pincfg-evb.dtsi" 12 compatible = "nuvoton,npcm750-evb", "nuvoton,npcm750"; 45 stdout-path = &serial3; 55 phy-mode = "rgmii-id"; 60 phy-mode = "rgmii-id"; 71 compatible = "jedec,spi-nor"; [all …]
|
| D | nuvoton-npcm750-runbmc-olympus.dts | 1 // SPDX-License-Identifier: GPL-2.0 5 /dts-v1/; 6 #include "nuvoton-npcm750.dtsi" 7 #include "nuvoton-npcm750-runbmc-olympus-pincfg.dtsi" 9 #include <dt-bindings/i2c/i2c.h> 10 #include <dt-bindings/gpio/gpio.h> 43 stdout-path = &serial3; 50 iio-hwmon { 51 compatible = "iio-hwmon"; 52 io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>, [all …]
|
| /kernel/linux/linux-6.6/arch/arm64/boot/dts/rockchip/ |
| D | rk3399-nanopc-t4.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * FriendlyElec NanoPC-T4 board device tree source 11 /dts-v1/; 12 #include "rk3399-nanopi4.dtsi" 15 model = "FriendlyElec NanoPC-T4"; 16 compatible = "friendlyarm,nanopc-t4", "rockchip,rk3399"; 18 vcc12v0_sys: vcc12v0-sys { 19 compatible = "regulator-fixed"; 20 regulator-always-on; 21 regulator-boot-on; [all …]
|
| /kernel/linux/linux-5.10/arch/arm64/boot/dts/rockchip/ |
| D | rk3399-nanopc-t4.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * FriendlyElec NanoPC-T4 board device tree source 11 /dts-v1/; 12 #include "rk3399-nanopi4.dtsi" 15 model = "FriendlyElec NanoPC-T4"; 16 compatible = "friendlyarm,nanopc-t4", "rockchip,rk3399"; 18 vcc12v0_sys: vcc12v0-sys { 19 compatible = "regulator-fixed"; 20 regulator-always-on; 21 regulator-boot-on; [all …]
|
| /kernel/linux/linux-6.6/arch/arm64/boot/dts/nvidia/ |
| D | tegra234-p3768-0000+p3767-0005.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include <dt-bindings/input/linux-event-codes.h> 5 #include <dt-bindings/input/gpio-keys.h> 7 #include "tegra234-p3767-0005.dtsi" 8 #include "tegra234-p3768-0000.dtsi" 11 compatible = "nvidia,p3768-0000+p3767-0005", "nvidia,p3767-0005", "nvidia,tegra234"; 14 pwm-fan { 15 cooling-levels = <0 88 187 255>; 18 thermal-zones { [all …]
|
| D | tegra234-p3768-0000+p3767-0000.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include <dt-bindings/input/linux-event-codes.h> 5 #include <dt-bindings/input/gpio-keys.h> 7 #include "tegra234-p3767-0000.dtsi" 8 #include "tegra234-p3768-0000.dtsi" 11 compatible = "nvidia,p3768-0000+p3767-0000", "nvidia,p3767-0000", "nvidia,tegra234"; 21 stdout-path = "serial0:115200n8"; 26 compatible = "nvidia,tegra194-hsuart"; 27 reset-names = "serial"; [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/thermal/ |
| 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 …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/thermal/ |
| 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 binding 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 …]
|
| /kernel/linux/linux-5.10/Documentation/driver-api/thermal/ |
| 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 …]
|
| /kernel/linux/linux-6.6/Documentation/driver-api/thermal/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/hwmon/ |
| D | pwm-fan.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * pwm-fan.c - Hwmon driver for fans connected to PWM lines. 11 #include <linux/hwmon-sysfs.h> 49 atomic_inc(&ctx->pulses); in pulse_handler() 57 unsigned int delta = ktime_ms_delta(ktime_get(), ctx->sample_start); in sample_timer() 61 pulses = atomic_read(&ctx->pulses); in sample_timer() 62 atomic_sub(pulses, &ctx->pulses); in sample_timer() 63 ctx->rpm = (unsigned int)(pulses * 1000 * 60) / in sample_timer() 64 (ctx->pulses_per_revolution * delta); in sample_timer() 66 ctx->sample_start = ktime_get(); in sample_timer() [all …]
|
| D | mlxreg-fan.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) 23 * cooling levels vector will be set to 4, 4, 4, 4, 4, 5, 6, 7, 8, 9, 10 to 34 * FAN datasheet defines the formula for RPM calculations as RPM = 15/t-high. 35 * The logic in a programmable device measures the time t-high by sampling the 36 * tachometer every t-sample (with the default value 11.32 uS) and increment 38 * RPM = 15 / (t-sample * (K + Regval)), where: 40 * - 0xff - represents tachometer fault; 41 * - 0xfe - represents tachometer minimum value , which is 4444 RPM; 42 * - 0x00 - represents tachometer maximum value , which is 300000 RPM; 46 * used: RPM = 15 / ((Regval + K) * 11.32) * 10^(-6)), which in the [all …]
|
| /kernel/linux/linux-5.10/arch/arm/boot/dts/ |
| 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 "exynos4412-odroid-common.dtsi" 13 #include "exynos4412-prime.dtsi" 16 model = "Hardkernel ODROID-U3 board based on Exynos4412"; 17 compatible = "hardkernel,odroid-u3", "samsung,exynos4412", "samsung,exynos4"; 25 compatible = "gpio-leds"; 29 default-state = "on"; [all …]
|
| /kernel/linux/linux-6.6/arch/arm/boot/dts/samsung/ |
| 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 …]
|
| /kernel/linux/linux-6.6/arch/arm64/boot/dts/amlogic/ |
| D | meson-sm1-odroid-hc4.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 8 #include "meson-sm1-odroid.dtsi" 11 compatible = "hardkernel,odroid-hc4", "amlogic,sm1"; 12 model = "Hardkernel ODROID-HC4"; 19 fan0: pwm-fan { 20 compatible = "pwm-fan"; 21 #cooling-cells = <2>; 22 cooling-levels = <0 120 170 220>; 27 compatible = "gpio-leds"; [all …]
|
| /kernel/linux/linux-6.6/arch/arm64/boot/dts/freescale/ |
| D | fsl-ls1028a-kontron-sl28-var3-ads2.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Device Tree file for the Kontron SMARC-sAL28 board on a SMARC Eval 2.0 10 /dts-v1/; 12 #include <dt-bindings/clock/fsl,qoriq-clockgen.h> 13 #include "fsl-ls1028a-kontron-sl28.dts" 16 model = "Kontron SMARC-sAL28 (Single PHY) on SMARC Eval 2.0 carrier"; 17 compatible = "kontron,sl28-var3-ads2", "kontron,sl28-var3", 20 pwm-fan { 21 compatible = "pwm-fan"; 22 cooling-min-state = <0>; [all …]
|
| /kernel/linux/linux-5.10/arch/arm64/boot/dts/freescale/ |
| D | fsl-ls1028a-kontron-sl28-var3-ads2.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Device Tree file for the Kontron SMARC-sAL28 board on a SMARC Eval 2.0 10 /dts-v1/; 11 #include "fsl-ls1028a-kontron-sl28.dts" 14 model = "Kontron SMARC-sAL28 (Single PHY) on SMARC Eval 2.0 carrier"; 15 compatible = "kontron,sl28-var3-ads2", "kontron,sl28-var3", 18 pwm-fan { 19 compatible = "pwm-fan"; 20 cooling-min-state = <0>; 21 cooling-max-state = <3>; [all …]
|
| /kernel/linux/linux-6.6/drivers/hwmon/ |
| D | pwm-fan.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * pwm-fan.c - Hwmon driver for fans connected to PWM lines. 69 atomic_inc(&tach->pulses); in pulse_handler() 77 unsigned int delta = ktime_ms_delta(ktime_get(), ctx->sample_start); in sample_timer() 81 for (i = 0; i < ctx->tach_count; i++) { in sample_timer() 82 struct pwm_fan_tach *tach = &ctx->tachs[i]; in sample_timer() 85 pulses = atomic_read(&tach->pulses); in sample_timer() 86 atomic_sub(pulses, &tach->pulses); in sample_timer() 87 tach->rpm = (unsigned int)(pulses * 1000 * 60) / in sample_timer() 88 (tach->pulses_per_revolution * delta); in sample_timer() [all …]
|
| /kernel/linux/linux-6.6/drivers/thermal/ |
| D | gov_fair_share.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * fair_share.c - A simple weight based Thermal governor 19 * get_trip_level: - obtains the current trip level for a zone 27 for (count = 0; count < tz->num_trips; count++) { in get_trip_level() 29 if (tz->temperature < trip.temperature) in get_trip_level() 35 * point, in which case, trip_point = count - 1 in get_trip_level() 38 trace_thermal_zone_trip(tz, count - 1, trip.type); in get_trip_level() 46 return (long)(percentage * level * cdev->max_state) / (100 * tz->num_trips); in get_target_state() 50 * fair_share_throttle - throttles devices associated with the given zone 55 * throttle state of the cooling devices associated with the given zone. [all …]
|