Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp324677lqh; Fri, 31 May 2024 02:29:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWwaxsAdPJfYFjvovzG2RsEEnV6x2puOGVibL6rrYX9Ai88z/OMfnGPEXdXzkg5HBCMnChL72p3Kb57YlGgMKvj3IuV7pbe0NjqvH992w== X-Google-Smtp-Source: AGHT+IGDQmHNZrBoxiRfX9V6Vrz2EE0EhWpf+ntFocZJOarMyn+46pZBu7/KEyd65WChwU57whKr X-Received: by 2002:a05:6358:4305:b0:199:2ecd:ec4c with SMTP id e5c5f4694b2df-19b48d4dcf3mr174767755d.11.1717147783453; Fri, 31 May 2024 02:29:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717147783; cv=pass; d=google.com; s=arc-20160816; b=AtH/QbJRPatLS4Njhwe7P0qP0YjZWiIyIZEv/McENq00dioekh+ZnuZaKioVcYRDWl hqbfmpdvnMP0dKA6iRyaqPrY8Rhcvg8/OZCjscBZrb8pUg6HR5pNTzgfAq27etJ6IoPq VO8zO7ztq/fHVNJT4kKdPGZhLmCwRQAfrFU/JUvGGL82cL9eEcpvXswkhg26xxUPqimy t8phiWxV7w+OG6V5xJm8trvStOxZx6EdlVPXvcZwJJLs1EEH+//xj3zPcklJ/j385/IP WhEqgJtHkVl0XVarka6cC13c2xnBQ+IhvysnhwxG0TcM9onQWm+hMRJmjujoIv0bcAZ7 98dg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=t8hvnnR4gL7szMpPoyw0DjEfOAOY0g/eXoIWy/G7HoQ=; fh=98thqt6bx3kfsxeNrI2yeDxeqeewIi1g6TTM9WHukHQ=; b=QcgiPilza1qTozb03bk4zUBeYjmcLo2rGd3SiVe7jwoCEmCbffyvWOSVst9VAVKtl6 oWc2MxaRsYtL4gSwRpAqN+ky77w4YGERYAI/stcJrAynItZCym3M5JtksZWF0xBA5lJb 2ADCgQtv4Md/nvRAsTH6IsytAlSl8Egnr+BBN8ryKviyj4plnkTZuw3MgkJppHoDO/+4 kibdxAs6cmWVGK8gcUCxnEXbndfLVjLpHSv+GITiRtITX8fYUwYn/yFOCoqcbmDYM7U4 k3H26RNURHjK2cEwth03fwXOEli9MQGPmqMqqt5hpi5pMataeykaHOP/PPPVtPVZO4sQ tp8A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@analog.com header.s=DKIM header.b=uPrMofPP; arc=pass (i=1 spf=pass spfdomain=analog.com dkim=pass dkdomain=analog.com dmarc=pass fromdomain=analog.com); spf=pass (google.com: domain of linux-kernel+bounces-196582-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196582-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=analog.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c51b862667si474112a12.890.2024.05.31.02.29.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 02:29:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196582-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@analog.com header.s=DKIM header.b=uPrMofPP; arc=pass (i=1 spf=pass spfdomain=analog.com dkim=pass dkdomain=analog.com dmarc=pass fromdomain=analog.com); spf=pass (google.com: domain of linux-kernel+bounces-196582-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196582-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0EFFF286D92 for ; Fri, 31 May 2024 09:29:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9999A81ABA; Fri, 31 May 2024 09:29:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com header.b="uPrMofPP" Received: from mx0b-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 14ADE2032D; Fri, 31 May 2024 09:29:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.135.77 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717147774; cv=none; b=FY2l94n2R8qi+KTnqFEMUuBsXhSQ0/AmzjiFKLn61LOCrGC0My9MAgRCZWfjq7qPf+AH6fTwqbXBewwdzsf3o924ZY3FrSlBb1DT/HdXZq/A0cMclbmPJsfMSbJtb74m8qm8Pq71Qu4nak5ZTCWm4pgJlvJWIi9uO42764GynM8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717147774; c=relaxed/simple; bh=EN3yAsbmjnvvPDgNC90DZ+p+kvaIL34JaNYFOwcvgsQ=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=UIumBWxO3mGzMaDQDuG+5u3REmC09Lemj+gI7FGb1VJZWXnlBg141SdEU/XtDS7PN7JGWnYzhjNYRST/wawM7IkTcjRy6TEf4A+GspP+ii9EIGUT+CKl9pTu86uTVLeAWCKadyiyZPK43cPGyrhfjh3MO35iCLqFq/h+44qMblc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=analog.com; spf=pass smtp.mailfrom=analog.com; dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com header.b=uPrMofPP; arc=none smtp.client-ip=148.163.135.77 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=analog.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=analog.com Received: from pps.filterd (m0375855.ppops.net [127.0.0.1]) by mx0b-00128a01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44V8p9aQ013187; Fri, 31 May 2024 05:29:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.com; h=cc :content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=DKIM; bh=t8hvnnR4gL7szMpPoyw0DjEfOAO Y0g/eXoIWy/G7HoQ=; b=uPrMofPPSilPfE8UMTu7ixypwlZ5OzY8OMzWMfs5Q0Q mUO/wtwIJ6HPa5qKKj5uuvQmokvFpKKTpK65JZ1uAqgEqFNyxu0J/eMfCbZm1UC4 t48ArHNnw6npwW6ZL3uYGGymB8syQ1QxM3lp4dsqWsdMBvxfSAv9mNQ553M27nYf Uz5h+2lIiGpabuyIGvRp5Ej0z/ATQVH5DhNEBHPScal+OKc2ZLVgQXl4rxUafLJ5 EU43PGhoroqSvs8YDH69KC+DrTTujU9SLfFcQWjQl5JyjkT2JaEz3Rw8Xj00hiIT YXmP4ItwYKIDcOylQpNUIIUy63yy5jdxr8zVJUx770A== Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0b-00128a01.pphosted.com (PPS) with ESMTPS id 3yf60qh6rb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 31 May 2024 05:29:19 -0400 (EDT) Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 44V9THKn046249 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 31 May 2024 05:29:17 -0400 Received: from ASHBCASHYB4.ad.analog.com (10.64.17.132) by ASHBMBX8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Fri, 31 May 2024 05:29:16 -0400 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) by ASHBCASHYB4.ad.analog.com (10.64.17.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Fri, 31 May 2024 05:29:16 -0400 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server id 15.2.986.14 via Frontend Transport; Fri, 31 May 2024 05:29:16 -0400 Received: from HYB-hYN1yfF7zRm.ad.analog.com (HYB-hYN1yfF7zRm.ad.analog.com [10.48.65.147]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 44V9T4nm001182; Fri, 31 May 2024 05:29:06 -0400 From: ranechita To: CC: ranechita , Jonathan Cameron , Lars-Peter Clausen , Michael Hennerich , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , , Subject: [PATCH v2] dt-bindings: iio: adc: add a7779 doc Date: Fri, 31 May 2024 12:26:59 +0300 Message-ID: <20240531092704.21255-1-ramona.nechita@analog.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: WIHj57tDlcTo0k9EgzQtG_-quuHgbV61 X-Proofpoint-GUID: WIHj57tDlcTo0k9EgzQtG_-quuHgbV61 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-05-31_05,2024-05-30_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 lowpriorityscore=0 suspectscore=0 malwarescore=0 mlxlogscore=999 mlxscore=0 priorityscore=1501 bulkscore=0 adultscore=0 phishscore=0 clxscore=1015 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2405310068 Add dt bindings for adc ad7779. Signed-off-by: Ramona Alexandra Nechita --- .../ABI/testing/sysfs-bus-iio-adc-ad777x | 23 +++++ .../bindings/iio/adc/adi,ad7779.yaml | 87 +++++++++++++++++++ 2 files changed, 110 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-bus-iio-adc-ad777x create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ad7779.yaml diff --git a/Documentation/ABI/testing/sysfs-bus-iio-adc-ad777x b/Documentation/ABI/testing/sysfs-bus-iio-adc-ad777x new file mode 100644 index 000000000000..0a57fda598e6 --- /dev/null +++ b/Documentation/ABI/testing/sysfs-bus-iio-adc-ad777x @@ -0,0 +1,23 @@ +What: /sys/bus/iio/devices/iio:deviceX/filter_type_available +KernelVersion: 6.1 +Contact: linux-iio@vger.kernel.org +Description: + Reading returns a list with the possible filter modes. Only supported by + AD7771. + + * "sinc3" - The digital sinc3 filter implements three main notches, one at + the maximum ODR (128 kHz or 32 kHz, depending on the + power mode) and another two at the ODR frequency selected to + stop noise aliasing into the pass band. + + * "sinc5" - The sinc5 filter implements five notches, one at + the maximum ODR (128 kHz or 32 kHz, depending on the + power mode) and another four at the ODR frequency + selected to stop noise aliasing into the pass band. + +What: /sys/bus/iio/devices/iio:deviceX/filter_type +KernelVersion: 6.1 +Contact: linux-iio@vger.kernel.org +Description: + Set the filter mode of the differential channel. The current sampling_frequency + is set according to the filter range. Only supported by AD7771. diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7779.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7779.yaml new file mode 100644 index 000000000000..632e9ec0ab44 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7779.yaml @@ -0,0 +1,87 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/adi,ad7779.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices AD777X family 8-Channel, 24-Bit, Simultaneous Sampling ADCs + +maintainers: + - Ramona Nechita + +description: | + The AD777X family consist of 8-channel, simultaneous sampling analog-to- + digital converter (ADC). Eight full Σ-Δ ADCs are on-chip. The + AD7771 provides an ultralow input current to allow direct sensor + connection. Each input channel has a programmable gain stage + allowing gains of 1, 2, 4, and 8 to map lower amplitude sensor + outputs into the full-scale ADC input range, maximizing the + dynamic range of the signal chain. + + https://www.analog.com/media/en/technical-documentation/data-sheets/ad7770.pdf + https://www.analog.com/media/en/technical-documentation/data-sheets/ad7771.pdf + https://www.analog.com/media/en/technical-documentation/data-sheets/ad7779.pdf + +$ref: /schemas/spi/spi-peripheral-props.yaml# + +properties: + compatible: + enum: + - adi,ad7770 + - adi,ad7771 + - adi,ad7779 + + reg: + maxItems: 1 + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + spi-max-frequency: true + + clocks: + maxItems: 1 + + interrupts: + maxItems: 1 + + vref-supply: + description: + ADC reference voltage supply + + start-gpios: + description: + Pin that controls start synchronization pulse. + maxItems: 1 + + reset-gpios: + maxItems: 1 + +required: + - compatible + - reg + - clocks + +unevaluatedProperties: false + +examples: + - | + #include + spi { + #address-cells = <1>; + #size-cells = <0>; + + adc@0 { + compatible = "adi,ad7779"; + reg = <0>; + spi-max-frequency = <20000000>; + vref-supply = <&vref>; + start-gpios = <&gpio0 87 GPIO_ACTIVE_LOW>; + reset-gpios = <&gpio0 93 GPIO_ACTIVE_LOW>; + clocks = <&adc_clk>; + }; + }; +... -- 2.43.0