From nobody Fri Dec 27 00:10:25 2024 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 0145A1A0BE3; Fri, 29 Nov 2024 15:36:25 +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=1732894588; cv=none; b=upNsZA5flHmzgC6o+RppMbh8Zr/PASHWjhZZcG7Rkv4DiaJqw3vp+63+LqaOql57xhcHQPct21HemaQb0+VGazN77BVvLe0Lm2BjDyyCWvckZyhUINdclW5Gc05J4QKylxq/aRXkkKOyLHbfmyoW7DyASUCVzBc6RZ/ugl9K/kc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732894588; c=relaxed/simple; bh=SJnA3nCd+j5BVty/Pj/mt5qSm1O0Ru9kryFCrp/n7Hg=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=cUuq8m1AXb3WMYhBMJYJmIfQAaCurJK/A32mRxpvA1A8ZqBoyGPYS6wUys4jQcQl1VQW2QuFUmjH0EUg253e45B8R3vZ1e0qEbiFp59yF25XMfZiko+dcy8/6NHuow5tN5VdtxtXOYBnWkBCRmizJmqAloYnCo2kca5liEs7OAM= 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=D0rJdWKC; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com header.b="D0rJdWKC" 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 4ATBkQ12018141; Fri, 29 Nov 2024 10:36:22 -0500 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=RGEVd jopX4vAuO2iqiklSBpk5Fqyp7ZyqX6p0GIAQKY=; b=D0rJdWKCbZtuqEkM0wahK x50h3eJQW7zyjLPNFdRym6LPNRzWyFlA1zEhfJ+4Vu5WlvKnkuP5q0fmbAOejHJp O2wwZzouaYwmPvauIBiB3NK0L2/eOu33sWbreiX8TpZj7rp6DMa9CsINTagZpKCS 8xsjdgZog9ZMNCQj5hejPUcmRDfrtO8SR2MJ7DtKy2hCkpVK1d2TP8YHS5p/86Jo zHMUUK1BqeM36gpYqmBeZXASB+TS8HynKmd/za5KLxfjlVPXB5+uBLAWGlyTBCqC B8n3nNOlhU9wJm4KrWBoUr9S0O4APSNOAy6UP0p3wnOC8wcA+Y2MnR4980UKifRt A== Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 436715tj5b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Nov 2024 10:36:22 -0500 (EST) 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 4ATFaK67008905 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 29 Nov 2024 10:36:20 -0500 Received: from ASHBMBX9.ad.analog.com (10.64.17.10) 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, 29 Nov 2024 10:36:20 -0500 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, 29 Nov 2024 10:36:20 -0500 Received: from amiclaus-VirtualBox.ad.analog.com (AMICLAUS-L02.ad.analog.com [10.48.65.161]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 4ATFa0mA001167; Fri, 29 Nov 2024 10:36:15 -0500 From: Antoniu Miclaus To: , , , , , , , CC: Antoniu Miclaus , Conor Dooley Subject: [PATCH v7 7/8] dt-bindings: iio: adc: add ad4851 Date: Fri, 29 Nov 2024 17:35:45 +0200 Message-ID: <20241129153546.63584-8-antoniu.miclaus@analog.com> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241129153546.63584-1-antoniu.miclaus@analog.com> References: <20241129153546.63584-1-antoniu.miclaus@analog.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: TLNvQiUkKVbbumrSxrYUT5tgJEsTjXYT X-Proofpoint-GUID: TLNvQiUkKVbbumrSxrYUT5tgJEsTjXYT X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 mlxlogscore=999 suspectscore=0 mlxscore=0 bulkscore=0 impostorscore=0 malwarescore=0 lowpriorityscore=0 clxscore=1015 adultscore=0 priorityscore=1501 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2411290127 Content-Type: text/plain; charset="utf-8" Add devicetree bindings for ad485x family. Reviewed-by: Conor Dooley Signed-off-by: Antoniu Miclaus --- changes in v7: - add adc channels support .../bindings/iio/adc/adi,ad4851.yaml | 139 ++++++++++++++++++ 1 file changed, 139 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ad4851.ya= ml diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad4851.yaml b/Do= cumentation/devicetree/bindings/iio/adc/adi,ad4851.yaml new file mode 100644 index 000000000000..57e5222dee71 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad4851.yaml @@ -0,0 +1,139 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright 2024 Analog Devices Inc. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/adi,ad4851.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices AD485X family + +maintainers: + - Sergiu Cuciurean + - Dragos Bogdan + - Antoniu Miclaus + +description: | + Analog Devices AD485X fully buffered, 8-channel simultaneous sampling, + 16/20-bit, 1 MSPS data acquisition system (DAS) with differential, wide + common-mode range inputs. + + https://www.analog.com/media/en/technical-documentation/data-sheets/ad48= 55.pdf + https://www.analog.com/media/en/technical-documentation/data-sheets/ad48= 56.pdf + https://www.analog.com/media/en/technical-documentation/data-sheets/ad48= 57.pdf + https://www.analog.com/media/en/technical-documentation/data-sheets/ad48= 58.pdf + +$ref: /schemas/spi/spi-peripheral-props.yaml# + +properties: + compatible: + enum: + - adi,ad4851 + - adi,ad4852 + - adi,ad4853 + - adi,ad4854 + - adi,ad4855 + - adi,ad4856 + - adi,ad4857 + - adi,ad4858 + - adi,ad4858i + + reg: + maxItems: 1 + + vcc-supply: true + + vee-supply: true + + vdd-supply: true + + vddh-supply: true + + vddl-supply: true + + vio-supply: true + + vrefbuf-supply: true + + vrefio-supply: true + + pwms: + description: PWM connected to the CNV pin. + maxItems: 1 + + io-backends: + maxItems: 1 + + pd-gpios: + maxItems: 1 + + spi-max-frequency: + maximum: 25000000 + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + +patternProperties: + "^channel(@[0-7])?$": + $ref: adc.yaml + type: object + description: Represents the channels which are connected to the ADC. + + properties: + reg: + description: The channel number in single-ended mode. + minimum: 0 + maximum: 7 + + diff-channels: true + + required: + - reg + + additionalProperties: false + +required: + - compatible + - reg + - vcc-supply + - vee-supply + - vdd-supply + - vio-supply + - pwms + +unevaluatedProperties: false + +examples: + - | + spi { + #address-cells =3D <1>; + #size-cells =3D <0>; + + adc@0{ + #address-cells =3D <1>; + #size-cells =3D <0>; + compatible =3D "adi,ad4858"; + reg =3D <0>; + spi-max-frequency =3D <10000000>; + vcc-supply =3D <&vcc>; + vdd-supply =3D <&vdd>; + vee-supply =3D <&vee>; + vddh-supply =3D <&vddh>; + vddl-supply =3D <&vddl>; + vio-supply =3D <&vio>; + pwms =3D <&pwm_gen 0 0>; + io-backends =3D <&iio_backend>; + + channel@0 { + reg =3D <0>; + diff-channels =3D <0 8>; + }; + + channel@1 { + reg =3D <1>; + }; + }; + }; +... --=20 2.47.1