Received: by 10.213.65.68 with SMTP id h4csp4113203imn; Tue, 10 Apr 2018 09:25:08 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+Tual2dhw0Nqw+Vw3XRuDUlk6GzwoEntoImErD7/898L2m6n7OOBPAtwup4Z1tvxqwukmn X-Received: by 2002:a17:902:9a44:: with SMTP id x4-v6mr1164820plv.312.1523377508236; Tue, 10 Apr 2018 09:25:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523377508; cv=none; d=google.com; s=arc-20160816; b=BobaaJgbwDOtnun6vv1tVNfk8oIZ3nQG0mkY3xVvhHy3i05N/keRVQdEs7ZtQyUVAh 8M6U8YAEClImTZIkNhSCnnwIxq4mTm+t9WPkIV0VEY2mWZSWrqJKVL+2JDmn/3NObAFQ ajTD5ie1IkHm1jYg/TWa1CtL+BXj4BpZx7iAMCEl1/lNgy/+yf1fM3WkJ8N0jSb2rSCl DgWnSNfvp+O/dyaAMeDF1PRGzia6z/jUf6Ei2+FspzrIPzAv8MomeUxm17BqTelN1J07 Xn7tGB218ysroiHCdjGX7I0oq7T9rNuQkUEbr7HmgCWxILdIcfBNetAnNENZn1HaUkMG ypZg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=WjGW+sBOAUEP/rXUeNoW7cTmOkrfFQldZpyMhx7Svzc=; b=EOtExf6OnrjRyDKsweKrCYBDUQa3fiJ95HHtuwBLrx9XgVkZNuRF1GlMdaj0IzlTq2 OlxI8J+jThzFZ6A/jc4/melQFCkBufBF1DUtEMb5plZexRErkM6wRJjjLZSzRmndCEB8 wdxpowSiGVKlzwmGUkTBzd17HgJZPddUVjQHZp9idK65qWLMwekFSi9fhrQJ+v1QF5Wp A0sJKnt7MinG3AFKBfzXpIk3CJlCuv4rjPyNKinrZyxFpNRtajkRfOjHXp4Igi6BsKBF aQzBHwrrUKEOGRHPMJCe4jFfIm0b/SHAqC4zXxPsG2nij4ds51MvwblwTIDrh0kk/Lh6 jsVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=yOlNyJpI; 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 y4-v6si2850479plk.182.2018.04.10.09.24.30; Tue, 10 Apr 2018 09:25:08 -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=merlin.20170209 header.b=yOlNyJpI; 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 S1751966AbeDJQUS (ORCPT + 99 others); Tue, 10 Apr 2018 12:20:18 -0400 Received: from merlin.infradead.org ([205.233.59.134]:36244 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751836AbeDJQUQ (ORCPT ); Tue, 10 Apr 2018 12:20:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To: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=WjGW+sBOAUEP/rXUeNoW7cTmOkrfFQldZpyMhx7Svzc=; b=yOlNyJpIMSE+yKSOvZGl7Jdj1p +kTGKW5E+O/5lT8h+D2CUmsz5GiFZ1U6ymu4FjKNl2JT6WzQZOamgziWG4sUdatSc5ABQofpP/hkO o1F4+qvg8BGk4kh94Mk0+GzYDbr4AIeaXBLkBw3xlKB+0aCImhv0n6YPLLycJdDoEy4qKMoro9x1V YobR8FRlvWOfZuq4sUpun231KaJgFyvwFE2rZ5oOvYKtloel2O1yhfsFlbFV+k8DOBnvTsAaU1UWM i7H7voUN6iR/UuLm536ZNbMlTSKqTWMlx1yMGXgEkgt1qth4qaM2aOk1emRpTUuGheh23yxM1gtml tdhQzkEQ==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1f5w05-0005lI-0I; Tue, 10 Apr 2018 16:20:05 +0000 Subject: Re: [PATCH v2 6/6] iio:dac:ad5686: Add AD5671R/75R/94/94R/95R/96/96R support To: Stefan Popa , jic23@kernel.org, Michael.Hennerich@analog.com, lars@metafoo.de Cc: knaack.h@gmx.de, pmeerw@pmeerw.net, davem@davemloft.net, mchehab@kernel.org, gregkh@linuxfoundation.org, linus.walleij@linaro.org, akpm@linux-foundation.org, Ismail.Kose@maximintegrated.com, lukas@wunner.de, fabrice.gasnier@st.com, mike.looijmans@topic.nl, kstewart@linuxfoundation.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org References: <1522418209-11927-1-git-send-email-stefan.popa@analog.com> <1523375929-29830-1-git-send-email-stefan.popa@analog.com> From: Randy Dunlap Message-ID: <8285eee1-3fda-867f-9b30-ce693057f57c@infradead.org> Date: Tue, 10 Apr 2018 09:19:58 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <1523375929-29830-1-git-send-email-stefan.popa@analog.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/10/18 08:58, Stefan Popa wrote: > The AD5694/AD5694R/AD5695R/AD5696/AD5696R are a family of 4 channel DACs > with 12-bit, 14-bit and 16-bit precision respectively. The devices have > either no built-in reference, or built-in 2.5V reference. > > The AD5671R/AD5675R are similar, except that they have 8 instead of 4 > channels. > > These devices are similar to AD5672R/AD5676/AD5676R and > AD5684/AD5684R/AD5684/AD5685R/AD5686/AD5686R, except that they use i2c > instead of spi. > > Datasheets: > http://www.analog.com/media/en/technical-documentation/data-sheets/AD5671R_5675R.pdf > http://www.analog.com/media/en/technical-documentation/data-sheets/AD5696R_5695R_5694R.pdf > > Signed-off-by: Stefan Popa > --- > Changes in v2: > - Refactored the patch > > MAINTAINERS | 1 + > drivers/iio/dac/Kconfig | 10 +++++ > drivers/iio/dac/Makefile | 1 + > drivers/iio/dac/ad5686.c | 28 +++++++++++++ > drivers/iio/dac/ad5686.h | 7 ++++ > drivers/iio/dac/ad5696-i2c.c | 98 ++++++++++++++++++++++++++++++++++++++++++++ > 6 files changed, 145 insertions(+) > create mode 100644 drivers/iio/dac/ad5696-i2c.c > > diff --git a/drivers/iio/dac/Kconfig b/drivers/iio/dac/Kconfig > index a00fc45..dab0b8a 100644 > --- a/drivers/iio/dac/Kconfig > +++ b/drivers/iio/dac/Kconfig > @@ -145,6 +145,16 @@ config AD5686_SPI > To compile this driver as a module, choose M here: the > module will be called ad5686. > > +config AD5696_I2C > + tristate "Analog Devices AD5696 and similar multi-channel DACs (I2C)" > + depends on I2C > + select AD5686 > + help > + Say yes here to build support for Analog Devices AD5671R, AD5675R, > + AD5694, AD5694R, AD5695R, AD5696, AD5696R Voltage Output Digital to > + Analog Converter. > + To compile this driver as a module, choose M here: the module will be > + called ad5696. The help text (following the "help" line) should be indented 2 additional spaces, according to Documentation/process/coding-style.rst. (for patches 5 & 6) > config AD5755 > tristate "Analog Devices AD5755/AD5755-1/AD5757/AD5735/AD5737 DAC driver" -- ~Randy