Home
last modified time | relevance | path

Searched +full:pulses +full:- +full:per +full:- +full:revolution (Results 1 – 25 of 35) sorted by relevance

12

/kernel/linux/linux-6.6/Documentation/devicetree/bindings/hwmon/
Dadi,axi-fan-control.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 ---
5 $id: http://devicetree.org/schemas/hwmon/adi,axi-fan-control.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Nuno Sá <nuno.sa@analog.com>
22 - adi,axi-fan-control-1.00.a
33 pulses-per-revolution:
35 Value specifying the number of pulses per revolution of the controlled
41 - compatible
42 - reg
[all …]
Dpwm-fan.yaml1 # 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:
19 $ref: /schemas/types.yaml#/definitions/uint32-array
23 fan-supply:
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/hwmon/
Dadi,axi-fan-control.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 ---
5 $id: http://devicetree.org/schemas/hwmon/adi,axi-fan-control.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Nuno Sá <nuno.sa@analog.com>
22 - adi,axi-fan-control-1.00.a
33 pulses-per-revolution:
35 Value specifying the number of pulses per revolution of the controlled
41 - compatible
42 - reg
[all …]
Dpwm-fan.txt4 - 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
10 - fan-supply : phandle to the regulator that provides power to the fan
11 - interrupts : This contains a single interrupt specifier which
14 defined number of interrupts per fan revolution, which
16 See interrupt-controller/interrupts.txt for the format.
17 - pulses-per-revolution : define the tachometer pulses per fan revolution as
18 an integer (default is 2 interrupts per revolution).
22 fan0: pwm-fan {
[all …]
/kernel/linux/linux-5.10/Documentation/hwmon/
Dg762.rst5 and performs closed-loop or open-loop control of the fan speed. Two
6 modes - PWM or DC - are supported by the device.
9 http://natisbad.org/NAS/ref/GMT_EDS-762_763-080710-0.2.pdf. sysfs
10 bindings are described in Documentation/hwmon/sysfs-interface.rst.
18 hardware characteristics of the system (reference clock, pulses per
19 fan revolution, ...); Those can be modified via devicetree bindings
25 set desired fan speed. This only makes sense in closed-loop
36 number of pulses per fan revolution. Supported values
44 in closed-loop control mode, if fan RPM value is 25% out
50 speed control (open-loop) via pwm1 described below, 2 for
[all …]
Dg760a.rst6 * Global Mixed-mode Technology Inc. G760A
12 http://www.gmt.com.tw/product/datasheet/EDS-760A.pdf
17 -----------
20 and performs closed-loop control of the fan speed.
23 consecutive speed pulses. The period is defined in terms of clock
31 source and a 2 pulse-per-revolution fan.
Dsl28cpld.rst1 .. SPDX-License-Identifier: GPL-2.0-only
17 -----------
30 -------------
35 fan1_input Fan RPM. Assuming 2 pulses per revolution.
Ddme1737.rst18 Addresses scanned: none, address read from Super-I/O config space
34 Addresses scanned: none, address read from Super-I/O config space
43 -----------------
52 Include non-standard LPC addresses 0x162e and 0x164e
55 - VIA EPIA SN18000
59 -----------
63 and SCH5127 Super-I/O chips. These chips feature monitoring of 3 temp sensors
64 temp[1-3] (2 remote diodes and 1 internal), 8 voltages in[0-7] (7 external and
65 1 internal) and up to 6 fan speeds fan[1-6]. Additionally, the chips implement
66 up to 5 PWM outputs pwm[1-3,5-6] for controlling fan speeds both manually and
[all …]
Dsysfs-interface.rst5 through the sysfs interface. Since lm-sensors 3.0.0, libsensors is
6 completely chip-independent. It assumes that all the kernel drivers
10 This is a major improvement compared to lm-sensors 2.
22 For this reason, even if we aim at a chip-independent libsensors, it will
37 Up to lm-sensors 3.0.0, libsensors looks for hardware monitoring attributes
38 in the "physical" device directory. Since lm-sensors 3.0.1, attributes found
46 There is only one value per file, unlike the older /proc specification.
61 to cause an alarm) is chip-dependent.
68 -------------------------------------------------------------------------
71 `[0-*]` denotes any positive number starting from 0
[all …]
Dsmsc47b397.rst6 * SMSC LPC47B397-NC
8 * SMSC SCH5307-NS
20 - Mark M. Hoffman <mhoffman@lightlink.com>
21 - Utilitek Systems, Inc.
25 The following specification describes the SMSC LPC47B397-NC [1]_ sensor chip
27 provided by Craig Kelly (In-Store Broadcast Network) and edited/corrected
30 .. [1] And SMSC SCH5307-NS and SCH5317, which have different device IDs but are
33 -------------------------------------------------------------------------
36 -------------------------------------------------------------------------
87 --------------------------------------
[all …]
/kernel/linux/linux-6.6/Documentation/hwmon/
Dg762.rst5 and performs closed-loop or open-loop control of the fan speed. Two
6 modes - PWM or DC - are supported by the device.
9 http://natisbad.org/NAS/ref/GMT_EDS-762_763-080710-0.2.pdf. sysfs
10 bindings are described in Documentation/hwmon/sysfs-interface.rst.
18 hardware characteristics of the system (reference clock, pulses per
19 fan revolution, ...); Those can be modified via devicetree bindings
25 set desired fan speed. This only makes sense in closed-loop
36 number of pulses per fan revolution. Supported values
44 in closed-loop control mode, if fan RPM value is 25% out
50 speed control (open-loop) via pwm1 described below, 2 for
[all …]
Dg760a.rst6 * Global Mixed-mode Technology Inc. G760A
12 http://www.gmt.com.tw/product/datasheet/EDS-760A.pdf
17 -----------
20 and performs closed-loop control of the fan speed.
23 consecutive speed pulses. The period is defined in terms of clock
31 source and a 2 pulse-per-revolution fan.
Dsl28cpld.rst1 .. SPDX-License-Identifier: GPL-2.0-only
17 -----------
30 -------------
35 fan1_input Fan RPM. Assuming 2 pulses per revolution.
Ddme1737.rst18 Addresses scanned: none, address read from Super-I/O config space
34 Addresses scanned: none, address read from Super-I/O config space
43 -----------------
52 Include non-standard LPC addresses 0x162e and 0x164e
55 - VIA EPIA SN18000
59 -----------
63 and SCH5127 Super-I/O chips. These chips feature monitoring of 3 temp sensors
64 temp[1-3] (2 remote diodes and 1 internal), 8 voltages in[0-7] (7 external and
65 1 internal) and up to 6 fan speeds fan[1-6]. Additionally, the chips implement
66 up to 5 PWM outputs pwm[1-3,5-6] for controlling fan speeds both manually and
[all …]
Dsmsc47b397.rst6 * SMSC LPC47B397-NC
8 * SMSC SCH5307-NS
20 - Mark M. Hoffman <mhoffman@lightlink.com>
21 - Utilitek Systems, Inc.
25 The following specification describes the SMSC LPC47B397-NC [1]_ sensor chip
27 provided by Craig Kelly (In-Store Broadcast Network) and edited/corrected
30 .. [1] And SMSC SCH5307-NS and SCH5317, which have different device IDs but are
33 -------------------------------------------------------------------------
36 -------------------------------------------------------------------------
87 --------------------------------------
[all …]
/kernel/linux/linux-5.10/drivers/hwmon/
Daxi-fan-control.c1 // SPDX-License-Identifier: GPL-2.0
9 #include <linux/fpga/adi-axi-common.h>
11 #include <linux/hwmon-sysfs.h>
55 /* pulses per revolution */
65 iowrite32(val, ctl->base + reg); in axi_iowrite()
71 return ioread32(ctl->base + reg); in axi_ioread()
76 * T = /raw * 509.3140064 / 65535) - 280.2308787
82 u32 temp = axi_ioread(attr->index, ctl); in axi_fan_control_show()
84 temp = DIV_ROUND_CLOSEST_ULL(temp * 509314ULL, 65535) - 280230; in axi_fan_control_show()
102 axi_iowrite(temp, attr->index, ctl); in axi_fan_control_store()
[all …]
Dpwm-fan.c1 // 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>
31 atomic_t pulses; member
49 atomic_inc(&ctx->pulses); in pulse_handler()
57 unsigned int delta = ktime_ms_delta(ktime_get(), ctx->sample_start); in sample_timer()
58 int pulses; in sample_timer() local
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()
[all …]
Dg762.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * g762 - Driver for the Global Mixed-mode Technology Inc. fan speed
15 * http://natisbad.org/NAS/refs/GMT_EDS-762_763-080710-0.2.pdf
27 * http://www.gmt.com.tw/product/datasheet/EDS-762_3.pdf
36 #include <linux/hwmon-sysfs.h>
67 #define G762_REG_FAN_CMD1_FAN_MODE 0x10 /* fan mode: closed/open-loop */
71 #define G762_REG_FAN_CMD1_PULSE_PER_REV 0x01 /* pulse per fan revolution */
91 /* Register data is read (and cached) at most once per second. */
95 * Extract pulse count per fan revolution value (2 or 4) from given
131 u8 set_cnt; /* controls fan rotation speed in closed-loop mode */
[all …]
Dsl28cpld-hwmon.c1 // SPDX-License-Identifier: GPL-2.0-only
43 ret = regmap_read(hwmon->regmap, hwmon->offset + FAN_INPUT, in sl28cpld_hwmon_read()
57 * says we should asssume 2 pulses per revolution. in sl28cpld_hwmon_read()
63 return -EOPNOTSUPP; in sl28cpld_hwmon_read()
101 if (!pdev->dev.parent) in sl28cpld_hwmon_probe()
102 return -ENODEV; in sl28cpld_hwmon_probe()
104 hwmon = devm_kzalloc(&pdev->dev, sizeof(*hwmon), GFP_KERNEL); in sl28cpld_hwmon_probe()
106 return -ENOMEM; in sl28cpld_hwmon_probe()
108 hwmon->regmap = dev_get_regmap(pdev->dev.parent, NULL); in sl28cpld_hwmon_probe()
109 if (!hwmon->regmap) in sl28cpld_hwmon_probe()
[all …]
/kernel/linux/linux-6.6/drivers/hwmon/
Daxi-fan-control.c1 // SPDX-License-Identifier: GPL-2.0
9 #include <linux/fpga/adi-axi-common.h>
11 #include <linux/hwmon-sysfs.h>
55 /* pulses per revolution */
65 iowrite32(val, ctl->base + reg); in axi_iowrite()
71 return ioread32(ctl->base + reg); in axi_ioread()
76 * T = /raw * 509.3140064 / 65535) - 280.2308787
82 u32 temp = axi_ioread(attr->index, ctl); in axi_fan_control_show()
84 temp = DIV_ROUND_CLOSEST_ULL(temp * 509314ULL, 65535) - 280230; in axi_fan_control_show()
102 axi_iowrite(temp, attr->index, ctl); in axi_fan_control_store()
[all …]
Dg762.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * g762 - Driver for the Global Mixed-mode Technology Inc. fan speed
15 * http://natisbad.org/NAS/refs/GMT_EDS-762_763-080710-0.2.pdf
27 * http://www.gmt.com.tw/product/datasheet/EDS-762_3.pdf
36 #include <linux/hwmon-sysfs.h>
66 #define G762_REG_FAN_CMD1_FAN_MODE 0x10 /* fan mode: closed/open-loop */
70 #define G762_REG_FAN_CMD1_PULSE_PER_REV 0x01 /* pulse per fan revolution */
90 /* Register data is read (and cached) at most once per second. */
94 * Extract pulse count per fan revolution value (2 or 4) from given
130 u8 set_cnt; /* controls fan rotation speed in closed-loop mode */
[all …]
Dpwm-fan.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * pwm-fan.c - Hwmon driver for fans connected to PWM lines.
26 atomic_t pulses; member
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()
83 int pulses; in sample_timer() local
85 pulses = atomic_read(&tach->pulses); in sample_timer()
86 atomic_sub(pulses, &tach->pulses); in sample_timer()
[all …]
Dsl28cpld-hwmon.c1 // SPDX-License-Identifier: GPL-2.0-only
43 ret = regmap_read(hwmon->regmap, hwmon->offset + FAN_INPUT, in sl28cpld_hwmon_read()
57 * says we should assume 2 pulses per revolution. in sl28cpld_hwmon_read()
63 return -EOPNOTSUPP; in sl28cpld_hwmon_read()
91 if (!pdev->dev.parent) in sl28cpld_hwmon_probe()
92 return -ENODEV; in sl28cpld_hwmon_probe()
94 hwmon = devm_kzalloc(&pdev->dev, sizeof(*hwmon), GFP_KERNEL); in sl28cpld_hwmon_probe()
96 return -ENOMEM; in sl28cpld_hwmon_probe()
98 hwmon->regmap = dev_get_regmap(pdev->dev.parent, NULL); in sl28cpld_hwmon_probe()
99 if (!hwmon->regmap) in sl28cpld_hwmon_probe()
[all …]
Dlan966x-hwmon.c1 // SPDX-License-Identifier: GPL-2.0-only
17 * T = -3.4627e-11*(N^4) + 1.1023e-7*(N^3) + -1.9165e-4*(N^2) +
18 * 3.0604e-1*(N^1) + -5.6197e1
20 * where [-56.197, 136.402]C and N = [0, 1023].
29 * T = -34627e-12*(N^4) + 110230e-9*(N^3) + -191650e-6*(N^2) +
30 * 306040e-3*(N^1) + -56197
32 * where T = [-56197, 136402]mC and N = [0, 1023].
37 {4, -34627, 1000, 1},
39 {2, -191650, 1000, 1},
41 {0, -56197, 1, 1}
[all …]
/kernel/linux/linux-6.6/Documentation/ABI/testing/
Dsysfs-class-hwmon16 The contents of the label are free-form.
135 this voltage channel is being used for, and user-space
137 user-space.
145 When disabled the sensor read will return -ENODATA.
147 - 1: Enable
148 - 0: Disable
195 Unit: revolution/min (RPM)
203 Unit: revolution/min (RPM)
212 Unit: revolution/min (RPM)
230 Number of tachometer pulses per fan revolution.
[all …]

12