Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4018203yba; Wed, 17 Apr 2019 02:50:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqxAJ8BcohNPrR51BtOMYDJsLfWZWpVzwqRG0bi83WLYzpIgV8O0/sdx53kWaOLpbz7e94K+ X-Received: by 2002:aa7:9151:: with SMTP id 17mr88631452pfi.192.1555494645489; Wed, 17 Apr 2019 02:50:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555494645; cv=none; d=google.com; s=arc-20160816; b=VPjl7yeadqy/pPAmVOPexcwOpz5b+1Jzhuhn9nGk4cgjiPhKIeeE8vEEhj3idZiEaM wihy4MHI2sBDoHJUWTryK2UEgkv+Pu2I1mh/PE5vEIWfj0FP8yIUwo6EO1B/Ue34eLJs BFNMsJ9Pa/czDJyS7KM5I0vG3uOgI/wbcJennRQZpxOKs9JdvEUruxeVfQFb6vLW+I1M c6W1Qi/V3d9y2ml/nQL+N/LGhIp8P4xkVOU0kfrLYB2ThRZYGxWylqEvZdGJuNyzFfd3 s+zcla9N+m11Sw7wwcMpgx768UdR1ws5t237jl4j4juWJE7K2lykL7+SNOThI/9EEsNh Zq7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=QQCff89iImXjDA1ktDroJqyQ00Ieb0wfPOW+QkqKVUk=; b=knzz86hHtYZD29KxOR6xXUzCIbwzJm2BGuwYwFjDvhvTlTC7Sw0iBEuXh3l2zuNG59 sLjKar1QGOIAGb+sZV1ps6ndmtR88JqjwiQJhPq5sE638F/5kx/HdX1o6MBwq0IB7cUJ dpJZjOZOtgCzUG73Pu7nWK8yKoF69FvaZiFuCGd27l9il22tmc77LFVoT35DKgavx5vT A3W1xk8E16YnY9dRjQdEMvhkS34vX6mjbc5wLu2u0LsUkeDpPdvUJMLYD1Nd9EVY14/e VMPOQjiddqWZv13aLx06WB2jRLVAUQw6V0TZHX2BMweLMDTaGwHaLOnTWQ5AQIS5f/E+ ZTrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="oOHzOQB/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t10si50047558plr.229.2019.04.17.02.50.30; Wed, 17 Apr 2019 02:50:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="oOHzOQB/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731879AbfDQJr4 (ORCPT + 99 others); Wed, 17 Apr 2019 05:47:56 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:44948 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731704AbfDQJqj (ORCPT ); Wed, 17 Apr 2019 05:46:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=QQCff89iImXjDA1ktDroJqyQ00Ieb0wfPOW+QkqKVUk=; b=oOHzOQB/pOzkyaPII8W0pSfEfx B3fPP/Zz89MqCc3U4cXign+Xe5R+GncVoK7Wq78FzQFlFcK0FAc+IlUcXU6qFLyIBVFru/0DdOjRs qJaIe4Dcn1kLx/UpHYTBFB4J0tQMz8xnD9Nhdiu9JLdsiV+UfVd55kgwXC7MMMGesp/CSrm2gZQFI FyZ6EoR6OWtgtZ9qIW1sCytjev/PYu/vI0jU7ecJxkc3FJ7vwLLHXiALuxVLjf2YB8gEzuRdVhLtr jd5UccHWqEnO3fwyNHIQV3N7LxsJe9xTd1g6jriaxKMPY/L7+M3Vew8CNOSJDqcJUnJjvPUZzT2gZ Qj+Z4uCg==; Received: from 177.132.233.55.dynamic.adsl.gvt.net.br ([177.132.233.55] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hGh9K-0000aK-AQ; Wed, 17 Apr 2019 09:46:38 +0000 Received: from mchehab by bombadil.infradead.org with local (Exim 4.92) (envelope-from ) id 1hGh9D-0003vK-5z; Wed, 17 Apr 2019 06:46:31 -0300 From: Mauro Carvalho Chehab To: Linux Doc Mailing List Cc: Mauro Carvalho Chehab , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Jonathan Corbet , Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org Subject: [PATCH v3 16/21] docs: hwmon: da9052, da9055: convert to ReST format Date: Wed, 17 Apr 2019 06:46:24 -0300 Message-Id: <722f0c2614ba19993fd04266063ad7c09876ff89.1555494108.git.mchehab+samsung@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert da9052 and da9055 to ReST format, in order to allow them to be parsed by Sphinx. Signed-off-by: Mauro Carvalho Chehab --- Documentation/hwmon/da9052 | 41 +++++++++++++++++++++++++++----------- Documentation/hwmon/da9055 | 20 ++++++++++++++----- 2 files changed, 44 insertions(+), 17 deletions(-) diff --git a/Documentation/hwmon/da9052 b/Documentation/hwmon/da9052 index 5bc51346b689..c1c0f1f08904 100644 --- a/Documentation/hwmon/da9052 +++ b/Documentation/hwmon/da9052 @@ -1,6 +1,12 @@ +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 @@ -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 - screen resistive potentiometers -Channel 8: Internal Tjunc. - sense (internal temp. sensor) -Channel 9: VBBAT - measurement of the backup battery voltage + +========= =================================================================== +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 +========= =================================================================== By using sysfs attributes we can measure the system voltage VDDOUT, the battery charging current ICH, battery temperature TBAT, battery junction temperature @@ -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 @@ -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 + + 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. diff --git a/Documentation/hwmon/da9055 b/Documentation/hwmon/da9055 index 855c3f536e00..beae271a3312 100644 --- a/Documentation/hwmon/da9055 +++ b/Documentation/hwmon/da9055 @@ -1,6 +1,11 @@ +Kernel driver da9055 +==================== + Supported chips: * Dialog Semiconductors DA9055 PMIC + Prefix: 'da9055' + Datasheet: Datasheet is not publicly available. Authors: David Dajun Chen @@ -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. @@ -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 @@ -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. -- 2.20.1