Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp990748ybz; Thu, 16 Apr 2020 00:16:06 -0700 (PDT) X-Google-Smtp-Source: APiQypKYQHCOtQFOlTFwyCnyE8rRSn0915LyGsmXD/L/Ab3jjuA2iJgHC5ccrXpypV/rXO39Q0TP X-Received: by 2002:a17:906:960d:: with SMTP id s13mr8504659ejx.263.1587021366094; Thu, 16 Apr 2020 00:16:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587021366; cv=none; d=google.com; s=arc-20160816; b=ZHL0NrqciawWM09GnFq1F8y03L6Lf6yOB3b8UBHgodLHwMVlrGQ82tcZ0Htn6Pk/dd cjDa8j3+zvc3IS/JPbyxXhTUHgP9IRqU74pxVpUU49eEuDMqUGXdyogf7ZeU2hGEUNxG IkzPOTTe/TlJBe3RvNyVGE3j42/6CvdGhUBSmCki0BEGkmtYAM1gKakyZ6H2AShH1vFf HehGQrRBdIEvJT1ifm3zrwS69rDf6xdEnqhJD91p89dlHNdicVm+avdRbTcyt2FPgC/Q kqkTfQyKqnSYeWbhE/8aQTzz+aTmo07lO4VSXHAgejhEKA1gXYbsCycSlJ8sMn1OlZ56 ji/w== 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; bh=F8RDUCPR1pCc9/YnPU3g8bw28Aen4T56dCtttwgSrgo=; b=gyWkEzfJk21cB1i9y+ilq5lEkE6Bx8Ej3QrQn3a1YEmDsA61zkPuFPERlp+yQmDuqY +knyLghL663PIZACrRqoSp/j5syeC1jr7TiecuUqV/HgpZS8hTwhGRdeisef6HBA/Oam AuB42yNiZ3+uG6200uMLyqJm6uxUlE9Wfoxgwj3H4ZsT0N5lqXBsjnpe0RuBz0AFUV2r 5SiU1Zgw2EDjug/hRDqb3jWhtf1JWRFOZQhTrE5r88j2+gqyPJvoKJ2CwvdUk5hMXvyM A/hkCWtazzgNeDQ7uQJy/WUk4eXFrmxzG0oVg/3EyrCj2xc85uMSshbwdXbGBeHJokUJ j58Q== 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 s7si12062126edh.266.2020.04.16.00.15.41; Thu, 16 Apr 2020 00:16:06 -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 S2438244AbgDPHOc (ORCPT + 99 others); Thu, 16 Apr 2020 03:14:32 -0400 Received: from server-x.ipv4.hkg02.ds.network ([27.111.83.178]:47794 "EHLO mail.gtsys.com.hk" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S2437959AbgDPHOZ (ORCPT ); Thu, 16 Apr 2020 03:14:25 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.gtsys.com.hk (Postfix) with ESMTP id 9C978200E7EC; Thu, 16 Apr 2020 15:14:14 +0800 (HKT) X-Virus-Scanned: Debian amavisd-new at gtsys.com.hk Received: from mail.gtsys.com.hk ([127.0.0.1]) by localhost (mail.gtsys.com.hk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cUck7dk6dGh3; Thu, 16 Apr 2020 15:14:14 +0800 (HKT) Received: from s01.gtsys.com.hk (unknown [10.128.4.2]) by mail.gtsys.com.hk (Postfix) with ESMTP id 6FDE7200E7CA; Thu, 16 Apr 2020 15:14:14 +0800 (HKT) Received: from [10.128.2.32] (unknown [124.217.188.146]) by s01.gtsys.com.hk (Postfix) with ESMTPSA id 39206C019EC; Thu, 16 Apr 2020 15:14:13 +0800 (HKT) Subject: Re: [PATCH v4 2/3] iio: DAC extension for ltc2634-12/10/8 To: =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= 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 References: <20200416012016.21422-1-chris.ruehl@gtsys.com.hk> <20200416012016.21422-3-chris.ruehl@gtsys.com.hk> <20200416065655.cxy67hlj267dpjrw@pengutronix.de> From: Chris Ruehl Message-ID: Date: Thu, 16 Apr 2020 15:14:10 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200416065655.cxy67hlj267dpjrw@pengutronix.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 16/4/2020 2:56 pm, Uwe Kleine-König wrote: > Hello, > > dropped stefan.popa@analog.com from recipents as the address bounces for > me. the maintainer script added this email automatically , I will remove it in the future mails. Thanks. > > 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 > -- GTSYS Limited RFID Technology 9/F, Unit E, R07, Kwai Shing Industrial Building Phase 2, 42-46 Tai Lin Pai Road, Kwai Chung, N.T., Hong Kong Tel (852) 9079 9521 Disclaimer: https://www.gtsys.com.hk/email/classified.html