Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp691947lqj; Sun, 2 Jun 2024 18:31:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVqYa3/d0Qd7MUJ96+J/elP2ATdO7DX8ITqVAwzch57DZFlg2NqcInv0+q1T06fY/2Zykc59OztWCoYuyQgrMFSEpfr69DRXwaOvPFLcg== X-Google-Smtp-Source: AGHT+IHveC9eeBo2GSUJwDr+bjsOxC9za/eqkt/ySVwAm5wuD8ADjcnyZBvdL7iLyHRgGNwcKPjN X-Received: by 2002:a05:6a00:180d:b0:702:2d79:f4ef with SMTP id d2e1a72fcca58-702478046fcmr9478083b3a.15.1717378268000; Sun, 02 Jun 2024 18:31:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717378267; cv=pass; d=google.com; s=arc-20160816; b=JIRShLeX3sdZrRFldDjRd1idJtwDjI/iS1WbpHNJ9Ci89UvAKqr7hFNQN5YXpmjftx iQj0mVIYRu4mLhtKqNIhwF4Ugcn0EhNCcGlDmFFx6GncpbtDq360xxvvN9YzCW0AsNtw z0+52odYC/zIfcB9TRmwdNWVLsKxrnESwghy6wsr7xcGTYLJ8zAwf5PSfAR8WTD1TuvI nU0RJAucDQ2AxhjPm+2I19VRx8l/HH0DoLX2cnmeeNGkcXQiDmAnfSd+Dj0YfK3NxnNI JFlFcmap9204TGLtqceb4N0MmlFQ8ehkF7+PoFYk/m/X+gkZQoNU81zHGew/wd00J9gR nDPA== 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=r5I5C5jMkteAljHein3E6ZsKuZ6vG2pYowL71tH8n+c=; fh=eAec7JDWc9ENde8XdaDVdwCmdYE6bkZKfXVIiQbS2hQ=; b=HA+UCmcgby3LLki64SKfE7HifTBewauxCIz1HrxMOGIQtiKZgxfjRvjz9n4Z5fvITC pQQuuqvW5vi82b8ykNAnjtCb7TVjvODwVH7f+6sSohQHjhD8dCW18eotwQmVH8yTXD2P CVtMDtC/anEVVF0wck7Zzbl2AOJkUQp49SlQikEiOZApJjlrRpr3Wv7SUQhCASFPyalC AIl33F1U6dyt9zxBjBCTtrTXXAj7+bzfgMYgyk5t9S4maI+CYxSPP5Kdmalgl+DacMlq rXwl+29MuLukYcS63GHpkF8rno3Jk1YtOUtjKCFzXksmEipXLFe1G0m/+d4KjuQTFTWT q6sg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@analog.com header.s=DKIM header.b=OJod3pSy; 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-198523-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198523-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-6c35d59dd79si5413371a12.856.2024.06.02.18.31.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jun 2024 18:31:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198523-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=OJod3pSy; 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-198523-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198523-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 756FF282019 for ; Mon, 3 Jun 2024 01:23:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 50E734C94; Mon, 3 Jun 2024 01:23:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com header.b="OJod3pSy" 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 3A8B2EAC2; Mon, 3 Jun 2024 01:23:05 +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=1717377788; cv=none; b=J/AMqGk7vTsMhDC5ASodk8FbeiKy10HlE0IagK2v+hOLrD1FylPsSoK17rYFRZmoe0iR7z1C8ETuKC2KJr3eg9Lig/fZtu0w8bmMNsP7n+1RCi3mcmc77tihNWwsv8EjGM+kzNhZh0sLVzhDABKfPdI7ZpgEiMUIe/OiL/2z6DM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717377788; c=relaxed/simple; bh=ijjqGPElYLRhuKa5c8Ojp85OLzzdBGyM0LKd+DFO/m4=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=kQJH6WqCmSglo5txPM86sm2dLJzKfe9OIH7NHyshs2/wUyunyEsbBd9yUrwU2bf6jj9iAtE2nsa8gGBfZ2+8I3bSyRTxpi/4sQdGS4A1O6L3orceN2cAcui0PiVOxhpFU0W0j6nY1TTcoXBjk0NtdoyFqZDTW379hZw9UHaG8YA= 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=OJod3pSy; 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 452Hqnh2010836; Sun, 2 Jun 2024 21:22:51 -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=r5I5C 5jMkteAljHein3E6ZsKuZ6vG2pYowL71tH8n+c=; b=OJod3pSyYHujRYcB1DE2i NfvtYFuSQmVLua9iqpN+JdInLZhiYWmqhLqFXzHaf1NAR0E0l1NKpEB+tnrKI5Kv xwKn//NQJwajw0mJb1sdcaVV+leD/hqwlWuk4hRlziT6LjFBVF0598R1XkMwpGOJ Ftjj2gi5DbInr/1OTsfQD0rBQDYgk3Zo4BL2KqU4lB1KkD6OTRdO7dh8hRMRdpOg E9FckcFmFUYi/eV4ny8IU9ZeDmmp90X8zQcym4J7BemCCZrV5weU3otG/FYRcOTt /Ri2hrVUy/Bs0VMno+QpXRYLozu4vlob/zRfIFQRhcs5NZymxl/QlvNVMe0clDJM Q== Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0b-00128a01.pphosted.com (PPS) with ESMTPS id 3yghydt1pe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 02 Jun 2024 21:22:50 -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 4531Mn54065166 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 2 Jun 2024 21:22:49 -0400 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) 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; Sun, 2 Jun 2024 21:22:48 -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; Sun, 2 Jun 2024 21:22:48 -0400 Received: from kim-VirtualBox.ad.analog.com (KPALLER2-L03.ad.analog.com [10.116.242.67]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 4531MFWR007966; Sun, 2 Jun 2024 21:22:39 -0400 From: Kim Seer Paller To: , , CC: Jonathan Cameron , David Lechner , Lars-Peter Clausen , Liam Girdwood , Mark Brown , Dimitri Fedrau , Krzysztof Kozlowski , Rob Herring , Conor Dooley , Michael Hennerich , =?UTF-8?q?Nuno=20S=C3=A1?= , Kim Seer Paller Subject: [PATCH v3 3/5] dt-bindings: iio: dac: Add adi,ltc2664.yaml Date: Mon, 3 Jun 2024 09:21:58 +0800 Message-ID: <20240603012200.16589-4-kimseer.paller@analog.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240603012200.16589-1-kimseer.paller@analog.com> References: <20240603012200.16589-1-kimseer.paller@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: 86b4mxkvuwGkWEon8rGDXEI94pg4V4JL X-Proofpoint-ORIG-GUID: 86b4mxkvuwGkWEon8rGDXEI94pg4V4JL 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-06-02_15,2024-05-30_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 mlxscore=0 spamscore=0 bulkscore=0 suspectscore=0 phishscore=0 priorityscore=1501 impostorscore=0 mlxlogscore=999 clxscore=1015 lowpriorityscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2406030010 Add documentation for ltc2664. Co-developed-by: Michael Hennerich Signed-off-by: Michael Hennerich Signed-off-by: Kim Seer Paller --- .../bindings/iio/dac/adi,ltc2664.yaml | 167 ++++++++++++++++++ MAINTAINERS | 8 + 2 files changed, 175 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/dac/adi,ltc2664.yaml diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ltc2664.yaml b/Documentation/devicetree/bindings/iio/dac/adi,ltc2664.yaml new file mode 100644 index 000000000000..73b1d7ac219a --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/adi,ltc2664.yaml @@ -0,0 +1,167 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/adi,ltc2664.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices LTC2664 DAC + +maintainers: + - Michael Hennerich + - Kim Seer Paller + +description: | + Analog Devices LTC2664 4 channel, 16 bit, +-10V DAC + https://www.analog.com/media/en/technical-documentation/data-sheets/2664fa.pdf + +properties: + compatible: + enum: + - adi,ltc2664 + + reg: + maxItems: 1 + + spi-max-frequency: + maximum: 50000000 + + vcc-supply: + description: Analog Supply Voltage Input. + + v-pos-supply: + description: Positive Supply Voltage Input. + + v-neg-supply: + description: Negative Supply Voltage Input. + + iovcc-supply: + description: Digital Input/Output Supply Voltage. + + ref-supply: + description: + Reference Input/Output. The voltage at the REF pin sets the full-scale + range of all channels. If not provided the internal reference is used and + also provided on the VREF pin. + + reset-gpios: + description: + Active-low Asynchronous Clear Input. A logic low at this level-triggered + input clears the part to the reset code and range determined by the + hardwired option chosen using the MSPAN pins. The control registers are + cleared to zero. + maxItems: 1 + + adi,manual-span-operation-config: + description: + This property must mimic the MSPAN pin configurations. By tying the MSPAN + pins (MSP2, MSP1 and MSP0) to GND and/or VCC, any output range can be + hardware-configured with different mid-scale or zero-scale reset options. + The hardware configuration is latched during power on reset for proper + operation. + 0 - MPS2=GND, MPS1=GND, MSP0=GND (+-10V, reset to 0V) + 1 - MPS2=GND, MPS1=GND, MSP0=VCC (+-5V, reset to 0V) + 2 - MPS2=GND, MPS1=VCC, MSP0=GND (+-2.5V, reset to 0V) + 3 - MPS2=GND, MPS1=VCC, MSP0=VCC (0V to 10, reset to 0V) + 4 - MPS2=VCC, MPS1=GND, MSP0=GND (0V to 10V, reset to 5V) + 5 - MPS2=VCC, MPS1=GND, MSP0=VCC (0V to 5V, reset to 0V) + 6 - MPS2=VCC, MPS1=VCC, MSP0=GND (0V to 5V, reset to 2.5V) + 7 - MPS2=VCC, MPS1=VCC, MSP0=VCC (0V to 5V, reset to 0V, enables SoftSpan) + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1, 2, 3, 4, 5, 6, 7] + default: 7 + + io-channels: + description: + ADC channel to monitor voltages and temperature at the MUXOUT pin. + maxItems: 1 + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + +patternProperties: + "^channel@[0-3]$": + type: object + additionalProperties: false + + properties: + reg: + description: The channel number representing the DAC output channel. + maximum: 3 + + adi,toggle-mode: + description: + Set the channel as a toggle enabled channel. Toggle operation enables + fast switching of a DAC output between two different DAC codes without + any SPI transaction. + type: boolean + + adi,output-range-microvolt: + description: Specify the channel output full scale range. + oneOf: + - items: + - const: 0 + - enum: [5000000, 10000000] + - items: + - const: -5000000 + - const: 5000000 + - items: + - const: -10000000 + - const: 10000000 + - items: + - const: -2500000 + - const: 2500000 + + required: + - reg + - adi,output-range-microvolt + +required: + - compatible + - reg + - spi-max-frequency + - vcc-supply + - iovcc-supply + - v-pos-supply + - v-neg-supply + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +additionalProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + dac@0 { + compatible = "adi,ltc2664"; + reg = <0>; + spi-max-frequency = <10000000>; + + vcc-supply = <&vcc>; + iovcc-supply = <&vcc>; + ref-supply = <&vref>; + v-pos-supply = <&vpos>; + v-neg-supply = <&vneg>; + + io-channels = <&adc 0>; + + #address-cells = <1>; + #size-cells = <0>; + channel@0 { + reg = <0>; + adi,toggle-mode; + adi,output-range-microvolt = <(-10000000) 10000000>; + }; + + channel@1 { + reg = <1>; + adi,output-range-microvolt = <0 10000000>; + }; + }; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index d6c90161c7bf..c7a102d7fd6a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13063,6 +13063,14 @@ S: Maintained F: Documentation/devicetree/bindings/iio/dac/lltc,ltc1660.yaml F: drivers/iio/dac/ltc1660.c +LTC2664 IIO DAC DRIVER +M: Michael Hennerich +M: Kim Seer Paller +L: linux-iio@vger.kernel.org +S: Supported +W: https://ez.analog.com/linux-software-drivers +F: Documentation/devicetree/bindings/iio/dac/adi,ltc2664.yaml + LTC2688 IIO DAC DRIVER M: Nuno Sá L: linux-iio@vger.kernel.org -- 2.34.1