Loading Documentation/hwmon/da9052 +29 −12 Original line number Diff line number Diff line Kernel driver da9052 ==================== Supported chips: * Dialog Semiconductors DA9052-BC and DA9053-AA/Bx PMICs Prefix: 'da9052' Datasheet: Datasheet is not publicly available. Authors: David Dajun Chen <dchen@diasemi.com> Loading @@ -15,17 +21,20 @@ 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: ICH - internal battery charger current measurement Channel 2: TBAT - output from the battery NTC Channel 3: VBAT - measurement of the battery voltage Channel 4: ADC_IN4 - high impedance input (0 - 2.5V) Channel 5: ADC_IN5 - high impedance input (0 - 2.5V) Channel 6: ADC_IN6 - high impedance input (0 - 2.5V) Channel 7: XY - TSI interface to measure the X and Y voltage of the touch ========= =================================================================== Channel 0 VDDOUT - measurement of the system voltage Channel 1 ICH - internal battery charger current measurement Channel 2 TBAT - output from the battery NTC Channel 3 VBAT - measurement of the battery voltage Channel 4 ADC_IN4 - high impedance input (0 - 2.5V) Channel 5 ADC_IN5 - high impedance input (0 - 2.5V) Channel 6 ADC_IN6 - high impedance input (0 - 2.5V) Channel 7 XY - TSI interface to measure the X and Y voltage of the touch screen resistive potentiometers Channel 8: Internal Tjunc. - sense (internal temp. sensor) Channel 9: VBBAT - measurement of the backup battery voltage Channel 8 Internal Tjunc. - sense (internal temp. sensor) Channel 9 VBBAT - measurement of the backup battery voltage ========= =================================================================== By using sysfs attributes we can measure the system voltage VDDOUT, the battery charging current ICH, battery temperature TBAT, battery junction temperature Loading @@ -37,12 +46,15 @@ Voltage Monitoring Voltages are sampled by a 10 bit ADC. The battery voltage is calculated as: Milli volt = ((ADC value * 1000) / 512) + 2500 The backup battery voltage is calculated as: Milli volt = (ADC value * 2500) / 512; The voltages on ADC channels 4, 5 and 6 are calculated as: Milli volt = (ADC value * 2500) / 1023 Temperature Monitoring Loading @@ -52,10 +64,15 @@ Temperatures are sampled by a 10 bit ADC. Junction and battery temperatures are monitored by the ADC channels. The junction temperature is calculated: Degrees celsius = 1.708 * (TJUNC_RES - T_OFFSET) - 108.8 The junction temperature attribute is supported by the driver. The battery temperature is calculated: Degree Celsius = 1 / (t1 + 1/298) - 273 where t1 = (1/B)* ln(( ADCval * 2.5)/(R25*ITBAT*255)) Default values of R25, B, ITBAT are 10e3, 3380 and 50e-6 respectively. Documentation/hwmon/da9055 +15 −5 Original line number Diff line number Diff line Kernel driver da9055 ==================== Supported chips: * Dialog Semiconductors DA9055 PMIC Prefix: 'da9055' Datasheet: Datasheet is not publicly available. Authors: David Dajun Chen <dchen@diasemi.com> Loading @@ -15,11 +20,12 @@ 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) - 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. Loading @@ -31,9 +37,11 @@ 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 Loading @@ -43,5 +51,7 @@ 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. Loading
Documentation/hwmon/da9052 +29 −12 Original line number Diff line number Diff line Kernel driver da9052 ==================== Supported chips: * Dialog Semiconductors DA9052-BC and DA9053-AA/Bx PMICs Prefix: 'da9052' Datasheet: Datasheet is not publicly available. Authors: David Dajun Chen <dchen@diasemi.com> Loading @@ -15,17 +21,20 @@ 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: ICH - internal battery charger current measurement Channel 2: TBAT - output from the battery NTC Channel 3: VBAT - measurement of the battery voltage Channel 4: ADC_IN4 - high impedance input (0 - 2.5V) Channel 5: ADC_IN5 - high impedance input (0 - 2.5V) Channel 6: ADC_IN6 - high impedance input (0 - 2.5V) Channel 7: XY - TSI interface to measure the X and Y voltage of the touch ========= =================================================================== Channel 0 VDDOUT - measurement of the system voltage Channel 1 ICH - internal battery charger current measurement Channel 2 TBAT - output from the battery NTC Channel 3 VBAT - measurement of the battery voltage Channel 4 ADC_IN4 - high impedance input (0 - 2.5V) Channel 5 ADC_IN5 - high impedance input (0 - 2.5V) Channel 6 ADC_IN6 - high impedance input (0 - 2.5V) Channel 7 XY - TSI interface to measure the X and Y voltage of the touch screen resistive potentiometers Channel 8: Internal Tjunc. - sense (internal temp. sensor) Channel 9: VBBAT - measurement of the backup battery voltage Channel 8 Internal Tjunc. - sense (internal temp. sensor) Channel 9 VBBAT - measurement of the backup battery voltage ========= =================================================================== By using sysfs attributes we can measure the system voltage VDDOUT, the battery charging current ICH, battery temperature TBAT, battery junction temperature Loading @@ -37,12 +46,15 @@ Voltage Monitoring Voltages are sampled by a 10 bit ADC. The battery voltage is calculated as: Milli volt = ((ADC value * 1000) / 512) + 2500 The backup battery voltage is calculated as: Milli volt = (ADC value * 2500) / 512; The voltages on ADC channels 4, 5 and 6 are calculated as: Milli volt = (ADC value * 2500) / 1023 Temperature Monitoring Loading @@ -52,10 +64,15 @@ Temperatures are sampled by a 10 bit ADC. Junction and battery temperatures are monitored by the ADC channels. The junction temperature is calculated: Degrees celsius = 1.708 * (TJUNC_RES - T_OFFSET) - 108.8 The junction temperature attribute is supported by the driver. The battery temperature is calculated: Degree Celsius = 1 / (t1 + 1/298) - 273 where t1 = (1/B)* ln(( ADCval * 2.5)/(R25*ITBAT*255)) Default values of R25, B, ITBAT are 10e3, 3380 and 50e-6 respectively.
Documentation/hwmon/da9055 +15 −5 Original line number Diff line number Diff line Kernel driver da9055 ==================== Supported chips: * Dialog Semiconductors DA9055 PMIC Prefix: 'da9055' Datasheet: Datasheet is not publicly available. Authors: David Dajun Chen <dchen@diasemi.com> Loading @@ -15,11 +20,12 @@ 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) - 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. Loading @@ -31,9 +37,11 @@ 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 Loading @@ -43,5 +51,7 @@ 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.