From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dl1-f68.google.com (mail-dl1-f68.google.com [74.125.82.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2394C3AEF43 for ; Fri, 8 May 2026 23:12:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.68 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778281929; cv=none; b=nhOFJ7fgb6zrFm4+kVlTxc0Sv3RatCVjP6jVVCOhL+oGhBSemOWvhG35wYCNPGxlHlJf+2NCWX5eY4vD8jmtm4lXJg171zdGNAektgzZkUKMZO179B81ukqYrYM9YRgNfj6vgCh962f61klAhGEXsRc/5KZIFvchzJMM8zky2l0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778281929; c=relaxed/simple; bh=ma/NAkZ+rfwLaK2OHenM/L32fM1WQAJpctov+P127o8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=aA6bhSf5lANgc/oJnyQJMA0fcifBKWjpmyh4ohKw2B84KOOoJojDwfejC1tupTKqnknTs/okWp7W1mKmPrl5Wmh0wftlGjJ52cU++dF/wwu57FZmxdvKXTxZ5Lc9oL0rFQl0HtYl3MSelR5vJ7mD6krb5hAxB1PdEn3yKlJcE0o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=T3cTgpSR; arc=none smtp.client-ip=74.125.82.68 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="T3cTgpSR" Received: by mail-dl1-f68.google.com with SMTP id a92af1059eb24-12c19d23b19so4573965c88.0 for ; Fri, 08 May 2026 16:12:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778281927; x=1778886727; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=uX9GSyaDMUxgGyMHB/8S0Aw9E0nie662logf6WxGw94=; b=T3cTgpSR8awb7Jt8bxz/un7+JjnAK4TMxBT5uSt/ONuR/sWvunp6T+XOlSiM0dMGFC zFS1EjJ89nu+EVPnmYz4HCgZlHc5EjUtFcP/7ETwXDYBGXsL2Gs2AyXivBffDls2wvYj 9atY/4IeB+Ijxq3OA4TMYO0bP5Ayu+e5fdXho/23dr0fqk2m/jqh9teIDQtKe/oPmgt6 bgaAB5MVgxAet9ZMrgv21Xl3iWgImmRyWgE6U5EkuZFqTB0S56/TTmBk+MxKEvdM4PE1 eRd8A+qatyPiyAryTNWCSFmR2jOy4rmwFDE788fQyd2rOwnSehlM1gmYQ4FWv8kmGg29 XkxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778281927; x=1778886727; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=uX9GSyaDMUxgGyMHB/8S0Aw9E0nie662logf6WxGw94=; b=TybOfbcVzNLqI57ZZo2Hu6ii0qfjqypeTpy08KtFl9IbGei0ejL+n39z1Tt5+evifs h5WyjBvD7MPhGEKu4iv/1sewPQFdkwHrdMSCaCoxJmKgycDtNpa23cPsPxIny0L/l+yU lCFbtGS0MsgdS8eugFpOHgvoOHmzORhLKS134OeFJJuWnyA5SW8cLT1GkO6ZgZFOXkO/ oWWnHQl0BE5q11kKZuB2s1obkFZhfh7LoYEqlbz945WeDmRCvWvpwCw4YECyVOeixxtr Z83aTid3ORITyR8iVkVXEXbETznTQl+5AJACnuFAbXMM0fAAE2n4Ps8haTxL/tEgP0Xh QnoQ== X-Forwarded-Encrypted: i=1; AFNElJ8UW2W4qsd7k8tq4mpZdcB2rcr4f3ILwo0ceZxzN9048COsDlrAOpCa9THsPhz7Iuhk6ZlezKY0VaaU@vger.kernel.org X-Gm-Message-State: AOJu0Yx9PcmhQ8Jqw0hDa7u2c8VGNXHLj7Y2jX/jvEBheLBKxoli3CHF Gkuv9v5ty/KEdtJTigDfaKMCqiKWs4rA7WOgot/qxC4pthRK+LCc9jlc X-Gm-Gg: AeBDiev41fJsefqylZl4abLMLgQFqiVqgEKyYjej7bzo4VDSkwVy9ykIVK+yVP4gVWn +Uq3zADp1gpAJ5ghzy2gL4HKDb/CaSvnppxk2d7sAbuM4mYSqGUyv8872Jo0wWJF+yVvFfCnR4K d1HrDT5JxJ/t/ShiQAkKQqEafdprztdfhovOKcWgIC2sg5JYYfWVvf3R6HSE75HxMra3ixWJlhG +qDzO0gaYsQN5JEMH7HPIE95bi0yN8F7YhZwhNc+/PfPa1DQLjbb0RemFRguJNlxf7Es7V6fKaY 4oibh12VOj8Uh9KURWx5MHr9+FzjZOkO7p0zbY9wBoO//jF7270qIBhTc91e3Wx5cVA5pAbF9/s aXCob+oSQbA8T2mlJo+u5YwUolRZA5HGOkA/P8ui5iS4Nm63I3nhyYJ3NEQXrEeBv79bkkMOnaL Hn4FNWU4KzWfAN7o3bnWhlkrCyT2WAJfJ7GG/MZM356g5pW9iaJyx/xgQ= X-Received: by 2002:a05:7022:2399:b0:128:d577:dc21 with SMTP id a92af1059eb24-1319cc16e0dmr6472194c88.13.1778281926987; Fri, 08 May 2026 16:12:06 -0700 (PDT) Received: from localhost.localdomain ([76.32.119.210]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1329fc4bf3fsm972554c88.5.2026.05.08.16.12.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 May 2026 16:12:06 -0700 (PDT) From: Hungyu Lin To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: jic23@kernel.org, lars@metafoo.de, Michael.Hennerich@analog.com, dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Hungyu Lin Subject: [PATCH v2 1/1] dt-bindings: iio: adc: add AD7816/AD7817/AD7818 binding Date: Fri, 8 May 2026 23:11:47 +0000 Message-Id: <20260508231147.77044-2-dennylin0707@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260508231147.77044-1-dennylin0707@gmail.com> References: <20260508231147.77044-1-dennylin0707@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add Device Tree binding documentation for the Analog Devices AD7816, AD7817 and AD7818 SPI ADC devices. The AD7816 provides temperature monitoring only, while the AD7817 and AD7818 provide analog input channels with an on-chip temperature sensor. The devices use control GPIOs for RD/WR and CONVST. BUSY is required for AD7816 and AD7817 variants. Signed-off-by: Hungyu Lin --- .../bindings/iio/adc/adi,ad7816.yaml | 94 +++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ad7816.yaml diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7816.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7816.yaml new file mode 100644 index 000000000000..490e5338d7b2 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7816.yaml @@ -0,0 +1,94 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/adi,ad7816.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices AD7816/AD7817/AD7818 ADC + +maintainers: + - Hungyu Lin + +description: | + Binding for Analog Devices AD7816, AD7817 and AD7818 SPI ADCs + with on-chip temperature sensor. + + The AD7816 provides temperature monitoring only. + The AD7817 provides up to 4 analog input channels. + The AD7818 provides a single analog input channel. + +properties: + compatible: + enum: + - adi,ad7816 + - adi,ad7817 + - adi,ad7818 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + description: + Optional interrupt line used by the device. + + rdwr-gpios: + maxItems: 1 + description: + GPIO connected to the RD/WR pin used to control read/write cycles. + + convert-gpios: + maxItems: 1 + description: + GPIO connected to the CONVST pin used to trigger conversions. + + busy-gpios: + maxItems: 1 + description: + GPIO connected to the BUSY pin indicating conversion status. + +required: + - compatible + - reg + - rdwr-gpios + - convert-gpios + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + + - if: + properties: + compatible: + contains: + enum: + - adi,ad7816 + - adi,ad7817 + then: + required: + - busy-gpios + else: + properties: + busy-gpios: false + +unevaluatedProperties: false + +examples: + - | + gpio0: gpio { + gpio-controller; + #gpio-cells = <2>; + }; + + spi { + #address-cells = <1>; + #size-cells = <0>; + + adc@0 { + compatible = "adi,ad7816"; + reg = <0>; + spi-max-frequency = <5000000>; + rdwr-gpios = <&gpio0 1 0>; + convert-gpios = <&gpio0 2 0>; + busy-gpios = <&gpio0 3 0>; + }; + }; -- 2.34.1