Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp524106rda; Sat, 21 Oct 2023 20:26:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGk27DF5n2ndUsvKofBlXW3zfZalli3F9XhOzIQuvDEjkVOa5eGHgY0sRAVfs7EwQQyFlG2 X-Received: by 2002:a05:6870:1707:b0:1bb:84af:bf8f with SMTP id h7-20020a056870170700b001bb84afbf8fmr7213488oae.58.1697945177322; Sat, 21 Oct 2023 20:26:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697945177; cv=none; d=google.com; s=arc-20160816; b=I6UwjXcFL6sRmZY3lm+mT/lt1qUiUg3XAjrXe0kfoewgxx5AWVnaE0Z1klWQn6ArXO o4sGQOwgL5isU9Iw46YuJ5Obf33voknypHg36gjfW4laQ5H2SKJ4FbWnawn0WmJN81ow yZhC6YFUG1qzcQvtgmt2yGVr/3/I/E6xq+DRfC4Z8LXkx1R0+gYduh/Cck201iOeDLTB w6YwHxj5Q/FkWgTJUBNHmuhFCuM0bNSjE9FKCFm7GSsUCUnx+pzU/IdV9HQFglNskE45 MvmDNbkCd9R23UL8TQ2ejPf2DmZLZdHDvpHm4qX+3t1DGdlWRO4vhwy+X0cVJq5ufV/J pXFg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=+zd+0FlCpxjN0Ur53m7FdMqpc+SVtrfNr+NITjaBoxE=; fh=Oy5cOUH/8OIwLKn/pCivhBIe7rKmp5EMl3P2pJHbPQY=; b=zj8craFSLpk0m2HfNB8sxiz+vE/+p9EbJNJPCnw9mov7uSdfSDjp0R93zLmQroapHe KEeTeWgjAb76ycynzJEX10ByHWiRVqvumpMIowyljyHMBzw2nCmKwMS+e4cyx6FEE/sb XXsfE4Gd9hUY6ji7o7fbuICppJn3BtUCSQDEZWjmQ7rYu2PsbYAGI5cbX+QYqPv1zmp3 lcWhKUGDmZQNhZrWMV/HaFfYOaA4wqHlKb0oLoydAdvNAEvIljb6wpffozV0G1qV+d1Z 43CJ8j3UPDGFFLT9he+KxroeBx61MEFn2TrXzljPI3ZU6r6U2MmUUgugtGvv26f1T8LJ O+ww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id jo23-20020a170903055700b001c9ce2b6ba0si4184980plb.278.2023.10.21.20.26.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Oct 2023 20:26:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 64DFC809B6EA; Sat, 21 Oct 2023 20:26:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231233AbjJVDMU (ORCPT + 99 others); Sat, 21 Oct 2023 23:12:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbjJVDMP (ORCPT ); Sat, 21 Oct 2023 23:12:15 -0400 Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D176E8; Sat, 21 Oct 2023 20:12:14 -0700 (PDT) Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-6b5af4662b7so1731006b3a.3; Sat, 21 Oct 2023 20:12:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697944333; x=1698549133; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+zd+0FlCpxjN0Ur53m7FdMqpc+SVtrfNr+NITjaBoxE=; b=EThJDrF2Rp271Zrr05WmLqTDhgW2aquJzYtRQaOsDDJiuTJWqtRUWYEPhSaS1OoM0S R/3A0cTrYBdt8+bMkotFK1KN8a8skUnElGFYdxXqgVtkgYUNvTmzLvC8S0lh2TMH2aem 1jWJ5QrU7FRwQk+0tVGxv1SxztgoJXtG56j5K9nb7Bq82zLs2U8N5dRxy5RXFqXRmHYu sxVfrDjyiKVKfioWoL8Y+IgzT95HKRjtKbuSgwC16EheFB+ExRm5gB6NOc1ZhxDO6I4S AbFl7mYViIghZNeRcYe3gsRJsEoNZqsk9bJU8+v4HkbicwwEtqyKGd/kw8faTVmrGXMU k8JA== X-Gm-Message-State: AOJu0YxGNJ8OLA1Cz+1YT5Qr/tsLJqxqe+RW5QuNbGKoNBkGglYjQ210 PRMLsw8vfrO6TNNAsHwN4lnr6B9u7aoPb89l X-Received: by 2002:a05:6a21:7795:b0:171:c88a:890c with SMTP id bd21-20020a056a21779500b00171c88a890cmr4485675pzc.25.1697944333424; Sat, 21 Oct 2023 20:12:13 -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.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Oct 2023 20:12:13 -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, Krzysztof Kozlowski Subject: [PATCH v2 1/2] dt-bindings: iio: adc: ti,adc128s052: Add adc08c and adc10c family Date: Sat, 21 Oct 2023 20:12:02 -0700 Message-Id: <20231022031203.632153-2-sukrut.bellary@linux.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231022031203.632153-1-sukrut.bellary@linux.com> References: <20231022031203.632153-1-sukrut.bellary@linux.com> 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 fry.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 (fry.vger.email [0.0.0.0]); Sat, 21 Oct 2023 20:26:14 -0700 (PDT) The adcxx4s communicates with a host processor via an SPI/Microwire Bus interface. The device family responds with 12-bit data, of which the LSB bits are 0 for the lower resolution devices. The unavailable bits are 0 in LSB. Shift is calculated per resolution and used in scaling and raw data read. I have been able to test adc102s051, hence adding just the missing ones in that family. Lets reuse the binding to support the family of devices with name ADCS, where * bb is the resolution in number of bits (8, 10, 12) * c is the number of channels (1, 2, 4, 8) * sss is the maximum conversion speed (021 for 200 kSPS, 051 for 500 kSPS and 101 for 1 MSPS) Complete datasheets are available at TI's website here: https://www.ti.com/lit/gpn/adcs.pdf Co-developed-by: Nishanth Menon Signed-off-by: Nishanth Menon Signed-off-by: Sukrut Bellary Acked-by: Krzysztof Kozlowski --- Changes in v2: - No changes in dt-bindings - Link to v1: https://lore.kernel.org/all/20220701042919.18180-2-nm@ti.com/ --- .../devicetree/bindings/iio/adc/ti,adc128s052.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/ti,adc128s052.yaml b/Documentation/devicetree/bindings/iio/adc/ti,adc128s052.yaml index 775eee972b12..392b4a3e867c 100644 --- a/Documentation/devicetree/bindings/iio/adc/ti,adc128s052.yaml +++ b/Documentation/devicetree/bindings/iio/adc/ti,adc128s052.yaml @@ -16,6 +16,12 @@ description: | properties: compatible: enum: + - ti,adc082s021 + - ti,adc082s051 + - ti,adc082s101 + - ti,adc102s021 + - ti,adc102s051 + - ti,adc102s101 - ti,adc122s021 - ti,adc122s051 - ti,adc122s101 -- 2.34.1