Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp342780rdb; Thu, 5 Oct 2023 07:34:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEvl2UYgeUwXCaAb/SlOCyyEWJsLqAp3VMp7HV5MFjFoUTBM8YqB45RpE5+4ShFT80Q4JI8 X-Received: by 2002:a17:902:d2cf:b0:1b8:b285:ec96 with SMTP id n15-20020a170902d2cf00b001b8b285ec96mr6467893plc.23.1696516466821; Thu, 05 Oct 2023 07:34:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696516466; cv=none; d=google.com; s=arc-20160816; b=e8wmvte7prrK1Tq+24i+1utDmCZMZgEVEmwPgBgmAm2o2hgOKuGX+59Sk8m7F2NyII 1ZnO9wW18eNwLuf6c6vAMts/U5mqOXwDrkMO3Lo6E5SQ0b4+aklcdvVadceYL47YWLVq QPELP2Pup3m7Ylo4nVQP54oCcloDZ4Ni21l+pXScz9CFamS9VtJbdS+pHGYHr+cnzqAp tCaJ2tMQInBeKY251R5KUBAphH1rgM1AXOaXdZNtLauI+/X+K6eLEZalnmCxPODP5WNt vqmsYN1/2t3Thfjo4O4ekOp1WcIWHaeZR0Ss0wOrIiu2wU3vRTkN0RzCleWUZ/+wWcJD JWOA== 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:dkim-signature; bh=GXI1BYhZWroocq19G+lhuGPa3qcX4f4uqnmYQsIg5xc=; fh=CAri7nHZFxyrYCHRlmLpz4XzSmARaTD4KnaOirCDkEM=; b=ucFgcCZldA17Wt+cNf5GAUfTZp1Jo37ORGbKhs/841+S8NkiltrxPfiCisBNyccmWi SxzcY+iJPgRWx1sHZtv1vGa3yrvAt4ZUqBzBvCc4ndk0C2Lj8ptaBZuW4mR57xDpSAZf ZOSsvvRBL89/ubnvGU40K+6ASYLEu+//HmhGqgOLWR+qoBwdm6lgkKHHpFBdEqWFzxmw gqa0UBIzOV6Q5sCpJVLmQsLPkVtouC6QDgxJxBK1Mk1OghaMDNzl9iYdN8HNoMA4P18N +56NXDax3ZxYO3165UAin3M31zsB4WpqtUeFfNIzw9tDcjSck3ki+VZTQRTHBMdwuzXY +2Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=cnSqW9OQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id i15-20020a170902c94f00b001c72dbaf7c3si1711752pla.240.2023.10.05.07.34.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 07:34:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=cnSqW9OQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id B2F6D832DA74; Thu, 5 Oct 2023 07:34:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235487AbjJEOdG (ORCPT + 99 others); Thu, 5 Oct 2023 10:33:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235104AbjJEOb3 (ORCPT ); Thu, 5 Oct 2023 10:31:29 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 547A91FE7; Wed, 4 Oct 2023 20:59:47 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id 5b1f17b1804b1-405361bb94eso5009595e9.0; Wed, 04 Oct 2023 20:59:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696478386; x=1697083186; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=GXI1BYhZWroocq19G+lhuGPa3qcX4f4uqnmYQsIg5xc=; b=cnSqW9OQrP/MA0A2Igu9rpFUTiecXjx1R5veLPYBVDo1efRD/IJNrGsO0UVWaMWdTo Q7YmEBEEPDE8LyjCJ4xn1CqCQzIOv7AkJOmY+Thkc+ph9QqhSDvXbBJvmyl3UXncWQKA 96tEZ2+7kOhm6utcKcYpyh6dUxqCY6i8VimmAsbexFHinVzZw8L7xKKgDuFu6LqHQjIZ udBlrIN/cqSTpLiWGVDZKJ0yDrT0ik3aSsT+GNyf+6j2hyxZCL21FV4287PW61B4TmHO KEvPZ8BooE1Upm9Y17tTWSU9pse+UWjb2sa1MNxuclf5kDDLZdC5DyjSABWR7XY6nWQE EuwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696478386; x=1697083186; 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=GXI1BYhZWroocq19G+lhuGPa3qcX4f4uqnmYQsIg5xc=; b=gXzsWT+S7VKwlfRPrDCnIfOp64ePzBUVqRFlD4dVUQNbF9j/4ZTGB6poEvCue/qdnk mDiFCeOEFrT1eTrYn/9fNQVlLGKlE55Z1CMg9wwNDoaJKGppRxNoeH7CfSBygzHbnnIm jJzzlUFqBoDlOK6O/0u6qG+6i6Ry5ULoFJD2nwY0F6nzKcjmryYsiXYPT+WR8W0JY6AB eaOJthDsn/aaqjrrqPpSor+45oCoynuj9kr2enys3eUiVX0s4psPEuavxt/O9jx7eXJH d+97eEgZS0K9wktrc+rEhVHfZDcTl4qqn5QWV9hns54Qi9XrZZE+E/b4FidEMWAqJAZj S1RQ== X-Gm-Message-State: AOJu0Yx0VNYFNj05m3x39qQE3DidnRoMr9iao38Hv8eXWyl215gPtDUl mCuEzUK1zk3jLVEbnuxostQ= X-Received: by 2002:a05:600c:2107:b0:405:48ba:9c with SMTP id u7-20020a05600c210700b0040548ba009cmr4036141wml.16.1696478385427; Wed, 04 Oct 2023 20:59:45 -0700 (PDT) Received: from ws-565760.systec.local ([212.185.67.148]) by smtp.gmail.com with ESMTPSA id a4-20020a05600c224400b003fe2a40d287sm567513wmm.1.2023.10.04.20.59.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 20:59:45 -0700 (PDT) From: werneazc@gmail.com X-Google-Original-From: andre.werner@systec-electronic.com To: jic23@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, lars@metafoo.de Cc: devicetree@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Andre Werner Subject: [PATCH v2 1/2] dt-bindings: iio: adc: ti,ads7038: Add description for ADS7038 Date: Thu, 5 Oct 2023 05:54:54 +0200 Message-ID: <20231005035933.31016-1-andre.werner@systec-electronic.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Thu, 05 Oct 2023 07:34:06 -0700 (PDT) From: Andre Werner Add basic description for ADS7x38 ADC devices. The driver does only support a very basic set of functionalities provided by the chip. Also, the example in the description covers only a setup for ADS7038 devices while the driver structure will support both ADS7038 (SPI) and ADS7138 (I2C) devices. Signed-off-by: Andre Werner --- - v2: Add commit message and correct vref-description copy-paste-error. --- .../bindings/iio/adc/ti,ads7038.yaml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/ti,ads7038.yaml diff --git a/Documentation/devicetree/bindings/iio/adc/ti,ads7038.yaml b/Documentation/devicetree/bindings/iio/adc/ti,ads7038.yaml new file mode 100644 index 000000000000..d40869b9a604 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/ti,ads7038.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/ti,ads7038.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments ADS7038 and similar ADCs + +maintainers: + - Andre Werner + +description: | + Family of 7 channel, 12 bit ADCs with SPI/I2C interface. + + Datasheet: https://www.ti.com/lit/gpn/ads7038 + +properties: + compatible: + enum: + - ti,ads7038 + - ti,ads7138 + + reg: + maxItems: 1 + + spi-max-frequency: + maximum: 60000000 + + vref-supply: + description: Supplies the reference voltage AVDD + +required: + - compatible + - reg + - vref-supply + +additionalProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + adc@0 { + compatible = "ti,ads7038"; + reg = <0>; + vref-supply = <&refin_supply>; + spi-max-frequency = <10000000>; + }; + }; -- 2.42.0