Received: by 10.192.165.156 with SMTP id m28csp2770565imm; Sun, 15 Apr 2018 08:41:41 -0700 (PDT) X-Google-Smtp-Source: AIpwx482vmKE2wHm9/fYKA1tnsFauWFh6s2Sd656CX6Bp1H2+EDLBoi6iZeLxmFBy9HdJmNPg/tg X-Received: by 10.99.139.202 with SMTP id j193mr3522328pge.300.1523806901606; Sun, 15 Apr 2018 08:41:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523806901; cv=none; d=google.com; s=arc-20160816; b=WCHyHAY/YufZRbM/QbciqKil7htLc2rrgZh8snsSEtBseLgI2bdHVWY8wlssQMsEOr XOp8J3rJMezIJv4O0nrbN4jlMMYbUUv3/QlCIZkaEBcbzcSfazl1JWm0EQ+3n6jeh4gy qMf87y2MAICI8mJ6CfBeLEUdi90ptV2/cL32w6YsmMQ8i+BbERioZguruaLorPzE09BW BjDOxJT51GmB2XF49QhYF5rFAmfPNE5uFFRm7RJh1s71wOk84oCTvbc2JYpCrF5cuj/0 RdeZJByGIq4aN1ZSzGTQk7jYEJbdtejFTzs0XArFuHCaelJ/Z7H2kXkSfxrff5S/b4KX vd8Q== 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:subject:cc:to:from:date :dmarc-filter:arc-authentication-results; bh=+pvZhYvPEwb699N8D6U32xYG4ZGgJx+XjeLW/ez+8ak=; b=JIceVzo0D4W+LXxng+Vj7HAcA81jB9e2EcZLPVKP1ZWv6lWT9JJx5XRZrsyxgJlMEU kqit7HQM1dLc15ZMxRZfua3Ghho2IoSBB0e09yiM61D0BmqCre+6BjYM8Wloui9ga0+J 3K80o5C9HiBOTxYMvVMj/1E6ph4GR7kabQ4yxm6bDtxc5gQKQEgG5h2EcMtRzvKUfBi9 m3NQF0S6TZYqLKeJ9Qqm9pxJLXM20bngQ1uwj311TWbiXCWmPe7Odiu0afghl3XA6vSH IhYyxzpd1rRrSEzsSTLt7gE4P3BudPXBIy0ly9HDV4JZ5lMBpDCzPMfyjGTuL6z2Y4rj ObZA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a61-v6si10223453pla.271.2018.04.15.08.41.27; Sun, 15 Apr 2018 08:41:41 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752652AbeDOPkU convert rfc822-to-8bit (ORCPT + 99 others); Sun, 15 Apr 2018 11:40:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:40206 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752457AbeDOPkT (ORCPT ); Sun, 15 Apr 2018 11:40:19 -0400 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 960D72177F; Sun, 15 Apr 2018 15:40:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 960D72177F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=jic23@kernel.org Date: Sun, 15 Apr 2018 16:40:12 +0100 From: Jonathan Cameron To: =?UTF-8?B?SGVybsOhbg==?= Gonzalez Cc: knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, gregkh@linuxfoundation.org, Michael.Hennerich@analog.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 12/14] staging: iio: ad7746: Add ABI documentation Message-ID: <20180415164012.3e848d51@archlinux> In-Reply-To: <1523637411-8531-13-git-send-email-hernan@vanguardiasur.com.ar> References: <1523637411-8531-1-git-send-email-hernan@vanguardiasur.com.ar> <1523637411-8531-13-git-send-email-hernan@vanguardiasur.com.ar> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 13 Apr 2018 13:36:49 -0300 Hernán Gonzalez wrote: > The use cases for this driver don't comply with the current ABI. The > ad7746 and ad7152 need an external capacitance or voltage reference to > automatically calibrate themselves which is not the normal use case of > the calibscale and calibbias ABIs, a new ABI was needed. I agree with the general aim here. Would appreciate input from Michael in particular on these + ideally others! One comment inline, Thanks, Jonathan > > Signed-off-by: Hernán Gonzalez > --- > Documentation/ABI/testing/sysfs-bus-iio-ad7746 | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > create mode 100644 Documentation/ABI/testing/sysfs-bus-iio-ad7746 > > diff --git a/Documentation/ABI/testing/sysfs-bus-iio-ad7746 b/Documentation/ABI/testing/sysfs-bus-iio-ad7746 > new file mode 100644 > index 0000000..96a41b7 > --- /dev/null > +++ b/Documentation/ABI/testing/sysfs-bus-iio-ad7746 > @@ -0,0 +1,17 @@ > +What: /sys/bus/iio/devices/iio:deviceX/in_capacitanceX_calibscale_calibration > +What: /sys/bus/iio/devices/iio:deviceX/in_voltage0_calibscale_calibration Hmm. I wonder if indicating that it causes calibration would be better done by in_voltage0_calibscale_calibrate > +KernelVersion: 4.17.0 > +Contact: linux-iio@vger.kernel.org > +Description: > + Enter gain calibration mode, in which a full-scale > + {capacitance, voltage reference} must be connected to the > + {capacitance, voltage} input beforehand to automatically > + calibrate the device. > + > +What: /sys/bus/iio/devices/iio:deviceX/in_capacitanceX_calibbias_calibration > +KernelVersion: 4.17.0 > +Contact: linux-iio@vger.kernel.org > +Description: > + Enter offset calibration mode, in which a zero-scale > + capacitance must be connected to the capacitance input > + beforehand to automatically calibrate the device.