Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2122019rbb; Tue, 27 Feb 2024 11:15:57 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXJccTiJX77DVak3DAc76lu0it9wwcwhqqK8R2/pcIRoVwsyz6R6cCC5YmnJv2yjFmUyRqBhPbCeAEeMDGx5gmGJaBvaTB6+I9zQV+PVg== X-Google-Smtp-Source: AGHT+IECRnyX7iuF7asxNKWVzwje9GxiI5AtIWoEKGVWIJzEIn4fiueD+LyglOk5rUrhdVt2o9g/ X-Received: by 2002:a05:6a20:9d8f:b0:1a0:694c:c467 with SMTP id mu15-20020a056a209d8f00b001a0694cc467mr340971pzb.14.1709061357629; Tue, 27 Feb 2024 11:15:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709061357; cv=pass; d=google.com; s=arc-20160816; b=KzsMXAUUL+Z/MwKXyikfzJak9YSE0VdytrAbhWi2tHnP3cw7HZu7xH0aco8Wn2vZJM xiuzQufWRbC+0eRpbYW9Z1l+8omKfeRrwzgAapXG195jUMQ6qeNauAWz/WSA0Y3d7MXv VtejCVMJpB4Px3K+ANwijOxkcDdqwSHpuf8u9gQvQCJrmZAvJloQgE99JvyZU23HTevS SLRqLziXb6uSypq+HkfBmwYmaETukKaHxdaBCI4Wiv1TwNdxQ8WE3ezHD6HqrovL5A3L 7UxeFfQwdUQk+vGD4REID32R4xnYifSyyqiRJf1rZ0hW60JgMd9b+ywNUwQTy73mHdIx YUnQ== 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=nVKUFrfD0l+ZJGZDjLAoImGvdko1W6B9y4j/PD4Lp0o=; fh=avI85ni2bCqS7ThskWJiEDFNxJ9wpuKuzAkpZYD2Ngw=; b=0Alcq5d+a8KDRSgDiqpz4ihhKTnBjXY4ucBxee0BxYBM3z7BRKCjyjfjiNFghsUYts 48VVBgfwcdUFYPtePOAmBxfMPO1n+RnA/wSak+A8immCgMFheVvEiCN4I6DnbCUc/N7N vs83V1EWIr37P3kJH8nLGRI915hzBtJciyaqZAWsdjoXMBb42EpogZUD7l0NG7Sqc+K6 QZcm6Jskhhl+5bg6odeQzhJjGkPQDuOpOIxxMpHCvmUlDWarUaO8GRU5mSJwngdEcEev zT9M78FbnQQyRzis8SAuSHaP2waDC0RhQlO7BUJYpXlBmimR77NJSRvi3alCLsJfOC/r lMEA==; 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=atBgt5rs; 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-83907-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83907-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id f17-20020a635111000000b005e46908af17si4528065pgb.187.2024.02.27.11.15.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 11:15:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83907-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=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=atBgt5rs; 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-83907-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83907-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 4EAEB29378F for ; Tue, 27 Feb 2024 19:15:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B07E151C46; Tue, 27 Feb 2024 19:15:49 +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="atBgt5rs" Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) (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 ACDEB4EB43 for ; Tue, 27 Feb 2024 19:15:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709061348; cv=none; b=BIy1A5RixtwT9yw6LMZPfCcudu6qL5avTnOXQ9Myk8B8JCnlqOSqDPp2Cgrox0HicPqYiytfgvBLhZQUQMdtnQwPb9n8AETsb19zWpz8rdIvwjZS+M9+SsaifGe282ZX3YfIKwAEW3qF39pep0qQMQdiK/3+hTG0FQQ+2lR2hvM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709061348; c=relaxed/simple; bh=hSOP0N0YnxaxmNk6dWKQDrgD1IqOFCwJ/jiRO1WVjPQ=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=PFFDPAWNUSDxOvTaZoh5Arr8GNmcKYUO5nYD+XpZKuA2d5g1Cp5eVJ1q4dlxb6OqwYql73FvKXUTlGJHmAwghMccGJM+N7RLZJlVKfFTXH/NKUFVg2VBhpVT6jV6XqcRk35xSf7fpehm1aUJC1T+9Itjmapd/khueclXJiw3zBk= 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=atBgt5rs; arc=none smtp.client-ip=209.85.208.170 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-f170.google.com with SMTP id 38308e7fff4ca-2d2ab9c5e83so6129701fa.2 for ; Tue, 27 Feb 2024 11:15:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1709061345; x=1709666145; 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=nVKUFrfD0l+ZJGZDjLAoImGvdko1W6B9y4j/PD4Lp0o=; b=atBgt5rsptJiNIbTWTfFDb1a6h7P96eC80d3zsUMheFNN6VHGWk/pSxLVDsXnTWCSa 3MaVwg7iJDOZL6AUQVUDkoMF+uFVVmjXOnK/skvSFv46I7Hs3LD+VP8bfHVHCq8OD080 mQueZQJAKaF49U431E3/0UEljtVk1o4qTns9x9LpbnF6Wnvl6dDnLUIhTqADZ39bm4/D m88Ml6sxGlObG4CrlDdy3Z86YCTTw3uYDNoWMtowIRDxEvcMJCO/gso41MOK5fp0F+SP 2MQpZppZlL4oAnt6t+u73KaZwHasaZMUMbmA9NfRbQ1cyaZL27VeQ0w5jOqNb/pkTSUK Ob5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709061345; x=1709666145; 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=nVKUFrfD0l+ZJGZDjLAoImGvdko1W6B9y4j/PD4Lp0o=; b=k0wuMZJ7hkP2bIMGroGJWo/dd7ZgGCHLgowCFUHafZpkJXUDP9O4ssnULFK2Iyq95f KwGceXFqMp35pMOdPGcdLEPc6Rv4xyqkT187oLY5lJ6GkQ63JDfZ0j+ABknY+VayVTUn ZftZHhY/glG6SoG51nelpPDvoMuXSlOmLG5Jii1fY2qBpoQk8X/AkJqx8f9XqvP4EkII aOx9HkyOhvR/fOwy/Is/jFZGSVqEA4x6YzT7VBoZBbzAhBvaCHmIGecC/uE2c5ysX0qp KOGOkl0SEYHWdX5ALX34TyVgzo1NvTBM5LE3Vr6Yg9FjKj7r+0FQtilt9Ljb9IFfIGF7 7adQ== X-Forwarded-Encrypted: i=1; AJvYcCXHmMagcTISVvC+85RIFOno+GtlcQ9cKacFOVIdVZMsscURhp7sWM820jjDFdgik7884r6RVkE3Qsq9CjR8PItk7bGUPap3ewYXEpqM X-Gm-Message-State: AOJu0YwvpGZo3c3eKZggUWdCntTUEGRDq8NFgdRUjUaiFshW/R0JgpI0 VUZ3Xwe4iAPh8mub32UGOVZvccJH4P/DqaZB0s+SLeUJjzXjAMMxsdiy74wLZNemL2Pd4sdC28V P9VFLjkUbEePwDbr1mlz140DOhKHziagpd56x0w== X-Received: by 2002:a2e:7215:0:b0:2d2:37d6:350c with SMTP id n21-20020a2e7215000000b002d237d6350cmr7283638ljc.12.1709061344774; Tue, 27 Feb 2024 11:15:44 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240216-ad7944-mainline-v2-0-7eb69651e592@baylibre.com> <20240216-ad7944-mainline-v2-1-7eb69651e592@baylibre.com> <20240221152226.GA2868707-robh@kernel.org> In-Reply-To: From: David Lechner Date: Tue, 27 Feb 2024 13:15:33 -0600 Message-ID: Subject: Re: [PATCH v2 1/2] dt-bindings: iio: adc: add ad7944 ADCs To: Rob Herring Cc: linux-iio@vger.kernel.org, Michael Hennerich , Jonathan Cameron , Krzysztof Kozlowski , Conor Dooley , =?UTF-8?B?TnVubyBTw6E=?= , Liam Girdwood , Mark Brown , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Feb 22, 2024 at 9:34=E2=80=AFAM Rob Herring wrote= : > > On Wed, Feb 21, 2024 at 8:44=E2=80=AFAM David Lechner wrote: > > > > On Wed, Feb 21, 2024 at 9:22=E2=80=AFAM Rob Herring w= rote: > > > > > > On Fri, Feb 16, 2024 at 01:46:18PM -0600, David Lechner wrote: > > > > ... > > > > > > + adi,spi-mode: > > > > + $ref: /schemas/types.yaml#/definitions/string > > > > + enum: [ single, multi, chain ] > > > > + default: multi > > > > + description: | > > > > + * single: The datasheet calls this "3-wire mode". It is ofte= n used when > > > > + the ADC is the only device on the bus. In this mode, SDI i= s tied to VIO, > > > > + and the CNV line can be connected to the CS line of the SP= I controller > > > > + or to a GPIO, in which case the CS line of the controller = is unused. > > > > > > We have a standard property for this. > > > > As discussed in v1 [1], the datasheet's definition of "3-wire mode" is > > _not_ the same as the standard spi-3wire property. I can add that to > > the description here to clarify (I hoped changing the enum name was > > enough, but perhaps not). Or is there a different property you are > > referring to? > > > > [1]: https://lore.kernel.org/all/20240216140826.58b3318d@jic23-huawei/ > > > > > > > > > + * multi: The datasheet calls this "4-wire mode". This is the= convential > > Also, typo. > > > > > + SPI mode used when there are multiple devices on the same = bus. In this > > > > + mode, the CNV line is used to initiate the conversion and = the SDI line > > > > + is connected to CS on the SPI controller. > > > > > > That's "normal" mode. > > > > That was my first choice, but the datasheet uses the term "normal > > mode" to mean not TURBO mode which is something else unrelated to the > > SPI mode. > > What I mean is this should be conveyed by the absence of any property. > You don't need a property for "normal SPI mode". The binding already has `default: multi` to cover this case. But I suppose we can just leave out the option altogether if you prefer.