Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2051787rdb; Sun, 11 Feb 2024 09:04:09 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWUaom3tvrfy1lsBhrPzL93eW5Jf86D2EIcaVhy+BtB0x2KL3BOOBLxboXkkvgA1sYOwzT1DAgEUR//+aMnqA7FPbP5KrspKAbHmBUgOw== X-Google-Smtp-Source: AGHT+IH5z4GMVPIlFdxB4YzCnM6s5r/GkxONodiLzMfcH5fB79NK1SH7664ZKhJRg86jeGJCJpG9 X-Received: by 2002:a17:903:2b0c:b0:1d9:bed3:ba0b with SMTP id mc12-20020a1709032b0c00b001d9bed3ba0bmr5155089plb.9.1707671048934; Sun, 11 Feb 2024 09:04:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707671048; cv=pass; d=google.com; s=arc-20160816; b=SHRvfNyICguXZXOr2f4QbYWjasrLkSHqCTU3D+dAaAYQ1T3zf6lVodm6FUfHj+tKri uSxNqfGNLop82pGvCcX8WT4NNWhzKB9is8FyhnxT2uk4Z0fRQUhjeuHbnpj/WdXRQ3ER rg9HFj5PxD3P10hYBXnjqfbeSm1CSJiSAtJQKHpe/C589Q3iXpYxRiNbcciBDuQwBEkX V1eUQN48hq3Ps7imdMIlA7Mfi7gvRbaIwln/0g4gtXSlx4eSS0u6hNPKwnY50WfqS768 Byri1GAtb0C/SxwouRUig4ZBWNa6BtzztLHs3o6ejRSTgoNUpoiYGIc4t68AHVIq2PnB tGlA== 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=l6r6uQO0yvhxMh2sO8XzcbE67h9/FEe/yCCnsnSaz5I=; fh=T0Z1OWgKLbkao0uRZDFl+DGByWCS8oAacW3iW8syCGc=; b=gx2cL1Ot3CHpvLODZ1gGM+IBf2DTte1UhU5awvC/neXnp9to0VS2fQ24A6I0N7OnLo 7RlmNg2htJ/KBr/J/rBjIBZsLjULPCr4igBGT4qatftiKb+winpPimALje3X/7y9crV7 algpged+dBL78lRziAPUs5FCcQRd1FX8QppIxOoy4TaE3cWemVvpk4GmCGNSiXXaEeX6 FSwTw7IHQ8DzBjQsIX+uyPh9757pljWV68d0iRE2ShU9SIT/khXdERIX1sLBXqdP3aU2 yIUJTmZcShWtvfrdgu95U7Wu3qv0QEhUSRRm+C+2LcdXi6fsompGhsysQ8gs/NDfSREx T82w==; 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=JwXCvwKn; 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-60874-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60874-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCUxwQ/J6+OJCplrc6BpF/ndP1jx+H9CsDQEYrFUnNJNRpnrYubQfTbu9KuTnxj/8TMfG5ES1BkjFgo3QW4ojw9yjqHSMt5oUdzUCon91A== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id n5-20020a170902e54500b001d741dd5848si5151417plf.140.2024.02.11.09.04.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 09:04:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60874-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=JwXCvwKn; 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-60874-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60874-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 94D4E281C41 for ; Sun, 11 Feb 2024 17:04:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 00F025C61C; Sun, 11 Feb 2024 17:04: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="JwXCvwKn" Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com [209.85.208.169]) (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 22B585B688 for ; Sun, 11 Feb 2024 17:03:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707671040; cv=none; b=G0HBpwImCBv4Yc9SyXJC7zrnwor3l93gwkVSR570DtKvhaRUtk27s7O7zZJW/E0W2AsvIZZA++uqMdXyr8paQIZ+on4MAcDTEbMsM0DxKz8XfX9SvHcDn6ZQgt/SSnUlYw3nxxQ1w33teXpsbq9niKjNkIPVs4evy8RfBujBlJ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707671040; c=relaxed/simple; bh=EaYBvPTL5340RMBzf1X/yXQwMXrnL0mGGyjOfVqJ/8g=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=fmXohn2enZr3HTsFqF57W/lpnjuIaG1i0QR3p/w6ROZHIOC6w9lPX5IOBB6136uik7R6cGSNzrQanuEHn32DNMpQa9cERTQdcppWnewio/dWTKFA7di1BE5TGxqEKrjJg0U8mSkwsKIr5rkMKS4m0SagtQDnHyQ+FnWPE2TKWAc= 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=JwXCvwKn; arc=none smtp.client-ip=209.85.208.169 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-f169.google.com with SMTP id 38308e7fff4ca-2d0dc3fdd1bso24141381fa.0 for ; Sun, 11 Feb 2024 09:03:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1707671035; x=1708275835; 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=l6r6uQO0yvhxMh2sO8XzcbE67h9/FEe/yCCnsnSaz5I=; b=JwXCvwKn2QtzpDo0Z+YLgAGxSUdQJTWY31TIJW717+pfEB1ejLLqIBF1MWPMOhtx2e HS3UsdFRljcimS6AdNwW8E+8AkB4JmsygI1Fi6DF78yoHh5YaMjuWIQCUv9Dwicr6h+i wV0gXIU2YwKSAaYAdJWYtCdn72KLuMXVvZXBXgunmFUp59QJDhTm1fPxpg6hhYsliaVd VZFZWiZFoH/DWaD3UGIrXlJQkB0h3LRZSuuFdnY0cDhYuWJXKEu4BUFLDBgkj5kQTeVv MSgGsQRGlSaDl2fEGr7scJGKDsEfxECYJhPCxGfPKTVi5H4jxhDEwOWw+BCVPbeeEiy+ 6sNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707671035; x=1708275835; 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=l6r6uQO0yvhxMh2sO8XzcbE67h9/FEe/yCCnsnSaz5I=; b=qAInLRG4z/N5l0PQ+Dbh1Yj/ke2mhJ6VFMh+fhxTrh2IpqUf4UK1CIfMZQyz6VN642 OkP0XOpJcd6q3RTSg3VrLJkUDgvseuYs++FqeA1AEj5IRXyiAi1iMg0wn7YNCp+kq+rX +QT6yLX6oP3Ha9e57Ph60f9vGIYRy1EqxIURelh9mAvAxi4kBuX4lIvCuS+XDPV2FIIK cRGSH0OvdT+0Xmuk7bzvmq7mYaqLmt05y98H7aG9HU5mZTRFc8nZQnaxbbU25/a1q0FV ajJaYFLVnZN18ffqxfKES4aXJ8nhPblQNT2UaG2M+mBCqEKC+naDBeotTqhy5nHaSsEs EYCQ== X-Forwarded-Encrypted: i=1; AJvYcCUsRSLVNs60zpQ7QK8rWSX6TG2E2q7pVnzRg5ivuzgDppCmHcdf/ENF04yeymDK+XRmQR2W81Sz6ob9dxDxkf66l3qh/PeQ0+BF8BBo X-Gm-Message-State: AOJu0YzmkN5qQE5ZiT1EC42miZ1hZNQ8dTwEVJd7R1+UgM8CoAbNOZDF m7G0KXw2hQi2X4E7Xn9khyOF5c8bbNoeFBp1nAr+xPi/lEPn0ZDLiBgqiqqXNOMeGFXbc7XQWfA cqHr67h+4lvqZ7yf85kP8tpzlD6nG7buD25stfA== X-Received: by 2002:a05:651c:89:b0:2d0:a21b:c62c with SMTP id 9-20020a05651c008900b002d0a21bc62cmr2510616ljq.52.1707671034856; Sun, 11 Feb 2024 09:03:54 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240206-ad7944-mainline-v1-0-bf115fa9474f@baylibre.com> <20240206-ad7944-mainline-v1-2-bf115fa9474f@baylibre.com> <20240210174729.7c6cb953@jic23-huawei> In-Reply-To: <20240210174729.7c6cb953@jic23-huawei> From: David Lechner Date: Sun, 11 Feb 2024 11:03:43 -0600 Message-ID: Subject: Re: [PATCH 2/2] iio: adc: ad7944: add driver for AD7944/AD7985/AD7986 To: Jonathan Cameron Cc: linux-iio@vger.kernel.org, Michael Hennerich , Rob Herring , 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 Sat, Feb 10, 2024 at 11:47=E2=80=AFAM Jonathan Cameron wrote: > > On Tue, 6 Feb 2024 11:26:00 -0600 > David Lechner wrote: > > > This adds a driver for the Analog Devices Inc. AD7944, AD7985, and > > AD7986 ADCs. These are a family of pin-compatible ADCs that can sample > > at rates up to 2.5 MSPS. > > > > The initial driver adds support for sampling at lower rates using the > > usual IIO triggered buffer and can handle all 3 possible reference > > voltage configurations. > > > > Signed-off-by: David Lechner > > > The one thing in here that will probably bite if this gets much use of > different boards is the use of non multiple of 8 word sizes. > > Often we can get away with padding those with trailing clocks. > Any idea if that is safe here? We can probably get away with it on these chips. The ultimate goal here, though, is to get these chips working a max sample rate which only has a few 10s of nanoseconds of wiggle room between SPI transfers. So I would rather have a bit more play in the timing than try to support generic SPI controllers.