Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4826574yba; Wed, 10 Apr 2019 05:52:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqxme5w6MxF3ZbzJEWG7i3d2lDBSdeayzhwH7AdKy1Z32NxlsYzfLbexmYUKY1nIhyrKWxq0 X-Received: by 2002:a62:2046:: with SMTP id g67mr42688542pfg.121.1554900739298; Wed, 10 Apr 2019 05:52:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554900739; cv=none; d=google.com; s=arc-20160816; b=PFDD+68YcGcgOMMPrWhgbIJClCohgkK1AkfDAvUU4/yQaV89C55h3Z+k35WjQlLUK3 BM5AhfTw4Lgl040n7qHe5UamrIA3u0qI1tlTIOL2dKJVd94Srz+gQWFzLyybAZuYxL5A 5Oh9NkjXvAyB0wHBdbiDR7lp6N0nufh/CMECYMqiwMQRqMSMHXzxaDiJgBEWKSBOAikN mDw+o9wQiQ9e/PazKv8lCQHsFqR8CGpuxjf9Bg51PEOsQpB0jcoMyJPFc9+0IL4iD4/Q B7IWB6NNKAsnzNG8iFMWNxSlX0V2AOpA6gmka8YuC+Vz1MBxDqd8LhqsP17hLq4meTcC 2AhA== 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=aMyMq6+HpBeCrxOa6nGyZagjeADRq/dui+re74lmB8g=; b=xmhRBFnhJpVYmHhU5QeL9q+jWCObkOOEJ2QIaTVv6m/6Y+qO4RwIOPUBGdbMrxV8RF K/ik1lYnBYF9kBL44rYYqyJ/vtTye7jB8yESwDhsR56jv3lGW9laYRAIWgEnC93hKZo0 0U6ML1ZDIwpVuivv+jSGdoD/1XyZCreN4wnMw+Rnf8y4AQ6Tho6gB8DcCQQKpJ61Yp+6 x0gH2ALEr7PXmtYGNZsIqLOPXu4K6buX0tyfM+7dVczEPJqSIMbYT27Q+UbC6UVGs/ft j6v6IA+xkS+8qyle5TJimH6wx+Aye+qv2w8WJEEJAwUnGv9vMiwD0Yw6FrDRkuq2gSv+ /E2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=RmCeCT1+; 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 d11si21845049pfn.171.2019.04.10.05.52.03; Wed, 10 Apr 2019 05:52:19 -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=RmCeCT1+; 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 S1731569AbfDJLOI (ORCPT + 99 others); Wed, 10 Apr 2019 07:14:08 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:44452 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731076AbfDJLMQ (ORCPT ); Wed, 10 Apr 2019 07:12:16 -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=aMyMq6+HpBeCrxOa6nGyZagjeADRq/dui+re74lmB8g=; b=RmCeCT1+75JYRO35+CDdWULnT3 Oeok7wFCc9H32oiARnXcYAoz2iGBkPzapWkHMeuiidNAdmyi4HiaGVxdEax5J3725HzWfhgmA32UP eRyiP6DuglH+xP8o+ZtmmKXRMZIAoeOLo/yk3VFc1Pi2Z9BISoU/GVrRcGyaLNgvcOC81YnUfxDSx p3+XSARBDJHmDj7xNiXZ4LXpl1qS4eTp06YdiXz3T7b0oo5fbA8tRAuIfqYHc9CcVzCmth5TeDLb5 Kh4M2m3kdEp4vGqZtRNm2bEu7ENpltUON/k0E6S/Kj0MpmrocgTIMFSTV5QZW8qdjSnWHfJOpwhhg inTobMug==; Received: from 177.41.129.23.dynamic.adsl.gvt.net.br ([177.41.129.23] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hEB9L-0006n4-Mi; Wed, 10 Apr 2019 11:12:15 +0000 Received: from mchehab by bombadil.infradead.org with local (Exim 4.92) (envelope-from ) id 1hEB9J-0007TD-HT; Wed, 10 Apr 2019 08:12:13 -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 13/21] docs: hwmon: ads1015: convert to ReST format Date: Wed, 10 Apr 2019 08:12:03 -0300 Message-Id: <035d94aab9cff675b38a69c2944780ff8a482337.1554893882.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 ads1015 to ReST format, in order to allow it to be parsed by Sphinx. Signed-off-by: Mauro Carvalho Chehab --- Documentation/hwmon/ads1015 | 72 ++++++++++++++++++++++--------------- 1 file changed, 43 insertions(+), 29 deletions(-) diff --git a/Documentation/hwmon/ads1015 b/Documentation/hwmon/ads1015 index 02d2a459385f..e0951c4e57bb 100644 --- a/Documentation/hwmon/ads1015 +++ b/Documentation/hwmon/ads1015 @@ -2,17 +2,25 @@ Kernel driver ads1015 ===================== Supported chips: + * Texas Instruments ADS1015 + Prefix: 'ads1015' - Datasheet: Publicly available at the Texas Instruments website : - http://focus.ti.com/lit/ds/symlink/ads1015.pdf + + Datasheet: Publicly available at the Texas Instruments website: + + http://focus.ti.com/lit/ds/symlink/ads1015.pdf + * Texas Instruments ADS1115 + Prefix: 'ads1115' - Datasheet: Publicly available at the Texas Instruments website : - http://focus.ti.com/lit/ds/symlink/ads1115.pdf + + Datasheet: Publicly available at the Texas Instruments website: + + http://focus.ti.com/lit/ds/symlink/ads1115.pdf Authors: - Dirk Eibach, Guntermann & Drunck GmbH + Dirk Eibach, Guntermann & Drunck GmbH Description ----------- @@ -24,14 +32,15 @@ This device is a 12/16-bit A-D converter with 4 inputs. The inputs can be used single ended or in certain differential combinations. The inputs can be made available by 8 sysfs input files in0_input - in7_input: -in0: Voltage over AIN0 and AIN1. -in1: Voltage over AIN0 and AIN3. -in2: Voltage over AIN1 and AIN3. -in3: Voltage over AIN2 and AIN3. -in4: Voltage over AIN0 and GND. -in5: Voltage over AIN1 and GND. -in6: Voltage over AIN2 and GND. -in7: Voltage over AIN3 and GND. + + - in0: Voltage over AIN0 and AIN1. + - in1: Voltage over AIN0 and AIN3. + - in2: Voltage over AIN1 and AIN3. + - in3: Voltage over AIN2 and AIN3. + - in4: Voltage over AIN0 and GND. + - in5: Voltage over AIN1 and GND. + - in6: Voltage over AIN2 and GND. + - in7: Voltage over AIN3 and GND. Which inputs are available can be configured using platform data or devicetree. @@ -42,29 +51,34 @@ Platform Data In linux/platform_data/ads1015.h platform data is defined, channel_data contains configuration data for the used input combinations: + - pga is the programmable gain amplifier (values are full scale) - 0: +/- 6.144 V - 1: +/- 4.096 V - 2: +/- 2.048 V - 3: +/- 1.024 V - 4: +/- 0.512 V - 5: +/- 0.256 V + + - 0: +/- 6.144 V + - 1: +/- 4.096 V + - 2: +/- 2.048 V + - 3: +/- 1.024 V + - 4: +/- 0.512 V + - 5: +/- 0.256 V + - data_rate in samples per second - 0: 128 - 1: 250 - 2: 490 - 3: 920 - 4: 1600 - 5: 2400 - 6: 3300 -Example: -struct ads1015_platform_data data = { + - 0: 128 + - 1: 250 + - 2: 490 + - 3: 920 + - 4: 1600 + - 5: 2400 + - 6: 3300 + +Example:: + + struct ads1015_platform_data data = { .channel_data = { [2] = { .enabled = true, .pga = 1, .data_rate = 0 }, [4] = { .enabled = true, .pga = 4, .data_rate = 5 }, } -}; + }; In this case only in2_input (FS +/- 4.096 V, 128 SPS) and in4_input (FS +/- 0.512 V, 2400 SPS) would be created. -- 2.20.1