From patchwork Fri Jul 1 04:29:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 12902697 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DA252C43334 for ; Fri, 1 Jul 2022 04:29:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233740AbiGAE35 (ORCPT ); Fri, 1 Jul 2022 00:29:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233830AbiGAE3w (ORCPT ); Fri, 1 Jul 2022 00:29:52 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0C2C58FFC; Thu, 30 Jun 2022 21:29:49 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2614TOGa015919; Thu, 30 Jun 2022 23:29:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1656649764; bh=JYBVx3JdKuz1QT+7Di8b8mVJ2UBqNYpKk5ZP6ZOIYsg=; h=From:To:CC:Subject:Date; b=DXeEQ5mZEfQ0z1qNYPVr/NBDomH6WfGWbTwfaK4iP/UIQ51hhzBdThTdqnQG6L/4c 8xOetdNW67Z/lXnsOM2ctqIS6g6Z1Ln4JOVVU6h0AnRl8Y+kJzAU5FLJ58OqlryB5c iN59u4vddiUhBMt3DFkr+6ZgpuGcoh2Y0vycev/g= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2614TOOB104506 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 30 Jun 2022 23:29:24 -0500 Received: from DFLE105.ent.ti.com (10.64.6.26) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Thu, 30 Jun 2022 23:29:24 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Thu, 30 Jun 2022 23:29:24 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2614TOhm015244; Thu, 30 Jun 2022 23:29:24 -0500 From: Nishanth Menon To: Angelo Compagnucci , =?utf-8?q?Nuno_S?= =?utf-8?q?=C3=A1?= , Christophe JAILLET , Alexandru Ardelean , Krzysztof Kozlowski , Rob Herring , Lars-Peter Clausen , Jonathan Cameron CC: Nishanth Menon , Florian Eckert , , , Subject: [PATCH 0/2] iio: adc: ti-adc128s052: Add support for adc102s021 and family Date: Thu, 30 Jun 2022 23:29:17 -0500 Message-ID: <20220701042919.18180-1-nm@ti.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Hi, This is probably a continuation of [1] and has a dependency on [2]. Inspiration for this series is drivers/hwmon/adcxx.c though constrained to the family that I had access to test with. As stated in drivers/hwmon/adcxx.c, the family of devices are easier to support since they all (no matter the resolution) seem to respond in 12 bits with the LSBs set to 0 for the reduced resolution devices. Note: This series does'nt attempt to cleanup the sparse and extended build warnings existing in the driver. Series based on [2] and next-20220630 Nishanth Menon (2): dt-bindings: iio: adc: ti,adc128s052: Add adc08c and adc10c family iio: adc: ti-adc128s052: Add lower resolution devices support .../bindings/iio/adc/ti,adc128s052.yaml | 6 +++++ drivers/iio/adc/ti-adc128s052.c | 26 +++++++++++++++++++ 2 files changed, 32 insertions(+) [1] https://patchwork.kernel.org/project/linux-hwmon/patch/20181115135013.30723-2-fe@dev.tdt.de/ [2] https://lore.kernel.org/linux-iio/20220630230107.13438-1-nm@ti.com/