Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp525832lqm; Wed, 1 May 2024 07:57:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVYeBkYCz4/Svv5IYN5GRSFs/b4eIatkJ/ooKH9VuLQKZHJx5CBdDK3Qrcc37UOxC+Ov3dga9Jx+dX2PuTfVGtxXgLKtA0VUsRaeTQXyg== X-Google-Smtp-Source: AGHT+IEAECb1Hd+FpWTQLD3nsfUFAxXtYxktKVd9FnAAG7B8MAhmAnLJ2ERNFLs/GDncw25F/0tz X-Received: by 2002:a17:903:2304:b0:1ec:22ca:b290 with SMTP id d4-20020a170903230400b001ec22cab290mr2874090plh.21.1714575449195; Wed, 01 May 2024 07:57:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714575449; cv=pass; d=google.com; s=arc-20160816; b=G5m7/SqZ7gtJQg64NC7+9582d/rd28MyPbjlbP5euNl/oaGVbzO7GqpSe/p/UZ8Cby h1GljgBA6YJaj9Ys59WKwg6s8FwFooJ/2OEqcUUQyZ+Iq9TS7G06BcFSoR8dnF+pKmVS EZ/BozYYH/o7PIlItiHsyR0MCWn7+gdLyFhlupzpTk8jt3m4cgHYNqB3RHZYHPsXGoUb BV4NEGpfxZgLNc7JTz/rlzAEb7UHCtl4C2x2cQDWXEGHSpgCgNBg97ouHOUCXLPjm73e s2oDKYcsM6VOVIFLoYZRD49u1/UBfC3zvvHI6lYZIAA9XXn7Z0qwiNaZDh1gJSwZmjXk JCTA== 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=7kVmMiAww/1MNzSxxAk2mzn+IJ9yIpCfeirFaQBWWao=; fh=f0ws+7SR2L4+Vpp83nEw+3RgLGe9PKNXVcb9tDWlRxo=; b=I+tWBIzuHmpZS5HZNESKO0nqwRMegasvv3YPj+6TuQHCXCC1TrwB60cMHDW5pevJL4 1Mh00VvaHWYB8rQEuo+UCTb5mB5ezIQ+Fjfp0bd7ytw6/tevjJDneK3TWe2DMegLGV8E l3Tzslsqph1GgvZW1Gt5+1Zs5i9IWoDYf0mMyb8wjktckCFishLTl8qYT3+rF2sO5TCt 9X5dI/tWpBtGTXF3m5gVrf7AdnrnwRCzveUJXISNw7HS4gesQmyM6QLicrUV+aOh2vNT qpfKd7NhCIvcOrE56iMnl6cxEFmwZhktr0Od+G5xd52ZJASpI3shw0a4hRSLasn8Artr 3B+w==; 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="Z5a/zJlt"; 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-165402-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165402-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 e18-20020a170902ef5200b001ec290362desi4165105plx.14.2024.05.01.07.57.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 07:57:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165402-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="Z5a/zJlt"; 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-165402-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165402-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 C1A1F28386F for ; Wed, 1 May 2024 14:57:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 62638130A54; Wed, 1 May 2024 14:56:01 +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="Z5a/zJlt" Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (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 5E48412FF98 for ; Wed, 1 May 2024 14:55:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714575360; cv=none; b=KqnIazbrOKsiAQTgKB+uRxEIbUOJ/pkTkn+EjDqKVv3QRcNR+ChNAfcwFPnh8fM6IDLrK6lqf5ESbYs+AdtBcDMV6MMZOZjroMLT+JAz1rgaP3DuxX5oBQKsCfGopCuZPCbvhWANgO7SO5QFyX0XG/JofaDpIG0GubcXdaNIV+Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714575360; c=relaxed/simple; bh=VQ4RPFjraeg9QG+WtxUK0LxObNrAlrRgeIFZywlwUq0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=bQ/nUSuSsxs8NT6NaEjxl1oQcc2xL1sAZ+xpTg9oZddtI+Rv+Dfin/ASh++uSStnOO0IoSXI4xZVa1kTM1rXeAdAA7jQZYO1HyKARKaFPNJiDG/GBhhN/xcr/JPhYilyXzzunhLiWsK5Ye0N168IPyMlF3ZGUAGyvIV2Ay97DOM= 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=Z5a/zJlt; arc=none smtp.client-ip=209.85.128.45 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-f45.google.com with SMTP id 5b1f17b1804b1-41a1d2a7b81so4729255e9.0 for ; Wed, 01 May 2024 07:55:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1714575357; x=1715180157; 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=7kVmMiAww/1MNzSxxAk2mzn+IJ9yIpCfeirFaQBWWao=; b=Z5a/zJltr1B/SgV2vz/KZYVsn526i3YYhIjB6xlRCKu2SdmzFSGSwuuCRv0Hb1aPO4 kX7xjjCnzrtmezVJ7Dg8vkSV0Aqo9lbTpIGMVitVJq0DnKJjV3YB6s3oKp7ZSJPlVyvJ MxSJsuXYdWjSFmhof7eD///F6dR0CKPwH1n/74O1oQey0w9zAOuLwF8xHdNKuWxqF9eA 2eqMRRCqGYBuwwwO7r9J4bjPZEs5rI4mDKgtNMQA9Wu0nZ/Jz+bIUHOdCourH6A/udKo oLj6NQhC9kZySaDsz7UFeXpzX1+SN4z+pXt+DqJskGT4x62dCMWrnwPHIc3Ni05DyU3k Htzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714575357; x=1715180157; 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=7kVmMiAww/1MNzSxxAk2mzn+IJ9yIpCfeirFaQBWWao=; b=VLi4PJX004Y7mlmranZEnZLrQw02KCqCcKu0imItyHeFVsTjUa4o6K4KWKmBtuKWHY Z3eyVsW7p41UCH3lvH1q339z81qGaosBdRgci7jAyvID0dtycnzNSVRM8QsutUNwxfuS 247ZDTDuYrENJzAZw9maZAa7fbwwASROAcWxXeMeCSXcJtYapNMEZPzwH6nHPYML3QH2 Nc+Q0rllNInF3uiwEZBXj4htfyaRjurnCki4bnSs7HCd/FdotO6gnM8mikurVSyIwYBf //Yl+gDf4pEhl5ssEiY/Y6eaMo/3gEdZCUhX8nMLEjWKxEphdn87QAMDfV0noWzRqMz9 +8dQ== X-Forwarded-Encrypted: i=1; AJvYcCX4BPIbevWYJK784D5xmbVkDIoxT1MlzQ83huYmeiOcttMRwlu+9cR05+KrM+DbY+9XRnkcCdZbpKZWhbE0Qb55bxKk4Ds3Kwpe8lJQ X-Gm-Message-State: AOJu0YzksAq+vdnpC/GDH3qbA8QJekf+VHdwQZsZN99sFg0Y5/+k/TzE LMfs6HxaI6piWNuDfGmJnrDaaIkHN9uD9p5ZF6rvw3csxNZXiUyXxBtTYuILTbo= X-Received: by 2002:a05:600c:3b10:b0:419:c9e1:70b8 with SMTP id m16-20020a05600c3b1000b00419c9e170b8mr2540608wms.13.1714575356686; Wed, 01 May 2024 07:55:56 -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.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 07:55:55 -0700 (PDT) From: Julien Stephan Date: Wed, 01 May 2024 16:55:39 +0200 Subject: [PATCH RFC v6 06/10] dt-bindings: iio: adc: ad7380: add support for ad738x-4 4 channels variants 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: 7bit Message-Id: <20240501-adding-new-ad738x-driver-v6-6-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 Add compatible support for ad7380/1/3/4-4 parts which are 4 channels variants from ad7380/1/3/4 Signed-off-by: Julien Stephan Acked-by: Conor Dooley --- .../devicetree/bindings/iio/adc/adi,ad7380.yaml | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7380.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7380.yaml index de3d28a021ae..899b777017ce 100644 --- a/Documentation/devicetree/bindings/iio/adc/adi,ad7380.yaml +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7380.yaml @@ -15,6 +15,10 @@ description: | * https://www.analog.com/en/products/ad7381.html * https://www.analog.com/en/products/ad7383.html * https://www.analog.com/en/products/ad7384.html + * https://www.analog.com/en/products/ad7380-4.html + * https://www.analog.com/en/products/ad7381-4.html + * https://www.analog.com/en/products/ad7383-4.html + * https://www.analog.com/en/products/ad7384-4.html $ref: /schemas/spi/spi-peripheral-props.yaml# @@ -25,6 +29,10 @@ properties: - adi,ad7381 - adi,ad7383 - adi,ad7384 + - adi,ad7380-4 + - adi,ad7381-4 + - adi,ad7383-4 + - adi,ad7384-4 reg: maxItems: 1 @@ -56,6 +64,16 @@ properties: The common mode voltage supply for the AINB- pin on pseudo-differential chips. + ainc-supply: + description: + The common mode voltage supply for the AINC- pin on pseudo-differential + chips. + + aind-supply: + description: + The common mode voltage supply for the AIND- pin on pseudo-differential + chips. + interrupts: description: When the device is using 1-wire mode, this property is used to optionally @@ -79,6 +97,8 @@ allOf: enum: - adi,ad7383 - adi,ad7384 + - adi,ad7383-4 + - adi,ad7384-4 then: required: - aina-supply @@ -87,6 +107,20 @@ allOf: properties: aina-supply: false ainb-supply: false + - if: + properties: + compatible: + enum: + - adi,ad7383-4 + - adi,ad7384-4 + then: + required: + - ainc-supply + - aind-supply + else: + properties: + ainc-supply: false + aind-supply: false examples: - | -- 2.44.0