Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp763lqb; Tue, 28 May 2024 07:20:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWKWtBaoA4aV5+ibQ2c4FvlLZIfGiRtdThNwXFSE7bm3IGKcOC9M2h841NSIQTBxD5mfT5B0NcUYEMTZPdUKUa1/pQx8O9nO9TomyBgxQ== X-Google-Smtp-Source: AGHT+IFh7Kxe+LcMg3MSCFW8IEq82qghu3+3st6INIxnKWqQQ9L+0k9Uv3UIFr+INSfdv9dTk9GK X-Received: by 2002:a05:6808:13c1:b0:3c7:8ea:11fb with SMTP id 5614622812f47-3d1a5b3ca6amr15556781b6e.14.1716906056104; Tue, 28 May 2024 07:20:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716906056; cv=pass; d=google.com; s=arc-20160816; b=r+2pFHSTeS2BMKXCW/YySh0XrEpFSfrkGQOgW+ekYjp4o+J7eTj0Fvisz3MN2zx6ht 5VVjkYnxDNEoCyaxqXlfhKVj4lATZ6X1HzWRDCW2DuQJCKoEoIGgjTDclEqNcqoEQN8r 1CllEdDzmbygLyrpvMZKh+AUh1fg2IeuO2HrS6v8xUB90dwAl37TEIDKOGfD+8KGPu38 bO+1B93Vtx/1QxtuTpwIj1GNX0LKp/4x73lPJyaA7bM8yAtA5DLwzseEP6SH/Lm8OohZ ebN170BcFmELTgNI8wuYArwYF0XornCquXgto7FDyFqK09QwtFafl7DPXQ8Zpkv4HH2X j4NA== 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=lJIq545QK9y8AX4JlRGPouvkbkoDYm+eR9amBtMPUNM=; fh=QJKzBMc16TZg4bxIe74zvsESk9rUq6+pWBPGIhBW438=; b=Ul/78xnGFfugkatFEcaTPRjSW47cL2uLt1+NB2YRsswOz1Kx/7fcAx0gx2z8ADOxMG XAfnayqJapasGhIqXBI3Ef5gOI5AI4VrwJu1sj4lpSYnNEjBM56IVipOqIPKzYYZuIKQ +n6OdmCd6p7WIGc4quuiHaZDxqqZilBMp3AVTF2OBKMhzfDmNrLK0/ls6qOumnvGuP2L GZUEwP4BxaHSCsYnVAZZwYVMELGLDcGj/RHaJJxW5XjDMZw0Fu8riZbXP433qx9ui2dL QtVwGcbPukcdqumIwwxDbfJjKptHYbZNVhMRBlJAD1J2Jkx5Vsx+4bbD9uj24HqVVwqb yQRw==; 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="A/JoJJPe"; 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-192517-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192517-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6ac0707d40asi103562406d6.150.2024.05.28.07.20.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 07:20:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192517-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b="A/JoJJPe"; 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-192517-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192517-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 EE79F1C22C51 for ; Tue, 28 May 2024 14:20:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C0ACE16F90F; Tue, 28 May 2024 14:20:42 +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="A/JoJJPe" Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) (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 9213416F84F for ; Tue, 28 May 2024 14:20:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.67 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716906041; cv=none; b=LtAJkdP9JayaMPbvRQQJXFborrUKMcWDDjFXhLsj5sEEgueeaej3VNAUTzZi1xT2Krwjuzl4xWXf1i5AJSMKyqoKo5xhK0FHEjPL0GcilQdvIYyer6R1aw+lkFzWqeTsbzccrnmj6t77DAEdBpTHgPPi4/mGlNz6pAVtX8/PshU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716906041; c=relaxed/simple; bh=683ZTRUzgOFpnsYMQxwIT3dRKS4VdbeBjXmV0/zmGIw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=dUK/lfNoIT1r9UBlbi1+96ZXUNo4VgMZ1YyZWrOnPDE5UoDZCs/YOVpi6byqruUz8OEQIonW0uQzcUCL8XU5FcD8K8lMoPFetHZS0SzaHzMRgp/c6KdDc/mt+tuGeXf3LX4rtm4GALYP1mO92bCYjJB5qg8rNPidMsPAGp2omQg= 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=A/JoJJPe; arc=none smtp.client-ip=209.85.221.67 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-wr1-f67.google.com with SMTP id ffacd0b85a97d-354c5b7fafaso675410f8f.3 for ; Tue, 28 May 2024 07:20:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1716906038; x=1717510838; 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=lJIq545QK9y8AX4JlRGPouvkbkoDYm+eR9amBtMPUNM=; b=A/JoJJPejPsOxwB8IuiucbI6ezfVIjX/17Q/nvLzQWRHqxYRShm8ihE1HLxkfdzhzI nbPs623yHIs92fW+pquLICyr0TyCNqnsVs4i4FYXm2LChdBSa6sDQNwx6XMCM1AgCwRB Evp0MoQNd9wvJs5hhUfuRghMZnHQhfAWati1lI4w/FxbCLbqlE8Rxby8h6Krl1bgNkuM bCGcc/lBDxkIyahSA0aCO1ERKcb9fwI/iK7KUVU2e2UH+RXfeyYGL1RuNpw4Kevyu+VV 1TDrp45/+L/cS+Hn1v/wy5jRFl72rYO0EyNiiD4UKEtCd1ADFgfRJ7Cb5D/0UUmNGIEi abpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716906038; x=1717510838; 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=lJIq545QK9y8AX4JlRGPouvkbkoDYm+eR9amBtMPUNM=; b=daCBevazADqlzd6L2bjbRhKZrog4whPhjKpWIN2U4wdgPUwgqmiZAyWKoT98MpPxm6 oJI5ThPPODUJk1PwHJonLtuarThGvTOat0gk4bjqS7TG65wOAFb8t1BWtDsV3IUBXAvh htVpRwqYnlRyQKckNn9mndRgVjz5jYrX8y7Oy0bFbedVhXPIPT5G3vnEI81QTwKR5y8F 0gpyJ0oZE23bbdqcicjV3zM/ny3IqwL0jZ158srURlKW0huylqRYMmAdqgTJxhRHg5FR 8gCuQt8edmbtKkVHY/Od7eHKgEmz4vgX2+VGnnP8DMb442xrtB2xX9qwrwAC/aq+QlEl ZEfg== X-Forwarded-Encrypted: i=1; AJvYcCU7r/RHOqjiAxPu4ntVptzRnqYEFVSsqAEedqc0URukJo6Sm2IYo/Gth+sajcqDuKAMHfIsaWy2VA7rOoFTRIaZpaGXBuMsaFmvoXjz X-Gm-Message-State: AOJu0Yx8HVbk8Uo8HTrvPX9CGl74AT6Fa5SlIqJ+tPSqN68K/eazr6eG BK0heXN7Km6BfKb9QPkdFUz6EvxLjl0ZTv3FgIzJMgKkS4l1uJJWKdnK053FgnQ= X-Received: by 2002:adf:f585:0:b0:355:361:5672 with SMTP id ffacd0b85a97d-3552fdfa501mr8561849f8f.66.1716906037880; Tue, 28 May 2024 07:20:37 -0700 (PDT) Received: from [192.168.1.63] ([2a02:842a:d52e:6101:6fd0:6c4:5d68:f0a5]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35579d7db5esm11999275f8f.15.2024.05.28.07.20.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 07:20:37 -0700 (PDT) From: Julien Stephan Date: Tue, 28 May 2024 16:20:28 +0200 Subject: [PATCH v7 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: <20240528-adding-new-ad738x-driver-v7-1-4cd70a4c12c8@baylibre.com> References: <20240528-adding-new-ad738x-driver-v7-0-4cd70a4c12c8@baylibre.com> In-Reply-To: <20240528-adding-new-ad738x-driver-v7-0-4cd70a4c12c8@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: kernel test robot , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, 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 Signed-off-by: Julien Stephan 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 758c202ec712..4f162600e982 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