Received: by 2002:ab2:7a09:0:b0:1f8:46dc:890e with SMTP id k9csp287167lqo; Wed, 15 May 2024 14:43:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUj6vE+TL9s5Wv4z7yU42XVAek5nbTTMXEPFyfyeT85jqtibYywDSOtX+LEiTgTDlLGUyN3NALmGU7DM+jyXbO8MAMt8YLL8gzTvuSSPQ== X-Google-Smtp-Source: AGHT+IHsjqdG1sGyhAglVFUIbsB++tNt2qWTl19F635jzD3ehMHxJx1uctzEeN5DHCGqxh5jammp X-Received: by 2002:a50:c089:0:b0:571:c0e6:233c with SMTP id 4fb4d7f45d1cf-5734d6b19bbmr9884337a12.37.1715809384432; Wed, 15 May 2024 14:43:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715809384; cv=pass; d=google.com; s=arc-20160816; b=04EjoWSHtCl6PD5OT7VJ0l/VgEM3TcmziZNPIcsR7gG861vDpT3ekkR/qZbMQtaSxt SgS7vJGNc/EwZ99DCopcEQ7LI87wSSHaHyf8i5RlD15tRWvEAMp5i1USs0dPjx0bQ5mO zr7lBlmasiUNE9thm6PcufFm05rd7ZeamkvSYaaIZavaFGOjzK/xEDyaT5K3IZj/q2xJ xgi90jJPBmcG226T2bC0YObXrk0cuvjY+zL/BlbnwKA95BsKxZBl/vCZtoXReGmEzgHU upT2zdpmWUXF0X1c5E4BvW/IkO8FQOFwF9b2U6pnWw6226ZBae3Xmmz216ktRxYhCy1X xCVA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=P9TfeFMGzDggFyesSkjXt3hsg/J9ww73zqsP1azRQZA=; fh=Ry9mxHmV0PY34gEpnsRNWz5Voc+TLUzZtz/tFvzw7qs=; b=AiCw4vVYRIIEBk23wx9ucjgR/LKGnGZx+B3E4KNsDU5VXsy2kwZlJ4jMemkrV0/IfN xsrKH6sNSzP1ei9y/MHtV3Bm04r34A9EWQgGi3tpJH0py0kWZ+YK3O9WL8qRo78SJ69D Oko87leKUAXAQt/jNJTIKhoHFNddVO9d5JJgAkUfxwWJ+LVTXxvbSBjpxsKYiWPiIIfM N74quKUZ2M2Js6Vlvxt+Z74FlhXRDAwlHXU3CfG3ORmTkWooYsK+xq5z3RanuRZtE+K9 Y/AKh0xdjxyXfgbsvyiaCH92RFw311mQUDA2jjKLYuDWn2S7ReO8zsj8YYQVYSL/6vKl E1Hg==; 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=0QOtEJSq; 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-180396-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180396-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-574ecc39f8asi1712393a12.459.2024.05.15.14.43.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 14:43:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180396-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=0QOtEJSq; 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-180396-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180396-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 2DEA71F224BC for ; Wed, 15 May 2024 21:43:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BC55615B55B; Wed, 15 May 2024 21:42:55 +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="0QOtEJSq" Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) (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 9872015B540 for ; Wed, 15 May 2024 21:42:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715809374; cv=none; b=JYEJOffiQY88UeCij1e+DDCM/roSKhwPAoRpSwUko21Wml12K3TFIzfWsdGXxPn4p0zWD1f75BPrqfTvEA02KIfBDNwPYbsE0meOpTuu9BZVMqQIR22RQ2HWxOBv+dVOJ1IkhErTjqhLbprqoXO3ih0d1CR1FZERiZGWp4IuWDA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715809374; c=relaxed/simple; bh=KiSQc1JiF1aFCWtXL6ki6+sQulb5IdXpzvrOpZ5e52g=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=u7xua+H89dOrGTZEIcgXtbxf0UyJzXssps+NDt/RPZgSjxMBhDv80wflRcFBGJRcEUM9cpJutsy/lHjZQroTyt7p1I9yrvVknINUXsVkIErI45SXif7hDcZrw/hQiwE+p2NYjyGSm8kXSDveN2F/uSftEK21SkP8yU/JuxUXy8c= 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=0QOtEJSq; arc=none smtp.client-ip=209.85.208.177 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-f177.google.com with SMTP id 38308e7fff4ca-2e564cad1f1so878411fa.0 for ; Wed, 15 May 2024 14:42:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1715809370; x=1716414170; 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=P9TfeFMGzDggFyesSkjXt3hsg/J9ww73zqsP1azRQZA=; b=0QOtEJSqS+Eg+xF9kTmTsbL5TKLrRVeRRfuTWB0SBxayVlCbJKCcZW7U4f6XrFCOka iSeN5U22t2J1crAerabEFIWld2iWMr6A05MC02rwdgkZsY9eGV6ypBLUBfL4RGN1VQl2 wTFzLGtaBbDgg3V0+huoK9r0z5j0WH2yyaUwtNF+oZ9sPRhk+oHTy98PvB2sD9He37X2 aPTorNU7+QwJCHVIn+1wPTTys/SqXZjxk2mO3qbZyDvugbPgOCyue7opxINHDgozx9Ao zdtikShOz0U2sTEp8FTdeK7snkX22NtCiv2fyWMugKZkNOvUc2zFokN+IaDaiOt0dD+X rdOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715809370; x=1716414170; 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=P9TfeFMGzDggFyesSkjXt3hsg/J9ww73zqsP1azRQZA=; b=YoI6w04FpUb1JZc4K3cIVK7ZO+ZUZv2fZRPQk/PZUGeVoZ7vqXY0dD9KUrGOWSI18/ TWzvCzOZZAWmU4t8UHGDWf/FYNP8tcng+nNfjKvrPvkiSUOBF0SbbCI/SqS6Fbv6a+Le CVZ25+IzBV2dUGXrF5di8VzW2/4HMn/pQ7xU7yOdq71gINrKczu0dOWPPqID3Z92M04j nlEr4LEx94HLieYKB5UQ/HmX7RY/PVgrtnFlaOEZhtEeOdvAMU3h/D6O2UWumRK8jqX+ DsgFlDf3bItxcgkzIynx4r8UNO/tRwmjYmpuq7ETdmdNiHPlEKN8GJTRUPbBcRtf7zH1 tLJw== X-Forwarded-Encrypted: i=1; AJvYcCWC6wGE76ZCU0hNjrtvWnuCYUCyqXg+Bq0n8Z0Ek6dvAIP0yQ58S7PzQbBAyMMroBVw+tvCQfzobX6B18qAm76Brxln4eNNNW4P8x3N X-Gm-Message-State: AOJu0YwlyXQdDvX8P7jtqWVos/tO2x/uzl8nONya6zs5Ju62gcWNGDda AFyobfxRtUFOCzoo+8PdEL5Iy25oWx/QWQSZIPHJ59SjRNR0i04B3Rladj2IEEjx+661bM1L3r0 zlygO52txtWiRyKWkxY51HdYz76qyN5FcK00wRJN1B6zolpY5+HI= X-Received: by 2002:a2e:b88c:0:b0:2e0:4a32:1f41 with SMTP id 38308e7fff4ca-2e51fd46457mr124091161fa.19.1715809370626; Wed, 15 May 2024 14:42:50 -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> <25cb3514-1281-49a8-9e9b-40ead9b050dc@gmail.com> <20240406155328.447b594f@jic23-huawei> <64b7fd83-f226-4b1f-a801-0fe1cf20f842@gmail.com> <20240413114825.74e7f3fa@jic23-huawei> <89e93f4d-e569-46ee-802d-a1668a01b882@gmail.com> <20240420153310.7876cb8a@jic23-huawei> In-Reply-To: <20240420153310.7876cb8a@jic23-huawei> From: David Lechner Date: Wed, 15 May 2024 16:42:39 -0500 Message-ID: Subject: Re: [PATCH 1/6] dt-bindings: adc: ad7173: add support for ad411x To: Jonathan Cameron Cc: "Ceclan, Dumitru" , dumitru.ceclan@analog.com, Lars-Peter Clausen , Michael Hennerich , 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 Sat, Apr 20, 2024 at 9:33=E2=80=AFAM Jonathan Cameron = wrote: > > On Mon, 15 Apr 2024 21:42:50 +0300 > "Ceclan, Dumitru" wrote: > > > On 13/04/2024 13:49, Jonathan Cameron wrote: > > > On Tue, 9 Apr 2024 11:08:28 +0300 > > > "Ceclan, Dumitru" wrote: > > > > > >> On 06/04/2024 17:53, Jonathan Cameron wrote: > > >>> On Wed, 3 Apr 2024 10:40:39 -0500 > > >>> David Lechner wrote: > > >>> > > >>>> On Wed, Apr 3, 2024 at 2:43=E2=80=AFAM Ceclan, Dumitru wrote: > > >>>>> > > >>>>> On 01/04/2024 22:37, David Lechner wrote: > > >>>>>> On Mon, Apr 1, 2024 at 10:10=E2=80=AFAM Dumitru Ceclan via B4 Re= lay > > >>>>>> wrote: > > >>>>>>> > > >>>>>>> From: Dumitru Ceclan > > >>>>> > > ... > > >> > > >>>>> Other alternative that came to my mind: attribute "adi,current-ch= annel". > > >>>> > > >>>> Having a boolean flag like this would make more sense to me if we > > >>>> don't agree that the suggestion below is simpler. > > >>>> > > > > ... > > > > > > > > We do directly relate reg to channel numbers in drivers like the ad72= 92 (where not > > > all channels are differential) I'm not convinced either way on what = is best > > > here where reg is currently just an index into a channel specificatio= n, not > > > meaningful for which pins are involved. > > > > > > It doesn't seem worth adding an equivalent of diff-channels for a sin= gle channel > > > setup but I guess it would be more consistent. > > > > > > > Would you agree with the attribute adi,current-channel within the chann= el and > > diff-channels set to the correspondent current inputs (13 10 for pair = IN2)? > > From another thread today I've concluded we do need a single-channel > equivalent of diff-channels, but you are right that here it is a differen= tial > channel so <13 10> seems like the best option to me. > Current inputs are differential? It seems like we would need 4 input pins for that.