From patchwork Wed Jan 17 12:51:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ceclan, Dumitru" X-Patchwork-Id: 1887406 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=Mh+I5iMv; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:4601:e00::3; helo=am.mirrors.kernel.org; envelope-from=devicetree+bounces-32739-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from am.mirrors.kernel.org (am.mirrors.kernel.org [IPv6:2604:1380:4601:e00::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TFQkP3s8Pz1yPh for ; Wed, 17 Jan 2024 23:51:57 +1100 (AEDT) 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 076811F25541 for ; Wed, 17 Jan 2024 12:51:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3B78D1EB45; Wed, 17 Jan 2024 12:51:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Mh+I5iMv" X-Original-To: devicetree@vger.kernel.org Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (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 7909E1EA95; Wed, 17 Jan 2024 12:51:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705495897; cv=none; b=h6ocaOXCi8hYlGnab+NOZGJ+0sT95ZXIGZmG8bAJSCsaMuMN5V/lWGns1i19ZX2+4gljKhFOvkcm3KlHcaXRUf7dW2hOiYhc6/yKcXuBYwI83ueIrsSNnimT37btaf40Pc2mcMulFDeonLCWDWcQvm0ptmguHrzW9cmwfLEUqi0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705495897; c=relaxed/simple; bh=lL9tEj72B8RLSGVKGJnXqHrnROs1OMlmSlpmLn/ellk=; h=Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Google-Smtp-Source:X-Received:Received:From: To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; b=c4xuRiqx2dW9Mtn1Dj0KkwzHUS5c0P1e5K/tmayp6+zIrIJwT8gbn5K8CopqyiTTwyYFVK4EBtuAhpy+AjphNo7yxprO5jZp60wqq5ZwlchR0+OYN1K+IDDyLJ647AkvUV5jjrNs3yCIyOjngeEeKxP3mGDmkNDeA0DoiE1F6J8= 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=Mh+I5iMv; arc=none smtp.client-ip=209.85.208.41 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 Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-559edcf25b5so206676a12.1; Wed, 17 Jan 2024 04:51:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705495894; x=1706100694; 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=6wlAJ3HOeN+i9mwkmiHE0QT6wa1Z9g6FI4uNkE/zgM8=; b=Mh+I5iMvSNvaY4REwTAi4lnbDxCjABKEcLYsWUKlmDNMEx/rodjVgMyRjNTqVDP8P+ qvnVkmDFKEBS1ZgIzUs/ES0612miz1RtqkVz5UiHkhvPK6lWPs20JNbALhU3w7PVfaEr jJ7i6WT5dVuyI5+VVFZekNJlh5s5J3dy8PPCT8zUC2nT78cCCafXNRtGQNiuemUDycxG +O0kwFBibcvWuotngoZ/0sQ4YtnsWB9KNR135P3XbOMLpaTtE4pYQw+ep8o9LmNHV+X5 ZgcplO6TNWZCceSyCOtU6+fmWnq+BfEDsUfdpVzZGSiT1EZ9vxMh1fLABtih7y9SC7ub Rdcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705495894; x=1706100694; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6wlAJ3HOeN+i9mwkmiHE0QT6wa1Z9g6FI4uNkE/zgM8=; b=OohkMb1giU49+RIx5NQjZyl9O92Q1re7q2Ycast2XK7AH4PMqHmN9EOWXKGDhfPdzW g1zVJsA1ITHcwOgVPr7UwuygL00yZxbPbtYdUSv1T5yTwcaPemIblVX21hHGjy/3/NjJ wKiaUCCcZ9JE2ToqbeipDKL8oLbfCUt2RtOYaiu4Khec8eXR2QeIvoMgCdfrkWtpZa2G 8K26bFzRXdICrS67lO725EJ4b/RLal7nRnKcIsp6a973lkC2gS86MHrFBX8UVdtIP3oN HkJkYno+ub5rO3HawDQgniXb7u+baqDxqJrOY7d7dh81pwukTERpS12KdyOEHBbfMjo6 nQwg== X-Gm-Message-State: AOJu0Yy+XI1QOsdKDApk+2CjoiMB8ZyRCcXDUmwO3vOKaQqz60YVPz7P jQiaSPra84IZTFyaXIkhzYA= X-Google-Smtp-Source: AGHT+IHCYD0OV4UlkBBgtGc+mENZgOUND0+EF1UV+VhL+oGPuJHBHlps3jyx1H7klHTDKCqQuBvAog== X-Received: by 2002:a17:907:c9a9:b0:a28:e3b6:a199 with SMTP id uj41-20020a170907c9a900b00a28e3b6a199mr3982628ejc.38.1705495893577; Wed, 17 Jan 2024 04:51:33 -0800 (PST) Received: from HYB-hhAwRlzzMZb.ad.analog.com ([5.2.194.157]) by smtp.gmail.com with ESMTPSA id t13-20020a17090616cd00b00a2ea45637desm1277247ejd.112.2024.01.17.04.51.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 04:51:33 -0800 (PST) From: Dumitru Ceclan To: Cc: Lars-Peter Clausen , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Ceclan Dumitru , Dumitru Ceclan , Conor Dooley Subject: [PATCH v4 1/5] dt-bindings: iio: hmc425a: add conditional GPIO array size constraints Date: Wed, 17 Jan 2024 14:51:10 +0200 Message-ID: <20240117125124.8326-2-mitrutzceclan@gmail.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20240117125124.8326-1-mitrutzceclan@gmail.com> References: <20240117125124.8326-1-mitrutzceclan@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 ADRF5740 and HMC540S have a 4 bit parallel interface. Update ctrl-gpios description and min/maxItems values depending on the matched compatible to correctly reflect the hardware properties. Fixes: 79f2ff6461e7 ("dt-bindings: iio: hmc425a: add entry for ADRF5740 Attenuator") Fixes: 20f87a9a26be ("dt-bindings: iio: hmc425a: add entry for HMC540S") Acked-by: Conor Dooley Signed-off-by: Dumitru Ceclan --- .../bindings/iio/amplifiers/adi,hmc425a.yaml | 33 +++++++++++++++++-- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/amplifiers/adi,hmc425a.yaml b/Documentation/devicetree/bindings/iio/amplifiers/adi,hmc425a.yaml index 67de9d4e3a1d..a434cb8ddcc9 100644 --- a/Documentation/devicetree/bindings/iio/amplifiers/adi,hmc425a.yaml +++ b/Documentation/devicetree/bindings/iio/amplifiers/adi,hmc425a.yaml @@ -33,11 +33,38 @@ properties: ctrl-gpios: description: - Must contain an array of 6 GPIO specifiers, referring to the GPIO pins - connected to the control pins V1-V6. - minItems: 6 + Must contain an array of GPIO specifiers, referring to the GPIO pins + connected to the control pins. + ADRF5740 - 4 GPIO connected to D2-D5 + HMC540S - 4 GPIO connected to V1-V4 + HMC425A - 6 GPIO connected to V1-V6 + minItems: 1 maxItems: 6 +allOf: + - if: + properties: + compatible: + contains: + const: adi,hmc425a + then: + properties: + ctrl-gpios: + minItems: 6 + maxItems: 6 + - if: + properties: + compatible: + contains: + anyOf: + - const: adi,adrf5740 + - const: adi,hmc540s + then: + properties: + ctrl-gpios: + minItems: 4 + maxItems: 4 + required: - compatible - ctrl-gpios From patchwork Wed Jan 17 12:51:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ceclan, Dumitru" X-Patchwork-Id: 1887407 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=Ezcnxrcm; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:45d1:ec00::1; helo=ny.mirrors.kernel.org; envelope-from=devicetree+bounces-32740-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org [IPv6:2604:1380:45d1:ec00::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TFQkn0HbLz1yPh for ; Wed, 17 Jan 2024 23:52:17 +1100 (AEDT) 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 C458F1C23372 for ; Wed, 17 Jan 2024 12:52:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CF9541EA7E; Wed, 17 Jan 2024 12:51:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Ezcnxrcm" X-Original-To: devicetree@vger.kernel.org Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) (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 E5CD11EB39; Wed, 17 Jan 2024 12:51:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705495899; cv=none; b=RRJuFWcbA5lpXLlWKRKdo8nPRQiaLWt4hgcPTeAFUI2YsTsH96RFJEb6j3/pRpqI5jykfR3LejOkyQlpmY5irgm3+7IELCzcPIDJdm4LOpTfjzBskvQ0dhAomRpAuMEpywychPcYpt3klunFdUsgpEK5DKDV9Y5UldogadiXen0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705495899; c=relaxed/simple; bh=WsaD/EyThPxR9x3pk2tU6dkPvkHaD1C0ZLhbybr6sC8=; h=Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Google-Smtp-Source:X-Received:Received:From: To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; b=eitDcGQQrz+cZ5JpGAPKgCuZTQLzm3YOrGUk8B0vvw3LtcW4qltnE7KqzExKfbthSz0aKXzDIpC8dH3q5F4qmqPEkLdBuOR/OfDO/XMfb6IObL566t3huFuFpT6km3mm+RapBSfHBn+tzN4g9rGOukoVHR74YVF05wGzvy2hlOY= 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=Ezcnxrcm; arc=none smtp.client-ip=209.85.218.46 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 Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-a2e0be86878so489861366b.1; Wed, 17 Jan 2024 04:51:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705495895; x=1706100695; 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=3IfByO+2rIcCGnCKsv3npkbJVqHFL3ale3i7+O8UKFk=; b=Ezcnxrcm8C2PaFJePxqnLErqaae777cBo8yW/kX3vbWpR03EiH2N7Rl+fPfyTwVIhF iHPzPHvpK7ckaudSbp8SuqPTQHf95i34j1d3RmjMNb2PVFnxv1rqYM1pmAPHVXgJkAVY VrLeP8cCpUERuCbovwfIN0GFCxflA5UpHJy0zDqBdm9fl3q9Wyci8+25EELIEXmNbKj7 2FGiPlXqonIkWpTJ8jMSU1mWu0xyrYVGYkc1Xbrd5sLMnz9krEiX1gmv8/hr6UkbWY4W gLoLGWC4RZCxhCMG7bAzXBNvpQ0x2KwshYCCTaI0yJr3OPaYvG5OERN8zJJKYbYaD317 7bcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705495895; x=1706100695; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3IfByO+2rIcCGnCKsv3npkbJVqHFL3ale3i7+O8UKFk=; b=s42DPfl42ISZQm3hnbiA09plA1ti5BnEGxpGhrq91dW96WeP+/hMkdZhhAMt4daHrK +1raY/IAYDdJhri7bXtVXqPNNy7IKWdI68FeVrZlvzaWd9vxQK4Qk1gn761nCGDXxgze hS6l8Kd2gVxaU+nxu5Tj5MP//mIsQDOSL/FO2kb3497cIDISsNn88wD4mgr9WPD/OYbM rNPoHVld0VInZAIxNfqJMpGx4cYJRlLgphgoWqOljlbjjTC5Jrz5MdTdwTeh2FHQv0qe mQVFLDTZkbif427PKw2B0chCVK9GjjQRb2CNxtIw7U28gy8BfkmfyX+jsy5LIKIaaVOB bfMg== X-Gm-Message-State: AOJu0YxYWnJX6J+t/eYwQ2dDx5GJm/mRINQDmNnjAXhS7g1A1w94M6XQ RkrkLtDMpr/dT9Umm5rBjDk3o7zrnQ7dIg== X-Google-Smtp-Source: AGHT+IHT7ZR7hb7FwVUmmfAEiayM5v1oUdDFzCTlbUkFL2t57UwstfbSYx8w9x/i2xHFcv68G7WcBA== X-Received: by 2002:a17:906:a188:b0:a2c:a9c3:e407 with SMTP id s8-20020a170906a18800b00a2ca9c3e407mr769102ejy.29.1705495895158; Wed, 17 Jan 2024 04:51:35 -0800 (PST) Received: from HYB-hhAwRlzzMZb.ad.analog.com ([5.2.194.157]) by smtp.gmail.com with ESMTPSA id t13-20020a17090616cd00b00a2ea45637desm1277247ejd.112.2024.01.17.04.51.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 04:51:34 -0800 (PST) From: Dumitru Ceclan To: Cc: Lars-Peter Clausen , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Ceclan Dumitru , Dumitru Ceclan , Conor Dooley Subject: [PATCH v4 2/5] dt-bindings: iio: hmc425a: add entry for LTC6373 Date: Wed, 17 Jan 2024 14:51:11 +0200 Message-ID: <20240117125124.8326-3-mitrutzceclan@gmail.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20240117125124.8326-1-mitrutzceclan@gmail.com> References: <20240117125124.8326-1-mitrutzceclan@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The LTC6373 is a silicon, 3-bit Fully-Differential digital instrumentation amplifier that supports the following programmable gains (Vout/Vin): G = 0.25, 0.5, 1, 2, 4, 8, 16 + Shutdown. Acked-by: Conor Dooley Signed-off-by: Dumitru Ceclan --- .../bindings/iio/amplifiers/adi,hmc425a.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/amplifiers/adi,hmc425a.yaml b/Documentation/devicetree/bindings/iio/amplifiers/adi,hmc425a.yaml index a434cb8ddcc9..3a470459b965 100644 --- a/Documentation/devicetree/bindings/iio/amplifiers/adi,hmc425a.yaml +++ b/Documentation/devicetree/bindings/iio/amplifiers/adi,hmc425a.yaml @@ -21,6 +21,8 @@ description: | HMC540S 1 dB LSB Silicon MMIC 4-Bit Digital Positive Control Attenuator, 0.1 - 8 GHz https://www.analog.com/media/en/technical-documentation/data-sheets/hmc540s.pdf + LTC6373 is a 3-Bit precision instrumentation amplifier with fully differential outputs + https://www.analog.com/media/en/technical-documentation/data-sheets/ltc6373.pdf properties: compatible: @@ -28,6 +30,7 @@ properties: - adi,adrf5740 - adi,hmc425a - adi,hmc540s + - adi,ltc6373 vcc-supply: true @@ -38,6 +41,7 @@ properties: ADRF5740 - 4 GPIO connected to D2-D5 HMC540S - 4 GPIO connected to V1-V4 HMC425A - 6 GPIO connected to V1-V6 + LTC6373 - 3 GPIO connected to A0-A2 minItems: 1 maxItems: 6 @@ -64,6 +68,16 @@ allOf: ctrl-gpios: minItems: 4 maxItems: 4 + - if: + properties: + compatible: + contains: + const: adi,ltc6373 + then: + properties: + ctrl-gpios: + minItems: 3 + maxItems: 3 required: - compatible