Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp525214lqm; Wed, 1 May 2024 07:56:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWwraf5jBLlamthdEMtnkIktY88LuVBnX+LguYM7SQzEP4/DDmG8gjQKYs25138ZgphXx3ha8xGroiUMhQ+mbmt0YBcUjgGkNLihVQzrQ== X-Google-Smtp-Source: AGHT+IFGVN5x/UBS9OzXwF1hjz148Lu70H4cDwk4dGwwIZfn/mhZze+9x8c7jHUZwrluemV+4Kcr X-Received: by 2002:a17:90b:1bc4:b0:2af:9e88:d41d with SMTP id oa4-20020a17090b1bc400b002af9e88d41dmr2967821pjb.23.1714575376472; Wed, 01 May 2024 07:56:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714575376; cv=pass; d=google.com; s=arc-20160816; b=CFeukRiVrowJmFZNCUikcso67TxTRlO1OrshDAC0dwbRq6eO0rZhnAHg6Qza6xP3FX Dy57vodYmcZT0c7piPbYA564K+MzhiuIk/7LFAxp6GDQ58t+0xMb0VqCxIWfbU891n+t 2jPdv/qIUIKD4H4Z1EguS4zyorivzy28V/uSTPq2U+cssVHbzHR7VhpjnLPwu+UpazO5 jHWfXz7dZpA2fc2RaUHAy48TzeFvLdaiqCo68xWRmnZmDZ3GzT5AdbcbDG3oGTKmc4P/ ICnbvo8Y5xD74BO8FJH83yDj6DvqL5zriGoNXS8RfIee1ziVUjyLM6GrwXVoyEZpj/Vb 54wA== 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=Fhz/hQk8RD1tt0hu/cR4amFoB9mWCchFbN+TxPow/AQ=; fh=3dP/dni4GqO/zeIzEcTgIyV7W2uTETQw32YMsl561xQ=; b=dTIQxSVmpQdYeb9Ji7TGJ3zMVxm0E671ykRNUgdDm8oOrsUL8nN3mT6EO8hkp93Z5n jZGxl+QRMXDeyfGsWR69YG2bTtCeiniDweFqYA2M9gUF2VBqIuKxkhswcj83S0VLvAdR f5yxl0zWHt5ZBr4umShB5TYYQvh0g3FFsl1Uo55ok9Dk6kPHNy0hwhFicFi8Rkoxz4pw Uv3zCYtmneGVhkLHzQ1n9MeNMx2aFgccOLO/9GuJNr1Qghnr7gMHqNwtTsdOhxuJa2o4 ixwMI1QxvTK3y4eYZpQqi60A9zEJb9fzPqcYEYBIuE8S/GzziMVgpz+j/LpA8PgeV2Fh xU9A==; 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=HZWK5idm; 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-165397-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165397-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id j4-20020a170902da8400b001e41c66599fsi24169676plx.478.2024.05.01.07.56.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 07:56:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165397-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=HZWK5idm; 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-165397-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165397-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id DC30B283839 for ; Wed, 1 May 2024 14:56:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BFCA412F5A1; Wed, 1 May 2024 14:55:54 +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="HZWK5idm" Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) (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 AF28912F36F for ; Wed, 1 May 2024 14:55:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714575353; cv=none; b=aw/DsvYAXqzM9w4Lp05K40sjKAGxbAbuMwxc537Xc89EywXcurGPaQ2xqAyVoMgx6ElTcSTNXDRjulz4FLDpS694J8Hl0k2tCa7GuK1Kw2ia13GSk/h6JSMvWpxF/ET9Y8aK1wChL3AoZKrcny1CxLZgpMIFZgDlaBPt3BoD424= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714575353; c=relaxed/simple; bh=IDhrjIJtC1G3o2fCZqsHvxz7NEDrI0F5jKU0EEQs398=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=SZACBklns6WIKrHnG1O1+wPinNAhjuDUoyOIm7ly/EqLdIbNjOqn+zVoMgmiiehNuLj+E4ulNSqboQ9SrGoCu3GzRZcXfpcD7Okyjb0owXs2f/aQkupLpxh3v5B45Wpq1kuZ8dqzCLmZEh/qmYIpc+zQauGlmml2re1NErMW+bY= 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=HZWK5idm; arc=none smtp.client-ip=209.85.208.179 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-lj1-f179.google.com with SMTP id 38308e7fff4ca-2dfb4ea2bbfso53046981fa.2 for ; Wed, 01 May 2024 07:55:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1714575349; x=1715180149; 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=Fhz/hQk8RD1tt0hu/cR4amFoB9mWCchFbN+TxPow/AQ=; b=HZWK5idmP6QILE3q3N3KEcFMgKf6S+NSTqRhw5tSLPSieMEYngUugUXemk6LlhS8Wg hQSkXexZpa8QZiDpL8c0M0QFL7rncNPbbQCmtZQQUq0ou1Lm+e0NrVwVHmgawXzBCWyI hgFNVHVva4xsacW+JUqAtmDKxzAR0EtdTXx83v5ct9TxbEJ5piXUTfNYLlYbeCAV5qn1 OlfD/GT79UAZ9AUBZnNfxahAzN+YaDIFDDUF4e1Zzf6bzzLz3TrNijo+PO1qqxkoHpXD pnSCKiL9/JJ1IAGekKlcwv25fqE19dDWd6GACM6jRN+IYoFydQgUcfZt2GspX20kuS/6 7pFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714575349; x=1715180149; 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=Fhz/hQk8RD1tt0hu/cR4amFoB9mWCchFbN+TxPow/AQ=; b=W/iTxLEvZ5f8gJSGgqeg14Gl0MdrNNyQx5sA3qsfhCnJ8iigf8iyccc5GTBiY/9I4/ Gb2Stu4Dwnz4So/BU2OLYddwrt4LqUKMqAtKd4g9lydAR+iu2CmSKRAkyECXsMko2asc AMVXPTBPVhADFmU7q5GvXEsBYvIUnzKLOv83qD78UwRp9hF+2p24D3SpLl8chhWCNsDi va/cmNv9+7gvO7ckp5dLD3jq0qH4HX/pc4BJ3B/OsjvyYLzr2jKqkKYulFVL4h7oeJzL jb7h5MV9c3yxgsnHf3g5thDKtuSGoWd7SoRmC2XsyLGq8gG34yANBYyvap48yOQFsMXe kgRw== X-Forwarded-Encrypted: i=1; AJvYcCV1QbyEco5HRufNCkpmgnb6SLNVr+nyk2NjQV+k4L8g9x/xuWlJrr8r2fjrK2bbCrnBX8OzhILPrSOPy2DfRRS4OIccvYj75O/mqrJJ X-Gm-Message-State: AOJu0Yzb/onx5p5nvKCCgs8WzIYZgxpLnHlypuGeDawwzflCvFBURbh7 WgYOWUnM6jeaPNLJrXoqf2zhzzKefwwDn1RFzL0F5W63eAK3qfAYUGaGI43VHRA= X-Received: by 2002:a05:651c:222:b0:2d8:930c:bbfa with SMTP id z2-20020a05651c022200b002d8930cbbfamr1798566ljn.5.1714575348754; Wed, 01 May 2024 07:55:48 -0700 (PDT) Received: from [192.168.1.61] ([2a02:842a:d52e:6101:6fd0:6c4:5d68:f0a5]) by smtp.gmail.com with ESMTPSA id o27-20020a05600c511b00b00418a386c17bsm2422999wms.12.2024.05.01.07.55.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 07:55:48 -0700 (PDT) From: Julien Stephan Date: Wed, 01 May 2024 16:55:34 +0200 Subject: [PATCH RFC v6 01/10] 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: <20240501-adding-new-ad738x-driver-v6-1-3c0741154728@baylibre.com> References: <20240501-adding-new-ad738x-driver-v6-0-3c0741154728@baylibre.com> In-Reply-To: <20240501-adding-new-ad738x-driver-v6-0-3c0741154728@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 8ad79cf70552..5bb168937853 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