-
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-linus' of git://git.kernel.org/pub/scm/linux/ker…
…nel/git/groeck/linux-staging Pull hwmon updates from Guenter Roeck: "New driver: DA9055 Added/improved support for new chips in existing drivers: Z650/670, N550/570, ADS7830, AMD 16h family" * tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging: hwmon: (da9055) Fix chan_mux[DA9055_ADC_ADCIN3] setting hwmon: DA9055 HWMON driver hwmon: (coretemp) List TjMax for Z650/670 and N550/570 hwmon: (coretemp) Drop N4xx, N5xx, D4xx, D5xx CPUs from tjmax table hwmon: (coretemp) Use model table instead of if/else to identify CPU models hwmon: da9052: Use da9052_reg_update for rmw operations hwmon: (coretemp) Drop dependency on PCI for TjMax detection on Atom CPUs hwmon: (ina2xx) use module_i2c_driver to simplify the code hwmon: (ads7828) add support for ADS7830 hwmon: (ads7828) driver cleanup x86,AMD: Power driver support for AMD's family 16h processors
- Loading branch information
Showing
12 changed files
with
607 additions
and
224 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,47 @@ | ||
Supported chips: | ||
* Dialog Semiconductors DA9055 PMIC | ||
Prefix: 'da9055' | ||
Datasheet: Datasheet is not publicly available. | ||
|
||
Authors: David Dajun Chen <dchen@diasemi.com> | ||
|
||
Description | ||
----------- | ||
|
||
The DA9055 provides an Analogue to Digital Converter (ADC) with 10 bits | ||
resolution and track and hold circuitry combined with an analogue input | ||
multiplexer. The analogue input multiplexer will allow conversion of up to 5 | ||
different inputs. The track and hold circuit ensures stable input voltages at | ||
the input of the ADC during the conversion. | ||
|
||
The ADC is used to measure the following inputs: | ||
Channel 0: VDDOUT - measurement of the system voltage | ||
Channel 1: ADC_IN1 - high impedance input (0 - 2.5V) | ||
Channel 2: ADC_IN2 - high impedance input (0 - 2.5V) | ||
Channel 3: ADC_IN3 - high impedance input (0 - 2.5V) | ||
Channel 4: Internal Tjunc. - sense (internal temp. sensor) | ||
|
||
By using sysfs attributes we can measure the system voltage VDDOUT, | ||
chip junction temperature and auxiliary channels voltages. | ||
|
||
Voltage Monitoring | ||
------------------ | ||
|
||
Voltages are sampled in a AUTO mode it can be manually sampled too and results | ||
are stored in a 10 bit ADC. | ||
|
||
The system voltage is calculated as: | ||
Milli volt = ((ADC value * 1000) / 85) + 2500 | ||
|
||
The voltages on ADC channels 1, 2 and 3 are calculated as: | ||
Milli volt = (ADC value * 1000) / 102 | ||
|
||
Temperature Monitoring | ||
---------------------- | ||
|
||
Temperatures are sampled by a 10 bit ADC. Junction temperatures | ||
are monitored by the ADC channels. | ||
|
||
The junction temperature is calculated: | ||
Degrees celsius = -0.4084 * (ADC_RES - T_OFFSET) + 307.6332 | ||
The junction temperature attribute is supported by the driver. |
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.