mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
hwmon: Add xgene hwmon driver
This patch adds hardware temperature and power reading support for APM X-Gene SoC using the mailbox communication interface. Signed-off-by: Hoan Tran <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
This commit is contained in:
parent
86430c1a66
commit
ed42cfa881
4 changed files with 793 additions and 0 deletions
30
Documentation/hwmon/xgene-hwmon
Normal file
30
Documentation/hwmon/xgene-hwmon
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
Kernel driver xgene-hwmon
|
||||
========================
|
||||
|
||||
Supported chips:
|
||||
* APM X-Gene SoC
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
This driver adds hardware temperature and power reading support for
|
||||
APM X-Gene SoC using the mailbox communication interface.
|
||||
For device tree, it is the standard DT mailbox.
|
||||
For ACPI, it is the PCC mailbox.
|
||||
|
||||
The following sensors are supported
|
||||
|
||||
* Temperature
|
||||
- SoC on-die temperature in milli-degree C
|
||||
- Alarm when high/over temperature occurs
|
||||
* Power
|
||||
- CPU power in uW
|
||||
- IO power in uW
|
||||
|
||||
sysfs-Interface
|
||||
---------------
|
||||
|
||||
temp0_input - SoC on-die temperature (milli-degree C)
|
||||
temp0_critical_alarm - An 1 would indicates on-die temperature exceeded threshold
|
||||
power0_input - CPU power in (uW)
|
||||
power1_input - IO power in (uW)
|
||||
Loading…
Reference in a new issue