Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp454017lqh; Fri, 31 May 2024 06:37:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVZ2qjD6JNeZM5RrAxnBvMaT5bgO/Os9h0CDuTf6OYeJ5u03G4DXhMkqkzI5d6rVTil/x9OMGP4kkzAatbaRfpXl4Wb7mPlznOQTKLjoQ== X-Google-Smtp-Source: AGHT+IEv7OgwkW4iq2bYqabx3jPVTGghHEtC6dK5QthUFERTB2vprrOQoNYXt4Yb/wKGaPloqQzA X-Received: by 2002:a50:ab0a:0:b0:579:edab:eff6 with SMTP id 4fb4d7f45d1cf-57a3639f325mr1500313a12.23.1717162644844; Fri, 31 May 2024 06:37:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717162644; cv=pass; d=google.com; s=arc-20160816; b=mcXq5IL7zUnioRlmkSDy99BYI/NrMKElrNcutVkOu4QWEjyASLCiVhcnf/48fymBBy DwrVUPjYFFXCbUPgzScruNph9X5Yei9wpwHd5g3HDWOySwdPCBgb5pPrG0JSMF26i/Vf eChZ5aFLtJmH+EuudgNdMpcWbz0rrNqGTlgbN3/Qq3syIcFxx0QRjGgH7gcsgZHaFxGs 7FmBGnKUZENT1WWalhTCZTUmBnxhaKttFWaaSiu628kecECLnV+GdmVbaGtzOKGDZiqv 0eYd+0HG1irAoC2mwHg2hfkyMFouNbhk6zHB+0eX6RWKjkxDCmnnqWIPKUqhh0kcOLuP x0kQ== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=t8hvnnR4gL7szMpPoyw0DjEfOAOY0g/eXoIWy/G7HoQ=; fh=GImpcSBg1XG7xhLBRLYPmrGvdyJiOk6daSlPquV9Psc=; b=MNO5PwAiFL4woNgxDGSXM/VlICgTQJLA0knT4MkXkkj6MioPsycgsonUIVm3zAi6KM vL7+sxpbrNPWe16DUkEtHigfucm5E+hrKbv7cufPJqDCiTbEqsaIBrv8ZuI4IQTsJBY+ jZqT7iSOJQD1i7UATac4W3gedu5GCzLlqrTAt4KqZhgKfDlUJMBhEC4FLVmrO96qRFid bHWTJgkasfht88+up+HLztc3Nfztq3kJ9iOdaQl2P8/GoM0EVE0hgB6igQKyQjYtT3wW ajDw3IP91hOTw5ljJUxKuPr2j4kAt6x3qwRHz2UwPNsuMBqYTaFr9odaIzRSW3//8Lmj C9Wg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@analog.com header.s=DKIM header.b=Mkk6SPnS; 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-196894-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196894-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=analog.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a31cad8bbsi946611a12.583.2024.05.31.06.37.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 06:37:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196894-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@analog.com header.s=DKIM header.b=Mkk6SPnS; 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-196894-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196894-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 65F131F25C15 for ; Fri, 31 May 2024 13:37:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C865615B142; Fri, 31 May 2024 13:36:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com header.b="Mkk6SPnS" Received: from mx0a-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 4815A15B0EB; Fri, 31 May 2024 13:36:54 +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=1717162615; cv=none; b=knzD2l3ocORizMFONLE9MWNgx8D+KqXnwRhAouhhrAxfp8uO7AS83ocSZ6LjoGNyXl1S1A5J5mZu7HsLxbEtkODYnYUQJscfSJI+3HHS07QWecjEPP7Z32h6/kYsT0TCwx4nxdJZNk+EpzamonUMQO8LV2eTvO3XzAQNsCjbVtw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717162615; c=relaxed/simple; bh=EN3yAsbmjnvvPDgNC90DZ+p+kvaIL34JaNYFOwcvgsQ=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=OhEG+0C7u4oY78GPe8sUh3x4sdwtQSsar6cbC8GwFUkoAX4cRDDXMy+vpam5/Zp7Rv+ES4xVl4gVYAni0WMuRl0HzXquYeb7nx6E1hy8qiuq6PVxIm+FrjDGVIBY8yBp7pJuZtdt/CCqlEz36JgsZrX+kgUEA3vuaenftAJdu9Y= 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=Mkk6SPnS; 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 (m0167089.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44V7mcnW031851; Fri, 31 May 2024 09:36:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=DKIM; bh=t8hvn nR4gL7szMpPoyw0DjEfOAOY0g/eXoIWy/G7HoQ=; b=Mkk6SPnSa0pkBMLuDkn3j Xge5Vyd0BpOTIJLAcImSoGW9Ob+uJ/SykkA+Jc/VuY4kAwWLfXR5Iz2ew0GFUVZO NfqeX4vJPA7nkwP6Yua/kxzjy9QXW5mewRWzJKD8OWkfRNApBFR0WAGEdkfiH9Co dHSZa5nGWYjUZec73vr4xkfGedn+/fBKD7mMIbwo6ebI2+HLfUib7wMmWaceZLSs by0uXKSY2FqfyniiOcgkNrsLYdI1/BGHstOhoI5/ojHowRA4p5TgnsTUU6/XP2wW c4QuHNHVLanKiXhUEoOc6AqM65uHIGo78MO5i1pqXLun2zKihYlAN3bco+PtsM8T Q== Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3yeddx7fcu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 31 May 2024 09:36:41 -0400 (EDT) Received: from ASHBMBX9.ad.analog.com (ASHBMBX9.ad.analog.com [10.64.17.10]) by nwd2mta3.analog.com (8.14.7/8.14.7) with ESMTP id 44VDadmK064045 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 31 May 2024 09:36:39 -0400 Received: from ASHBCASHYB4.ad.analog.com (10.64.17.132) by ASHBMBX9.ad.analog.com (10.64.17.10) 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 09:36:38 -0400 Received: from ASHBMBX9.ad.analog.com (10.64.17.10) 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 09:36:38 -0400 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server id 15.2.986.14 via Frontend Transport; Fri, 31 May 2024 09:36:37 -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 44VDaF87020041; Fri, 31 May 2024 09:36:29 -0400 From: Ramona Alexandra Nechita To: CC: Ramona Alexandra Nechita , Jonathan Cameron , Lars-Peter Clausen , Michael Hennerich , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , , Subject: [PATCH v3 1/1] dt-bindings: iio: adc: add a7779 doc Date: Fri, 31 May 2024 16:35:52 +0300 Message-ID: <20240531133604.1380-2-ramona.nechita@analog.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240531133604.1380-1-ramona.nechita@analog.com> References: <20240531133604.1380-1-ramona.nechita@analog.com> 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-GUID: YVfwnGtMJP2R0bTZK6A60fAs0R7U31Ir X-Proofpoint-ORIG-GUID: YVfwnGtMJP2R0bTZK6A60fAs0R7U31Ir 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_08,2024-05-30_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 suspectscore=0 clxscore=1015 mlxlogscore=999 priorityscore=1501 adultscore=0 bulkscore=0 phishscore=0 spamscore=0 malwarescore=0 lowpriorityscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2405310100 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