Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp764897lqt; Tue, 19 Mar 2024 03:11:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUAoyaYSjPI09Lgb//rVzFK4lLWYbUt93wipxZSNHCqMttzmJBOwySNYT7IU5w/7dMtrWvwS/NDDrYR8trlwnsmgbZqLVUWmd5H36C5jw== X-Google-Smtp-Source: AGHT+IHiik3bw9ubeqsTKsAKhaIr7MqPoHIjkfrRZaTjaH7S8GQi0IPsHpc/iukt7zAsrHowv0Jr X-Received: by 2002:a05:622a:164c:b0:430:dde8:9740 with SMTP id y12-20020a05622a164c00b00430dde89740mr3753516qtj.40.1710843112645; Tue, 19 Mar 2024 03:11:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710843112; cv=pass; d=google.com; s=arc-20160816; b=ysBTBteLWH3wRMf8QnZdstyUOMVvaf66AeEkXjjqBAyZ9lAco2oUHSTYpZ6mz9IVUp 4xlbTZgfRlR0rxqjKfxn0ObqoPbZImtKZhEl/tJMbp2m516sTaGbHzqD+vG16K8cXESw CQH7iX7uSswVWR4wkNvBv2KnJP+tMzDwjfeDXqvQ23vmL3QbOe6dafRAGFCAUaA5f1KG j1dOE14fX5Z2u4c+YKWDtyoL6PZqfmofwXZR/x3WB5kCcFOJZV0uzgEmi5Hh/nrH9uNL Unijye2P07hePZp59FfS9ltGPGHov4g01CFLQuumZtH8bxTvtpkQ1CeOYPBwm2DYArp2 O7fQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=P2Xt4gKZEQzxm+w1VTeGy38oB/1nG8epzhUyQ7RBcWo=; fh=NmNZ9VLbXHO6zAY/FUVYzMkUg9te5IlXcryQnRuRgZQ=; b=E+eow0MXKi1BeAi8YmVBUhXy3HpeDfXcS83VVMZBndy4L7JeyCIIheGNWLluqPNhxQ haKu8ywNrrEOKwErARORFgWzPrdeTx9eCzxFMcc56aoOxdDyHO5PLznT31f/9g6uKpzX 1yPiqIGUfKV+pzg7dKshRYFIsyahk6EuiTjMbD6UPFW7UwS90tWiLFvbT2dhdhrhWQdm cJFLAfbOBkk5GhDMe4abSpA0UDi31wVoZXOzlkkw/lMHBoYc7JIDx70MrMnKRSpomaaJ 5CSZz+QjL/H4/YTHphxCh/7yGJ2YWB3XoeGh5WXHjvbxtVWn6maSxtx4Daf3q63t5yXS im+A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=axCZ8tzr; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-107364-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107364-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id u7-20020a05622a010700b0042ee3385939si11806922qtw.560.2024.03.19.03.11.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 03:11:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-107364-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=axCZ8tzr; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-107364-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107364-linux.lists.archive=gmail.com@vger.kernel.org" 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5214A1C214C5 for ; Tue, 19 Mar 2024 10:11:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D53637E56F; Tue, 19 Mar 2024 10:11:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="axCZ8tzr" Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 EBD537D3FB for ; Tue, 19 Mar 2024 10:11:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710843094; cv=none; b=qlkO3V6M9Zq0ADbsCuSG9sGs/DiGio/scUiU+7lr/MX2TJoMYGZR67GEKP4eiDwkgM2A9qNeM3zirIjH9hGNR3iYZwTNyPOevy0XAZEAny+1FGsKu+VppDh9vkOr+dLnoUAWWaoWKmnIXiOnSbVc6Jw/klGNU6D7NpmrXrZ2AQo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710843094; c=relaxed/simple; bh=qJG+h7PWXq3FlSvEpcaV3fvTYQ6QvP4I7lH9T+MdsvI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=N1f+ArleMuMfUHxO6YJZgFE+izG9qJCGJO9ARy0WM6TGGCipMLWscE/loQu3Q+zBOXRWMR6A1mdKkaS9Sio/8g6Fk2Kwocpt62GVwLHlIYFyhTPoNLzd/Ptv78NJryinEftnoFkA1QFrUf5YfexlZm3Qw2daUrFTIEEprkd7k7U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=axCZ8tzr; arc=none smtp.client-ip=209.85.128.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-414633f7a52so6322365e9.0 for ; Tue, 19 Mar 2024 03:11:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1710843091; x=1711447891; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=P2Xt4gKZEQzxm+w1VTeGy38oB/1nG8epzhUyQ7RBcWo=; b=axCZ8tzrBYLINfoR2Y9H89WCC4/FTw07yxeSul8Fjya2ch5lqQNYTGVZBdxw7Nxebb 5uUPa7hgyk6FDzeOLeOqA22yntZDQV4A0N9pOVWuVcDWRDp3KGBAL1k3Ek8Lv0eI82tB Ng5WfYIWNfokZgSFXhcpKNzp8kE5/d+lfsCKc/26RUKmkn2QTie4Lx8r85EDMGflucmR ZLTjERDRBIxVc2dO43qdB4BZ+ce3FhJUeA+lQEarC+YkeQa/jxGiEujx1Nly1HZE/CfF nuVNR40snc8lsu+4r3X40TbHg4jzldJOb54iCdovSoShWcKirNLwTDKn9JX8+v9/fOKA EehQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710843091; x=1711447891; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=P2Xt4gKZEQzxm+w1VTeGy38oB/1nG8epzhUyQ7RBcWo=; b=X37UoRWJeO8+UzkaR4jyUUswt0nwofgPfk/UYNXwk/kq0mpYyJuIIAztR4ULsLEnVk 6a+Mmx7lA2W5hHUz4g0ggTyQjAYyVi6XcWUtsg95148n3YIYII6HwO0EXhXXn5YueBfu AP4b/vkMTydY7R99QjYCsZFvbF7rbht2sD7naaCwERB90WjbewOvqk+/kqhcaj5dOOop B0WwbAQTXNnpCRfjTX04/ZO+0lgR/IOBAFE/Jj8IrBVVMRIMb3+SF9y8biHjw9eqYpjQ iisiBXNduurwU0fBgJN4rMohhJb+sO5QAeLUliY+q+svKOYeH9vfoxZV6hoHzje6nrZi F3WA== X-Forwarded-Encrypted: i=1; AJvYcCV1ymZb0oPIkGFsmyFyGP2/PDgeAbPpydPtAgRafzfLfWF/1iil/BYgpp7wm0gA9mgZay/+GI2TuUXf7W/b96+9AiHtSFr+7mdummz0 X-Gm-Message-State: AOJu0YzK4KD700cdAd5rKnYXuSRWM9yKNL2xTUIDSDMGxxOjXabA81Dx sdctwVUuWX6lOpVQKwjk8HBRXyA7Np9DLsJIu94Y8BGkAOITDQLe8yJFFis/kew= X-Received: by 2002:a05:600c:3b25:b0:413:286c:4fc0 with SMTP id m37-20020a05600c3b2500b00413286c4fc0mr8130459wms.34.1710843091150; Tue, 19 Mar 2024 03:11:31 -0700 (PDT) Received: from [192.168.1.63] ([2a02:842a:d52e:6101:6fd0:6c4:5d68:f0a5]) by smtp.gmail.com with ESMTPSA id je2-20020a05600c1f8200b004133072017csm21096384wmb.42.2024.03.19.03.11.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 03:11:30 -0700 (PDT) From: Julien Stephan Date: Tue, 19 Mar 2024 11:11:22 +0100 Subject: [PATCH v5 1/7] dt-bindings: iio: adc: Add binding for AD7380 ADCs 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 Message-Id: <20240319-adding-new-ad738x-driver-v5-1-ce7df004ceb3@baylibre.com> References: <20240319-adding-new-ad738x-driver-v5-0-ce7df004ceb3@baylibre.com> In-Reply-To: <20240319-adding-new-ad738x-driver-v5-0-ce7df004ceb3@baylibre.com> To: Lars-Peter Clausen , Michael Hennerich , =?utf-8?q?Nuno_S=C3=A1?= , David Lechner , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel test robot , Julien Stephan , Conor Dooley X-Mailer: b4 0.13.0 From: David Lechner This adds a binding specification for the Analog Devices Inc. AD7380 family of ADCs. Signed-off-by: David Lechner Reviewed-by: Conor Dooley --- .../devicetree/bindings/iio/adc/adi,ad7380.yaml | 82 ++++++++++++++++++++++ MAINTAINERS | 9 +++ 2 files changed, 91 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7380.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7380.yaml new file mode 100644 index 000000000000..5e1ee0ebe0a2 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7380.yaml @@ -0,0 +1,82 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/adi,ad7380.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices Simultaneous Sampling Analog to Digital Converters + +maintainers: + - Michael Hennerich + - Nuno Sá + +description: | + * https://www.analog.com/en/products/ad7380.html + * https://www.analog.com/en/products/ad7381.html + +$ref: /schemas/spi/spi-peripheral-props.yaml# + +properties: + compatible: + enum: + - adi,ad7380 + - adi,ad7381 + + reg: + maxItems: 1 + + spi-max-frequency: + maximum: 80000000 + spi-cpol: true + spi-cpha: true + + vcc-supply: + description: A 3V to 3.6V supply that powers the chip. + + vlogic-supply: + description: + A 1.65V to 3.6V supply for the logic pins. + + refio-supply: + description: + A 2.5V to 3.3V supply for the external reference voltage. When omitted, + the internal 2.5V reference is used. + + interrupts: + description: + When the device is using 1-wire mode, this property is used to optionally + specify the ALERT interrupt. + maxItems: 1 + +required: + - compatible + - reg + - vcc-supply + - vlogic-supply + +unevaluatedProperties: false + +examples: + - | + #include + + spi { + #address-cells = <1>; + #size-cells = <0>; + + adc@0 { + compatible = "adi,ad7380"; + reg = <0>; + + spi-cpol; + spi-cpha; + spi-max-frequency = <80000000>; + + interrupts = <27 IRQ_TYPE_EDGE_FALLING>; + interrupt-parent = <&gpio0>; + + vcc-supply = <&supply_3_3V>; + vlogic-supply = <&supply_3_3V>; + refio-supply = <&supply_2_5V>; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 7b1a6f2d0c9c..f7c512f3bbda 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -427,6 +427,15 @@ W: http://wiki.analog.com/AD7142 W: https://ez.analog.com/linux-software-drivers F: drivers/input/misc/ad714x.c +AD738X ADC DRIVER (AD7380/1/2/4) +M: Michael Hennerich +M: Nuno Sá +R: David Lechner +S: Supported +W: https://wiki.analog.com/resources/tools-software/linux-drivers/iio-adc/ad738x +W: https://ez.analog.com/linux-software-drivers +F: Documentation/devicetree/bindings/iio/adc/adi,ad7380.yaml + AD7877 TOUCHSCREEN DRIVER M: Michael Hennerich S: Supported -- 2.44.0