-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'hwmon-for-v6.2-rc1' of git://git.kernel.org/pub/scm/linux/…
…kernel/git/groeck/linux-staging Pull hwmon updates from Guenter Roeck: "New drivers: - Driver for OneXPlayer mini AMD sensors - Ampere's Altra smpro-hwmon driver New chip and attribute support in existing drivers: - nct6775: Support for ASUS CROSSHAIR VIII/TUF/ProArt B550M - pmbus/ltc2978: Support for LTC7132 - aquacomputer_d5next: Support for temperature sensor offsets and flow sensor pulses - coretemp: Support for dynamic ttarget and tjmax Improvements: - Use devm_regulator_get_enable() where appropriate - Use sysfs_emit() instead of scnprintf() - Remove some useless #include <linux/hwmon-vid.h> - Include <linux/kstrtox.h> when appropriate - Use simple i2c probe - it87: Check for a valid chip before using force_id, and new new module parameter to ignore ACPI resource conflicts - jc42: Use regmap, and restore min/max/critical temperatures on resume - Add reporting power good and status to PMBus based regulators Last minute fixes: - emc2305: Fix probing of emc2301/2/3, and fix setting pwm values manually if THERMAL is enabled And various other minor fixes and improvements" * tag 'hwmon-for-v6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging: (37 commits) hwmon: (emc2305) fix pwm never being able to set lower hwmon: (emc2305) fix unable to probe emc2301/2/3 hwmon: (dell-smm) Move error message to make probing silent hwmon: use sysfs_emit() to instead of scnprintf() hwmon: (oxp-sensors) Fix pwm reading hwmon: (aquacomputer_d5next) Add support for Quadro flow sensor pulses hwmon: (pmbus/core) Implement regulator get_status hwmon: (oxp-sensors) Add AOK ZOE and Mini PRO hwmon: (gsc-hwmon) Switch to flexible array to simplify code hwmon: (pmbus) Add power good support hwmon: (nct6775) add ASUS CROSSHAIR VIII/TUF/ProArt B550M hwmon: (coretemp) Add support for dynamic ttarget hwmon: (coretemp) Add support for dynamic tjmax hwmon: (coretemp) rearrange tjmax handing code hwmon: Remove some useless #include <linux/hwmon-vid.h> hwmon: (coretemp) Remove obsolete temp_data->valid hwmon: add OneXPlayer mini AMD sensors driver hwmon: (aquacomputer_d5next) Clear up macros and comments hwmon: (it87) Add DMI table for future extensions hwmon: Include <linux/kstrtox.h> when appropriate ...
- Loading branch information
Showing
42 changed files
with
1,611 additions
and
407 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
.. SPDX-License-Identifier: GPL-2.0-or-later | ||
Kernel driver oxp-sensors | ||
========================= | ||
|
||
Author: | ||
- Joaquín Ignacio Aramendía <samsagax@gmail.com> | ||
|
||
Description: | ||
------------ | ||
|
||
One X Player devices from One Netbook provide fan readings and fan control | ||
through its Embedded Controller. | ||
|
||
Currently only supports AMD boards from the One X Player and AOK ZOE lineup. | ||
Intel boards could be supported if we could figure out the EC registers and | ||
values to write to since the EC layout and model is different. | ||
|
||
Supported devices | ||
----------------- | ||
|
||
Currently the driver supports the following handhelds: | ||
|
||
- AOK ZOE A1 | ||
- OneXPlayer AMD | ||
- OneXPlayer mini AMD | ||
- OneXPlayer mini AMD PRO | ||
|
||
Sysfs entries | ||
------------- | ||
|
||
The following attributes are supported: | ||
|
||
fan1_input | ||
Read Only. Reads current fan RMP. | ||
|
||
pwm1_enable | ||
Read Write. Enable manual fan control. Write "1" to set to manual, write "0" | ||
to let the EC control de fan speed. Read this attribute to see current status. | ||
|
||
pwm1 | ||
Read Write. Read this attribute to see current duty cycle in the range [0-255]. | ||
When pwm1_enable is set to "1" (manual) write any value in the range [0-255] | ||
to set fan speed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
.. SPDX-License-Identifier: GPL-2.0-only | ||
Kernel driver Ampere(R)'s Altra(R) SMpro hwmon | ||
============================================== | ||
|
||
Supported chips: | ||
|
||
* Ampere(R) Altra(R) | ||
|
||
Prefix: ``smpro`` | ||
|
||
Reference: `Altra SoC BMC Interface Specification` | ||
|
||
Author: Thu Nguyen <thu@os.amperecomputing.com> | ||
|
||
Description | ||
----------- | ||
The smpro-hwmon driver supports hardware monitoring for Ampere(R) Altra(R) | ||
SoCs based on the SMpro co-processor (SMpro). The following sensor metrics | ||
are supported by the driver: | ||
|
||
* temperature | ||
* voltage | ||
* current | ||
* power | ||
|
||
The interface provides the registers to query the various sensors and | ||
their values which are then exported to userspace by this driver. | ||
|
||
Usage Notes | ||
----------- | ||
|
||
The driver creates at least two sysfs files for each sensor. | ||
|
||
* ``<sensor_type><idx>_label`` reports the sensor label. | ||
* ``<sensor_type><idx>_input`` returns the sensor value. | ||
|
||
The sysfs files are allocated in the SMpro rootfs folder, with one root | ||
directory for each instance. | ||
|
||
When the SoC is turned off, the driver will fail to read registers and | ||
return ``-ENXIO``. | ||
|
||
Sysfs entries | ||
------------- | ||
|
||
The following sysfs files are supported: | ||
|
||
* Ampere(R) Altra(R): | ||
|
||
============ ============= ====== =============================================== | ||
Name Unit Perm Description | ||
============ ============= ====== =============================================== | ||
temp1_input millicelsius RO SoC temperature | ||
temp2_input millicelsius RO Max temperature reported among SoC VRDs | ||
temp2_crit millicelsius RO SoC VRD HOT Threshold temperature | ||
temp3_input millicelsius RO Max temperature reported among DIMM VRDs | ||
temp4_input millicelsius RO Max temperature reported among Core VRDs | ||
temp5_input millicelsius RO Temperature of DIMM0 on CH0 | ||
temp5_crit millicelsius RO MEM HOT Threshold for all DIMMs | ||
temp6_input millicelsius RO Temperature of DIMM0 on CH1 | ||
temp6_crit millicelsius RO MEM HOT Threshold for all DIMMs | ||
temp7_input millicelsius RO Temperature of DIMM0 on CH2 | ||
temp7_crit millicelsius RO MEM HOT Threshold for all DIMMs | ||
temp8_input millicelsius RO Temperature of DIMM0 on CH3 | ||
temp8_crit millicelsius RO MEM HOT Threshold for all DIMMs | ||
temp9_input millicelsius RO Temperature of DIMM0 on CH4 | ||
temp9_crit millicelsius RO MEM HOT Threshold for all DIMMs | ||
temp10_input millicelsius RO Temperature of DIMM0 on CH5 | ||
temp10_crit millicelsius RO MEM HOT Threshold for all DIMMs | ||
temp11_input millicelsius RO Temperature of DIMM0 on CH6 | ||
temp11_crit millicelsius RO MEM HOT Threshold for all DIMMs | ||
temp12_input millicelsius RO Temperature of DIMM0 on CH7 | ||
temp12_crit millicelsius RO MEM HOT Threshold for all DIMMs | ||
temp13_input millicelsius RO Max temperature reported among RCA VRDs | ||
in0_input millivolts RO Core voltage | ||
in1_input millivolts RO SoC voltage | ||
in2_input millivolts RO DIMM VRD1 voltage | ||
in3_input millivolts RO DIMM VRD2 voltage | ||
in4_input millivolts RO RCA VRD voltage | ||
cur1_input milliamperes RO Core VRD current | ||
cur2_input milliamperes RO SoC VRD current | ||
cur3_input milliamperes RO DIMM VRD1 current | ||
cur4_input milliamperes RO DIMM VRD2 current | ||
cur5_input milliamperes RO RCA VRD current | ||
power1_input microwatts RO Core VRD power | ||
power2_input microwatts RO SoC VRD power | ||
power3_input microwatts RO DIMM VRD1 power | ||
power4_input microwatts RO DIMM VRD2 power | ||
power5_input microwatts RO RCA VRD power | ||
============ ============= ====== =============================================== | ||
|
||
Example:: | ||
|
||
# cat in0_input | ||
830 | ||
# cat temp1_input | ||
37000 | ||
# cat curr1_input | ||
9000 | ||
# cat power5_input | ||
19500000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.