From patchwork Fri Oct 4 14:07:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Miclaus, Antoniu" X-Patchwork-Id: 13822454 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 257D52101B0; Fri, 4 Oct 2024 14:12:46 +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=1728051168; cv=none; b=pAe25xmfM2FQ1w1faHhrpuSnAWXMecdRmsF9BZ8jQeBm82Hpdpv3lhoR+AeT5V6poO+XfXu+xT40vrQqEAvQVo125ymKGAddeWS/4JWcuJUXVnMjXllIGGTi5gr+E5WPyFnBGBU9K+6zTwBA+DeIvjcITsZFuHu5rQRPHHIMEbQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728051168; c=relaxed/simple; bh=5lW8oMEFmW7p6x8FGFF04WMN74g9Dt3tlSQpUik1Vfg=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=jTb6gROs26ep7RVUcXEzaKiAil7PBjxiBc1+ra3ashXAob/DP4aq82h6Wk5EFsog1QPm60kai8cFDzlec9/bl4tFfdZCcOIoG7BOmGJJ+Hrb3CGsyVSKPsbFrMDrWHe95bsAiUF1El6BBzmSAscC8izgGjZF6TsHP3JfcHyE4Kw= 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=DkKbqE39; 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="DkKbqE39" Received: from pps.filterd (m0167088.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 494CXItR001474; Fri, 4 Oct 2024 10:12:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=DKIM; bh=bkUpO 7u7CuSY6YV6dzInnLhdyATuUaRS3aliQkkJWlg=; b=DkKbqE39l10MnuruFpSHz BI0TDGeBvaCwMRwzceEeqQjsE+YiRJr8Wxx2TQLt5r0y7mUshdA9L/y8aKAWE5EP WozruF6WQExKlqyu0Xtbc13sNxGdk0VO2QTTXFB7FlFI4Cy30JxwKLlKyhZMSlXs IBVlCZO94WvJzIK3lrUbM+ykkCnGdN9QWQF3dJE0D/3nVsPYbr4UF3Fk1JxhCkpN KoeyglpTo0+ST88C1VF/+MevdPddwWPE1PNn1TlQxImjAx5HIk6BDPcqhOoMQoEG B491LOC6p9AGYBGo9637lSegS3DneK3o0xF//T3nbcMBG+RhErf86ZmQbs2/30FX g== Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 4220434147-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 04 Oct 2024 10:12:17 -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 494ECGBu002697 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 4 Oct 2024 10:12:16 -0400 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) 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, 4 Oct 2024 10:12: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, 4 Oct 2024 10:12:15 -0400 Received: from amiclaus-VirtualBox.ad.analog.com (AMICLAUS-L02.ad.analog.com [10.48.65.173]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 494EAps5001773; Fri, 4 Oct 2024 10:12:05 -0400 From: Antoniu Miclaus To: Jonathan Cameron , Lars-Peter Clausen , Michael Hennerich , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Nuno Sa , Olivier Moysan , =?utf-8?q?Uwe_Kleine-K=C3=B6ni?= =?utf-8?q?g?= , Andy Shevchenko , David Lechner , Marcelo Schmitt , =?utf-8?q?Jo=C3=A3o_Paulo_Gon?= =?utf-8?q?=C3=A7alves?= , Ivan Mikhaylov , Dumitru Ceclan , Antoniu Miclaus , Alisa-Dariana Roman , Marius Cristea , AngeloGioacchino Del Regno , Mike Looijmans , Sergiu Cuciurean , Dragos Bogdan , , , , Subject: [PATCH v2 5/7] dt-bindings: iio: adc: add ad485x Date: Fri, 4 Oct 2024 17:07:54 +0300 Message-ID: <20241004140922.233939-5-antoniu.miclaus@analog.com> X-Mailer: git-send-email 2.46.2 In-Reply-To: <20241004140922.233939-1-antoniu.miclaus@analog.com> References: <20241004140922.233939-1-antoniu.miclaus@analog.com> Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: b7O_c4W7JqEN338smsj8fMtmW1WcZOM5 X-Proofpoint-GUID: b7O_c4W7JqEN338smsj8fMtmW1WcZOM5 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 lowpriorityscore=0 priorityscore=1501 malwarescore=0 bulkscore=0 impostorscore=0 mlxscore=0 phishscore=0 adultscore=0 clxscore=1015 mlxlogscore=999 suspectscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2409260000 definitions=main-2410040099 Add devicetree bindings for ad485x family. Signed-off-by: Antoniu Miclaus Reviewed-by: Conor Dooley --- changes in v2: - link all public parts in the description - add $ref: /schemas/spi/spi-peripheral-props.yaml# - add vee-supply - add vddl-supply - add description for pwms - add pd-gpios - update spi-max-frequency value - make vddh-supply optional, not required. - update example based on new properties added. - fix typos in commit message/title. - update year to 2024 - drop "DAS" and "device driver" from bindings description. .../bindings/iio/adc/adi,ad485x.yaml | 96 +++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ad485x.yaml +... diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad485x.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad485x.yaml new file mode 100644 index 000000000000..899a65504f12 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad485x.yaml @@ -0,0 +1,96 @@ +# 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,ad485x.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 family + + https://www.analog.com/media/en/technical-documentation/data-sheets/ad4858.pdf + https://www.analog.com/media/en/technical-documentation/data-sheets/ad4857.pdf + https://www.analog.com/media/en/technical-documentation/data-sheets/ad4856.pdf + https://www.analog.com/media/en/technical-documentation/data-sheets/ad4855.pdf + +$ref: /schemas/spi/spi-peripheral-props.yaml# + +properties: + compatible: + enum: + - adi,ad4858 + - adi,ad4857 + - adi,ad4856 + - adi,ad4855 + - adi,ad4854 + - adi,ad4853 + - adi,ad4852 + - adi,ad4851 + - adi,ad4858i + + reg: + maxItems: 1 + + vcc-supply: true + + vee-supply: true + + vdd-supply: true + + vddh-supply: true + + vddl-supply: true + + vio-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 + +required: + - compatible + - reg + - vcc-supply + - vee-supply + - vdd-supply + - vio-supply + - pwms + +unevaluatedProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + adc@0{ + compatible = "adi,ad4858"; + reg = <0>; + spi-max-frequency = <10000000>; + vcc-supply = <&vcc>; + vdd-supply = <&vdd>; + vee-supply = <&vee>; + vddh-supply = <&vddh>; + vddl-supply = <&vddh>; + vio-supply = <&vio>; + pwms = <&pwm_gen 0 0>; + io-backends = <&iio_backend>; + }; + };