Blame view

Documentation/hwmon/da9055.rst 1.66 KB
08fae079e   Mauro Carvalho Chehab   docs: hwmon: da90...
1
2
  Kernel driver da9055
  ====================
e59702235   Ashish Jangam   hwmon: DA9055 HWM...
3
4
  Supported chips:
    * Dialog Semiconductors DA9055 PMIC
08fae079e   Mauro Carvalho Chehab   docs: hwmon: da90...
5

e59702235   Ashish Jangam   hwmon: DA9055 HWM...
6
      Prefix: 'da9055'
08fae079e   Mauro Carvalho Chehab   docs: hwmon: da90...
7

e59702235   Ashish Jangam   hwmon: DA9055 HWM...
8
9
10
11
12
13
14
15
16
17
18
19
20
21
      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:
08fae079e   Mauro Carvalho Chehab   docs: hwmon: da90...
22
23
24
25
26
27
  
  - 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)
e59702235   Ashish Jangam   hwmon: DA9055 HWM...
28
29
30
31
32
33
34
35
36
37
38
  
  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:
08fae079e   Mauro Carvalho Chehab   docs: hwmon: da90...
39

e59702235   Ashish Jangam   hwmon: DA9055 HWM...
40
41
42
  	Milli volt = ((ADC value * 1000) / 85) + 2500
  
  The voltages on ADC channels 1, 2 and 3 are calculated as:
08fae079e   Mauro Carvalho Chehab   docs: hwmon: da90...
43

e59702235   Ashish Jangam   hwmon: DA9055 HWM...
44
45
46
47
48
49
50
51
52
  	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:
08fae079e   Mauro Carvalho Chehab   docs: hwmon: da90...
53

e59702235   Ashish Jangam   hwmon: DA9055 HWM...
54
  	Degrees celsius = -0.4084 * (ADC_RES - T_OFFSET) + 307.6332
08fae079e   Mauro Carvalho Chehab   docs: hwmon: da90...
55

e59702235   Ashish Jangam   hwmon: DA9055 HWM...
56
  The junction temperature attribute is supported by the driver.