Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp977814ybz; Wed, 15 Apr 2020 23:58:48 -0700 (PDT) X-Google-Smtp-Source: APiQypIPZ5NKxKFB2OSZXz98QGGQC1FeNKMt1Kh1eh1fBx4z/wY0FTkKNKaf/XeVKRSmcaYvKv/z X-Received: by 2002:a17:906:4cd2:: with SMTP id q18mr8504185ejt.70.1587020328712; Wed, 15 Apr 2020 23:58:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587020328; cv=none; d=google.com; s=arc-20160816; b=KRKhFuYadTqqY1oDGZ8jm0tl1Abur4PbJhn3w520fLs2VvFaZal+ZePNotUENmmhvU iBgeF0PQYMCJSubg7Q9YBgQVROvj3PrswNITuAy8kkCBT1qseKjfJtaJ1nvMZXnjhp// IhNUac+A4AIS/GRKLRgN7klktJ6VTrtQG92riSijvEuDbwDgJiAsJJxsg6NQI0CIwkFX EGoV5G07NrN7Il/gzeE7VOBwl1nKKLF14FkTpBGON5bgav+exmjz6SNhVXB7mzjyhm6f w2pDP/aMacnmxcmogwfTP8WyatRyiMg3L9KIiBqga+RDYyB0e6WAYhPfdiEO3EWnhdI4 ZUxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=JykEY0K1zzF09e2c0CRsl83wCM+XfVb1AGX/myVQ6E0=; b=gVPirWrmKMM2a2D+ejz4WdFraWPz9Z82nmpplhe9tXvygMZGk1SXXmMh/QMj5tphZJ HfBYuxeFrWx/B7HmcCGEcBG02UUf7m4Bkow1d8DXA7nDn1uYoX9M8k3K8RS5x4FRKR2u XiMfR3AQvsIBs6Jk8krs254deoYkJA/jJ7E12oIv4G20LEyvHU1g2pbPj1sP7zxhAKqb GYejJ0Z4z9ENtKaolrJZSGGGh8wRQNQC2kWuGnyxig97DdiJD6ta96XYJSTJy9WNTtT3 HMhUBzlNh3Cf9P1pnqqrcsW3hMPWQKR6erEo0eeQUWOy06BCsh1G4e+nG/2DG9pMjJfc yt4A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n16si1023452ejl.134.2020.04.15.23.58.25; Wed, 15 Apr 2020 23:58:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437734AbgDPG5V (ORCPT + 99 others); Thu, 16 Apr 2020 02:57:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2437726AbgDPG5M (ORCPT ); Thu, 16 Apr 2020 02:57:12 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4D3FC061A41 for ; Wed, 15 Apr 2020 23:57:11 -0700 (PDT) Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jOySH-00050M-F3; Thu, 16 Apr 2020 08:56:57 +0200 Received: from ukl by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1jOySF-0002To-Ra; Thu, 16 Apr 2020 08:56:55 +0200 Date: Thu, 16 Apr 2020 08:56:55 +0200 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Chris Ruehl Cc: devicetree@vger.kernel.org, Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Rob Herring , Alexandru Ardelean , Thomas Gleixner , Greg Kroah-Hartman , Alexandru Tachici , Steve Winslow , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 2/3] iio: DAC extension for ltc2634-12/10/8 Message-ID: <20200416065655.cxy67hlj267dpjrw@pengutronix.de> References: <20200416012016.21422-1-chris.ruehl@gtsys.com.hk> <20200416012016.21422-3-chris.ruehl@gtsys.com.hk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200416012016.21422-3-chris.ruehl@gtsys.com.hk> User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, dropped stefan.popa@analog.com from recipents as the address bounces for me. On Thu, Apr 16, 2020 at 09:20:10AM +0800, Chris Ruehl wrote: > This patch add support for Analog Devices (Linear Technology) > LTC2634 Quad 12-/10-/8-Bit Rail-to-Rail DAC. > The SPI functionality based on them from LTC2632 therefor > add the definitions only and update the Kconfig. > > Signed-off-by: Chris Ruehl > --- > v4: > -hide version from commit text > v3: > -Consistens decimal separator in help text > v2: > -Send the documentation fix in a extra patch > -Kconfig simplify the driver description, details to the help text > -ltc2632.txt add to this patch-set (prepare to convert to yaml) > > .../devicetree/bindings/iio/dac/ltc2632.txt | 8 ++- > drivers/iio/dac/Kconfig | 6 +- > drivers/iio/dac/ltc2632.c | 60 +++++++++++++++++++ > 3 files changed, 70 insertions(+), 4 deletions(-) > > diff --git a/Documentation/devicetree/bindings/iio/dac/ltc2632.txt b/Documentation/devicetree/bindings/iio/dac/ltc2632.txt > index 338c3220f01a..1ab9570cf219 100644 > --- a/Documentation/devicetree/bindings/iio/dac/ltc2632.txt > +++ b/Documentation/devicetree/bindings/iio/dac/ltc2632.txt > @@ -1,4 +1,4 @@ > -Linear Technology LTC2632/2636 DAC > +Linear Technology LTC2632/2634/2636 DAC > > Required properties: > - compatible: Has to contain one of the following: > @@ -8,6 +8,12 @@ Required properties: > lltc,ltc2632-h12 > lltc,ltc2632-h10 > lltc,ltc2632-h8 > + lltc,ltc2634-l12 > + lltc,ltc2634-l10 > + lltc,ltc2634-l8 > + lltc,ltc2634-h12 > + lltc,ltc2634-h10 > + lltc,ltc2634-h8 > lltc,ltc2636-l12 > lltc,ltc2636-l10 > lltc,ltc2636-l8 > diff --git a/drivers/iio/dac/Kconfig b/drivers/iio/dac/Kconfig > index 93744011b63f..aee13ced6ddf 100644 > --- a/drivers/iio/dac/Kconfig > +++ b/drivers/iio/dac/Kconfig > @@ -279,12 +279,12 @@ config LTC1660 > module will be called ltc1660. > > config LTC2632 > - tristate "Linear Technology LTC2632-12/10/8 and LTC2636-12/10/8 DAC spi driver" > + tristate "Linear Technology LTC2632-12/10/8 and similar DAC spi driver" > depends on SPI > help > Say yes here to build support for Linear Technology > - LTC2632-12, LTC2632-10, LTC2632-8, LTC2636-12, LTC2636-10 and > - LTC2636-8 converters (DAC). > + LTC2632, LTC2634 and LTC2636 DAC resolution 12/10/8 bit > + low 0-2.5V and high 0-4.096V range converters. > > To compile this driver as a module, choose M here: the > module will be called ltc2632. > diff --git a/drivers/iio/dac/ltc2632.c b/drivers/iio/dac/ltc2632.c > index 2a84ea654645..e939d7f81014 100644 > --- a/drivers/iio/dac/ltc2632.c > +++ b/drivers/iio/dac/ltc2632.c > @@ -54,6 +54,12 @@ enum ltc2632_supported_device_ids { > ID_LTC2632H12, > ID_LTC2632H10, > ID_LTC2632H8, > + ID_LTC2634L12, > + ID_LTC2634L10, > + ID_LTC2634L8, > + ID_LTC2634H12, > + ID_LTC2634H10, > + ID_LTC2634H8, > ID_LTC2636L12, > ID_LTC2636L10, > ID_LTC2636L8, > @@ -236,6 +242,36 @@ static const struct ltc2632_chip_info ltc2632_chip_info_tbl[] = { > .num_channels = 2, > .vref_mv = 4096, > }, > + [ID_LTC2634L12] = { > + .channels = ltc2632x12_channels, > + .num_channels = 4, > + .vref_mv = 2500, > + }, > + [ID_LTC2634L10] = { > + .channels = ltc2632x10_channels, > + .num_channels = 4, > + .vref_mv = 2500, > + }, > + [ID_LTC2634L8] = { > + .channels = ltc2632x8_channels, > + .num_channels = 4, > + .vref_mv = 2500, > + }, > + [ID_LTC2634H12] = { > + .channels = ltc2632x12_channels, > + .num_channels = 4, > + .vref_mv = 4096, > + }, > + [ID_LTC2634H10] = { > + .channels = ltc2632x10_channels, > + .num_channels = 4, > + .vref_mv = 4096, > + }, > + [ID_LTC2634H8] = { > + .channels = ltc2632x8_channels, > + .num_channels = 4, > + .vref_mv = 4096, > + }, > [ID_LTC2636L12] = { > .channels = ltc2632x12_channels, > .num_channels = 8, > @@ -357,6 +393,12 @@ static const struct spi_device_id ltc2632_id[] = { > { "ltc2632-h12", (kernel_ulong_t)<c2632_chip_info_tbl[ID_LTC2632H12] }, > { "ltc2632-h10", (kernel_ulong_t)<c2632_chip_info_tbl[ID_LTC2632H10] }, > { "ltc2632-h8", (kernel_ulong_t)<c2632_chip_info_tbl[ID_LTC2632H8] }, > + { "ltc2634-l12", (kernel_ulong_t)<c2632_chip_info_tbl[ID_LTC2634L12] }, > + { "ltc2634-l10", (kernel_ulong_t)<c2632_chip_info_tbl[ID_LTC2634L10] }, > + { "ltc2634-l8", (kernel_ulong_t)<c2632_chip_info_tbl[ID_LTC2634L8] }, > + { "ltc2634-h12", (kernel_ulong_t)<c2632_chip_info_tbl[ID_LTC2634H12] }, > + { "ltc2634-h10", (kernel_ulong_t)<c2632_chip_info_tbl[ID_LTC2634H10] }, > + { "ltc2634-h8", (kernel_ulong_t)<c2632_chip_info_tbl[ID_LTC2634H8] }, > { "ltc2636-l12", (kernel_ulong_t)<c2632_chip_info_tbl[ID_LTC2636L12] }, > { "ltc2636-l10", (kernel_ulong_t)<c2632_chip_info_tbl[ID_LTC2636L10] }, > { "ltc2636-l8", (kernel_ulong_t)<c2632_chip_info_tbl[ID_LTC2636L8] }, > @@ -386,6 +428,24 @@ static const struct of_device_id ltc2632_of_match[] = { > }, { > .compatible = "lltc,ltc2632-h8", > .data = <c2632_chip_info_tbl[ID_LTC2632H8] > + }, { > + .compatible = "lltc,ltc2634-l12", > + .data = <c2632_chip_info_tbl[ID_LTC2634L12] > + }, { > + .compatible = "lltc,ltc2634-l10", > + .data = <c2632_chip_info_tbl[ID_LTC2634L10] > + }, { > + .compatible = "lltc,ltc2634-l8", > + .data = <c2632_chip_info_tbl[ID_LTC2634L8] > + }, { > + .compatible = "lltc,ltc2634-h12", > + .data = <c2632_chip_info_tbl[ID_LTC2634H12] > + }, { > + .compatible = "lltc,ltc2634-h10", > + .data = <c2632_chip_info_tbl[ID_LTC2634H10] > + }, { > + .compatible = "lltc,ltc2634-h8", > + .data = <c2632_chip_info_tbl[ID_LTC2634H8] > }, { > .compatible = "lltc,ltc2636-l12", > .data = <c2632_chip_info_tbl[ID_LTC2636L12] Looks good to me: Acked-by: Uwe Kleine-K?nig Thanks Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | https://www.pengutronix.de/ |