From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_2 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 54ACBC433DB for ; Sat, 20 Mar 2021 18:27:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 13B0E61925 for ; Sat, 20 Mar 2021 18:27:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229817AbhCTS0k convert rfc822-to-8bit (ORCPT ); Sat, 20 Mar 2021 14:26:40 -0400 Received: from saturn.retrosnub.co.uk ([46.235.226.198]:56094 "EHLO saturn.retrosnub.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229791AbhCTS0e (ORCPT ); Sat, 20 Mar 2021 14:26:34 -0400 Received: from jic23-huawei (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) by saturn.retrosnub.co.uk (Postfix; Retrosnub mail submission) with ESMTPSA id 9F7D59E0071; Sat, 20 Mar 2021 18:26:28 +0000 (GMT) Date: Sat, 20 Mar 2021 18:26:24 +0000 From: Jonathan Cameron To: Drew Fustini Cc: Sean Nyekjaer , Gregory Clement , Daniel Baluta , David Lechner , linux-iio@vger.kernel.org Subject: Re: iio: adc: anyone working on TI ADS7066? Message-ID: <20210320182609.5e4e7f3c@jic23-huawei> In-Reply-To: <20210320035234.GA95301@x1> References: <20210320035234.GA95301@x1> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org On Fri, 19 Mar 2021 20:52:34 -0700 Drew Fustini wrote: > I have a board with a TI ADS7066 8-channel ADC [1] that I want to get > working in Linux. I see there is already driver support in iio for > ADS1015, ADS79xx, ADS8344, ADS868x and ADS124S0x. > > Is anyone already working with the ADS7066 or a similar part in that > series? > > If not, I'll take one of the existing TI drivers as a template for the > ADS7066 driver. > > Thank you, > Drew Hi Drew, I've not seen anything for this part. >From a 10 second glance at the data sheet I see it's capable of ADC / GPIO on each pin. If you plan to support that functionality at somepoint make sure to define dt bindings and similar to specify which channels are enabled and dynamically create the iio_chan_spec array to match. It can be a bit ugly to retrofit later. Oh. It does daisy chaining as well. That is always fun to support though I guess you may well not have it wired up to do that. Oversampling as well - though that looks nice and simple for once. Jonathan > > [1] https://www.ti.com/product/ADS7066 > > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=3.0 tests=BAYES_00,DATE_IN_PAST_96_XX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_2 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D8005C433C1 for ; Mon, 29 Mar 2021 15:43:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 93CE761929 for ; Mon, 29 Mar 2021 15:43:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230298AbhC2PnR convert rfc822-to-8bit (ORCPT ); Mon, 29 Mar 2021 11:43:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231237AbhC2Pmy (ORCPT ); Mon, 29 Mar 2021 11:42:54 -0400 Received: from saturn.retrosnub.co.uk (saturn.retrosnub.co.uk [IPv6:2a00:1098:86::1:1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F557C061574 for ; Mon, 29 Mar 2021 08:42:54 -0700 (PDT) Received: from jic23-huawei (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) by saturn.retrosnub.co.uk (Postfix; Retrosnub mail submission) with ESMTPSA id 903089E0183; Mon, 29 Mar 2021 16:42:50 +0100 (BST) Date: Sat, 20 Mar 2021 18:26:09 +0000 From: Jonathan Cameron To: Drew Fustini Cc: Sean Nyekjaer , Gregory Clement , Daniel Baluta , David Lechner , linux-iio@vger.kernel.org, Dan Murphy Subject: Re: iio: adc: anyone working on TI ADS7066? Message-ID: <20210320182609.5e4e7f3c@jic23-huawei> In-Reply-To: <20210320035234.GA95301@x1> References: <20210320035234.GA95301@x1> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Message-ID: <20210320182609.UDho2FXy64c2jirpY31aCAiR7VAOQno1jLbcbjFOGP8@z> On Fri, 19 Mar 2021 20:52:34 -0700 Drew Fustini wrote: > I have a board with a TI ADS7066 8-channel ADC [1] that I want to get > working in Linux. I see there is already driver support in iio for > ADS1015, ADS79xx, ADS8344, ADS868x and ADS124S0x. > > Is anyone already working with the ADS7066 or a similar part in that > series? > > If not, I'll take one of the existing TI drivers as a template for the > ADS7066 driver. > > Thank you, > Drew Hi Drew, I've not seen anything for this part. >From a 10 second glance at the data sheet I see it's capable of ADC / GPIO on each pin. If you plan to support that functionality at somepoint make sure to define dt bindings and similar to specify which channels are enabled and dynamically create the iio_chan_spec array to match. It can be a bit ugly to retrofit later. Oh. It does daisy chaining as well. That is always fun to support though I guess you may well not have it wired up to do that. Oversampling as well - though that looks nice and simple for once. Jonathan > > [1] https://www.ti.com/product/ADS7066 > >