Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2777623lqz; Wed, 3 Apr 2024 08:20:23 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWlZVGjg4NNKoZLV4M2Cvl4E+XxRm2C+0faonf9E2gUjz2K1eVtN8sIIXGhqZ3J3U1G4ixB++6VWgw9fsusS908Zev98k1KoD1ZJNa4bQ== X-Google-Smtp-Source: AGHT+IGFqBwEwM5iRWe9quPAtQTLeqnGpQ7lmz8fMp5u/OJvMbVGBbr/flWLNVl7UXIABbVzmtK5 X-Received: by 2002:a05:6a20:394d:b0:1a3:be06:3e0a with SMTP id r13-20020a056a20394d00b001a3be063e0amr14906381pzg.48.1712157623567; Wed, 03 Apr 2024 08:20:23 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q23-20020a62ae17000000b006ea7bc4e2b2si13100972pff.383.2024.04.03.08.20.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 08:20:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130071-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=AWMVjxtY; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-130071-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130071-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 6FB85285218 for ; Wed, 3 Apr 2024 15:18:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BD02E14B09E; Wed, 3 Apr 2024 15:14:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="AWMVjxtY" Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (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 DD30A14A60A for ; Wed, 3 Apr 2024 15:14:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712157290; cv=none; b=g8FbCT8KswZ5DUQOQuiXWHRENOYkNoCKvm52VM4CozWOlR/M3B8fXW1EmnB/SufN6INM2zaFUn3ptq32op+MfTjs31xq8g7gMspeJEq9UoBvP8odCAHKLzyChvF8J98wDWUb8vxaRXUhuuJvUjGDhb2BULA9tIdyXe8zBh4rE7k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712157290; c=relaxed/simple; bh=okMqtAJdJt2mKknsEiqIBDifkB1qCYqpQVnmksBqJLg=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Okjvaezy2yYnyqJ2YNImTqhwcT2geXmbReXGiQaIP1fwRFG1RuKU6i2nSysepuWMf7tm3gIqf4rhl9wrfTWZBtVIcPlw+Ss/N5ETqPaLD5SvRyGNLY8ckdm2IpbsKgy2cc3itZr1gUnYRBCVVKRkNS4MSKpjcRaf+dWJzJtKwpE= 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=AWMVjxtY; arc=none smtp.client-ip=209.85.208.178 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-f178.google.com with SMTP id 38308e7fff4ca-2d6ff0422a2so88536331fa.2 for ; Wed, 03 Apr 2024 08:14:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1712157287; x=1712762087; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=8On6x+LYibbtDP6IBIgF4A+aMOZN1d3uu3/VQOdT6Nc=; b=AWMVjxtYCIvAHhRmFKuPHli/mfkYqal/o/qp+19PaRvbbFmF8FkYkGA2fPLgMpKvWA 8kqExIolNOPOa+SktvatzD5t7ZhxvMR2Lw2DtrmMeBNmF1VKa/2GBht468wdeLW0xrjL jWaXrU0VYou2I0vPcWdxKewpfprsRKl1dtr383nVSR3pIHh0Q2xdbjT5KKttA5pI9hSO P6kMmAg9jADUF1c+rUoRV1Ook2K1pq7H8dSsM5YnWcQOcwTw7AGMajWrAw1aAPzZ9S+D y0Ng0frrV1UHwbNFAYLNLp2GeuWB1QYhWT1iNXeoch1J3KLjeCjnqoukPEQAYBREjnBq f0Rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712157287; x=1712762087; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8On6x+LYibbtDP6IBIgF4A+aMOZN1d3uu3/VQOdT6Nc=; b=jq26TGQOVgCTMMg4psy/5okdmbpV1VFiFMRN5/6CU8AnaYIEOIqS2+5VjH88gApaH7 ZxrTv9Fco3UtuzvUAZR3PnO1eYOrJgyusvzCN4z/sYlK2bNq11l95RE+zRyh6iJYN365 HRHDNW0R2dRVavmY3zBFvSF6Vor7NQeiIzEYAsTRmIoROuZ71qgJuf+MmaTsYvQ8kEKO M45RW1yTcfWUbMo690nzqI3ePWaHuJ6yZEh4V+M57wHTGSuicv+i3V8uv4IilheSaPz9 TmkY+s1MUoQEyW+HiiPWtI+Nohr4pSTsVsqVc9Ea6izULEU1PKm2iHYy4UBG6R8Mr8Ao bVtg== X-Forwarded-Encrypted: i=1; AJvYcCUL4zuo0C+lBL44PKc1Fa22fkIkk+nStEH0+Ld7xewk84Oyvwj49C+sJIJnZ907gl72CjtUf3kVdvYTnl98aazlXLk0LE+Sa2W/hoQm X-Gm-Message-State: AOJu0Yz2cc28QEPzVrGeOTvagsXN029bdmqfWBA2+d+OpqMG+ZWzc5Vy 0KVWxjDCAuxsuN6CFvWSui2IgzDN0QkFs5Gts4JPuKs6bakxODihX5HbPCzXHsK5BNgCWsAMANu 3EQmbXvXy8zEG3fKaA2hYj7Xwf1rdtdL2oBsGzQ== X-Received: by 2002:a2e:9ace:0:b0:2d4:1fa4:9eb8 with SMTP id p14-20020a2e9ace000000b002d41fa49eb8mr9893359ljj.40.1712157286650; Wed, 03 Apr 2024 08:14:46 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240401-ad4111-v1-0-34618a9cc502@analog.com> <20240401-ad4111-v1-1-34618a9cc502@analog.com> <0db40597-0d66-4d5b-8165-d9a4c068a42e@gmail.com> In-Reply-To: From: David Lechner Date: Wed, 3 Apr 2024 10:14:35 -0500 Message-ID: Subject: Re: [PATCH 1/6] dt-bindings: adc: ad7173: add support for ad411x To: "Ceclan, Dumitru" Cc: dumitru.ceclan@analog.com, Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Apr 3, 2024 at 5:08=E2=80=AFAM Ceclan, Dumitru wrote: > > On 03/04/2024 10:45, Ceclan, Dumitru wrote: > > On 01/04/2024 23:22, David Lechner wrote: > >> On Mon, Apr 1, 2024 at 2:37=E2=80=AFPM David Lechner wrote: > >>> > >>> On Mon, Apr 1, 2024 at 10:10=E2=80=AFAM Dumitru Ceclan via B4 Relay > >>> wrote: > > > > ... > > > >> > >> Also, I just noticed that AD411x have only one AVDD input instead of > >> AVDD1 and AVDD2. So we need an if statement that says if properties: > >> compatible: enum: - adi,ad411x, then properties: avdd2-supply: false. > > > > Already addressed by this: > > " > > # Only ad7172-4, ad7173-8 and ad7175-8 support vref2 > > - if: > > properties: > > compatible: > > not: > > contains: > > enum: > > - adi,ad7172-4 > > - adi,ad7173-8 > > - adi,ad7175-8 > > then: > > properties: > > vref2-supply: false > > patternProperties: > > "^channel@[0-9a-f]$": > > properties: > > adi,reference-select: > > enum: > > - vref > > - refout-avss > > - avdd > > " > > Mistaken vref2-supply to avdd2-supply. > > But still, the presence of avdd2-supply does not influence anything at al= l. > Driver does not use it, you cannot select it for channel conversions. > Would a restriction like this really be required? It is true that it is not likely to cause any problems we don't fix this but why would we want the bindings to intentionally be incorrect when there is an easy fix? Driver implementations should not influence leaving something out of the bindings [1]. [1]: https://www.kernel.org/doc/html//v5.10/devicetree/bindings/writing-bin= dings.html#overall-design