Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp521194rda; Sat, 21 Oct 2023 20:13:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFFnu21ZywawwszEK7NOWzIUhtVNyW+zHfPe//VyhvaEupKoLfAqwFSq9P0L8ocKYg8MEab X-Received: by 2002:a05:6a21:3e0d:b0:15d:b243:6131 with SMTP id bk13-20020a056a213e0d00b0015db2436131mr6114611pzc.44.1697944405170; Sat, 21 Oct 2023 20:13:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697944405; cv=none; d=google.com; s=arc-20160816; b=U1fVgNynDmOadXhnM4Y7ba7pMiTt60DU6Ol5RZxJfXv2t3STnJrRvgGLtyovKHxLLH mGhPtlPIVDhkyy8ULb7yYp2rRx9K6ft6M1Sqsi/AIP0L59ntTrmDPUzQwmQGEtUIK2Fe TvW1ibf7wfWQAGjyoYWZp7+Mbs6I/Llq91DIz+p9+CjrsgpaXsHjfpIXwEENzL358nfS oJMfnPag46Ex4rKXvVyAAGn9h4OnrGlUSzlLVxs2EhfkYuhTphOubphAgtjnw14um++w DXYRBsP1nJ3hw4fmEC+BWZKNECrErLqIXnB2S1QjyisHg7zMU/2fUzvdp/6WPOvePWDN SY6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=kTE3l55gNJfTgpToBiEzGfghsQJLPENxo1XqtPQrIRQ=; fh=cyOKkt5mJEqk9EG+vlEOi4OzUqOaCinb4pJlozIQCEE=; b=sFC423zXH8c9zVcGHP1vdgDz8fUizIl4X4R8eSZ4VuuWow0r+gnnrLMTd/GxsyYokG cYo5u3DSuB6+qK0mrUsFkIKzeiIlan6DZWsvvTABlZ0+wOkYpG/pkMge8OGZmKueWwQt 3ZiV2ihC0PZuAZLlR4NZ3zArVYB+s+ys+lv87OBzsDLJ/gRwai2dEaGJ/VtoJI9Xbs1u HvJrYMGikRLwYBLHeSgGriKtxObZvV8bmM5VW1s3s5F5B2ufH4KpHgr7sX0FvilQC+Ms i2ucUFcWB1KhymOxO9CqHU+DQfcZher381ySNaC4QwRuxTLLgl0YJEKdb1A12E0EQ1NG 20mA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linux.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id z6-20020aa79f86000000b006be15fece6csi4276063pfr.360.2023.10.21.20.13.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Oct 2023 20:13:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linux.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 1A7A48057945; Sat, 21 Oct 2023 20:12:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229588AbjJVDMN (ORCPT + 99 others); Sat, 21 Oct 2023 23:12:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbjJVDMM (ORCPT ); Sat, 21 Oct 2023 23:12:12 -0400 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E911E8; Sat, 21 Oct 2023 20:12:10 -0700 (PDT) Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-1c8a1541232so18143495ad.0; Sat, 21 Oct 2023 20:12:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697944330; x=1698549130; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=kTE3l55gNJfTgpToBiEzGfghsQJLPENxo1XqtPQrIRQ=; b=gomYCh80OINtvBX14HrVQn6ewG7HIbUVqLGmGl0VLCRwcjK2B4eNHJSJUSN0cdrr4k D8bRG0ZcJq63isDyEIoPbv+HGUN6CpYhwaNuti9GK568lbyy4DE88jQILWsOhvknVzrp 0RQoKVQ+BaEI34iE/8CwN8v+3RsnLB2X2R7IifLpqePwhAtB1aGttLqLLIlxSayxQkgI 7CGYAtDahe7QFoeeS0RL09j0sxIh83WFp+jYo50a5EL5c2mL+E6ynCXQWxR0a6RzGAL8 NDK9dPcttH3iH++dakocBfvCHYKh6JMP5nE8HazzV1LceCME1GlqqJA4DRlo7gt9Xm1l HPpw== X-Gm-Message-State: AOJu0YyLCCweiV+CY/4Z2K8Q3W5oeXuUiN1eLtvTk2GusPosPL49D2hh Nb1p4h0SpL8HkMmmoodKGUmlDqWDtGkZiKte X-Received: by 2002:a17:903:1cf:b0:1b9:e241:ad26 with SMTP id e15-20020a17090301cf00b001b9e241ad26mr7114046plh.9.1697944329675; Sat, 21 Oct 2023 20:12:09 -0700 (PDT) Received: from dev-linux.lan (cpe-70-95-21-110.san.res.rr.com. [70.95.21.110]) by smtp.gmail.com with ESMTPSA id n8-20020a170902e54800b001c9c879ee4asm3789589plf.17.2023.10.21.20.12.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Oct 2023 20:12:09 -0700 (PDT) From: Sukrut Bellary To: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Angelo Compagnucci , Nishanth Menon Cc: Sukrut Bellary , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] iio: adc: ti-adc128s052: Add support for adc102s021 and family Date: Sat, 21 Oct 2023 20:12:01 -0700 Message-Id: <20231022031203.632153-1-sukrut.bellary@linux.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sat, 21 Oct 2023 20:12:50 -0700 (PDT) The patch series adds the support for adc102s021 and family. 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. Series is based on next-20231020 Changes in v2: Patch 1: - No changes in dt-bindings Patch 2: - Arranged of_device_id and spi_device_id in numeric order. - Used enum to index into adc128_config. - Reorder adc128_config in alphabetical. - Include channel resolution information. - Shift is calculated per resolution and used in scaling and raw data read. - Link to v1: https://lore.kernel.org/all/20220701042919.18180-1-nm@ti.com/ Sukrut Bellary (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 | 131 +++++++++++++----- 2 files changed, 102 insertions(+), 35 deletions(-) -- 2.34.1