Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1321026rdb; Fri, 16 Feb 2024 11:47:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV+XzKcp5xCrpVAHj28wNzCMHnIqBI18PBeot7DcOo4/SfEHu829LqBjMTnJ/ivn69uecGEp8bVQRjAafpCs4FyZcDpjEPgk3PSFgxjmw== X-Google-Smtp-Source: AGHT+IHCNR9Lk14JkaU9jQb/TVdf1y3VFFikr91yQQtHvyZAL6MoXRnBbkoya2l1ntEBYqLTw+01 X-Received: by 2002:a05:6a20:9396:b0:19e:9f2d:9825 with SMTP id x22-20020a056a20939600b0019e9f2d9825mr7943713pzh.49.1708112867163; Fri, 16 Feb 2024 11:47:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708112867; cv=pass; d=google.com; s=arc-20160816; b=Leq5YWfoTdVUklmYacVem9wPuFHCh4eMwO/9sM8Wp1rFvGUdtWj0i2HVDvO4LX5btQ WSx5NAV38hmzThtfZvqmIwTUY9DkoyRtsGezb8VUd9CUItiSWIJWr+KFszKYtkwQbw8T /nVCOVW0F3DP37xv6NZoUVd8G7JqRzGsApH3+lOQNsAsSOnRYv0Xlj0X1hCo+3Nr1QIN K0zVUHToQkNp8bm3C7lApHaStHm6y8qLNcPC7/ku/nvNQFDdo4rtHWpsTRAdWktLB+z/ df+A7V4MvuocWVAifvxbzHMhxOdZWyzGeakeRGZ+vSOUMEmxN5QjpDG+UvHHg/yk7FJv ICsA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=aMru+TbGR1l/T6gVtc9rPekac/11roVdl4ywF715rRI=; fh=PCkCu8u+MSj+Pf4t47PG7Su1eX2N8ZPGSoL3vasTdXo=; b=UV8qoPBlNMr7iDy4/IRn/ga8itnteXIakNcHX8kkRtd79puO1AyBKGVUGa9kQJyQ/m qeM39iTBnnhBgGdEOgH8SVys4CRyXDyfyZ5uY9IEGNWf026FzSxYYKqPvnTmRvnvKay0 2y6nmdb2mK5GS00J3+WLw6jd5cmgC59nzt/9ujmeb+YapOACjt7MyvV+rF28hyE47PC4 quFPGjIMclE3sdeaz4jTY9nG61PnY0XHcjv4DSv/Xaap8v8L5sWVUOvPlm/zjT80CaKg 7ddlP2oHN/RUcXznBwu7foHwL/pIrF6EPOfRfBHNs2CZACpGfkzg9tTrF2UTIDWIlVzO v9wg==; 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=XaPJPgGf; 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-69263-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69263-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 fa17-20020a056a002d1100b006e04dddc978si378589pfb.305.2024.02.16.11.47.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 11:47:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69263-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=XaPJPgGf; 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-69263-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69263-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 DD31428337E for ; Fri, 16 Feb 2024 19:47:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 660BA137C4F; Fri, 16 Feb 2024 19:47:35 +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="XaPJPgGf" Received: from mail-oi1-f172.google.com (mail-oi1-f172.google.com [209.85.167.172]) (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 6B403131E5C for ; Fri, 16 Feb 2024 19:47:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708112854; cv=none; b=QDe7BvLj64y2UdrJ9GcceuF+V0iEgQCkfuga/L+6Tvhq+su9rcFnYwH0BrRZwbdBbPmah4CH3WSXps2cFe/U1bNwCeRYfbxr61BumPXH2mxW5KNL1jKbQ4acLS1KoWIFmBOdWaqjHtRb3O3MqJsnw1oLxaFGGgqpUeZtC3bHFK8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708112854; c=relaxed/simple; bh=SmhWWVRherSSU6IqXDSK9iug5x4NrJoiSZ8Z8ot0gvU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=dRh0OllRXKjVG+54AJUM4fCgmblGHZiT7FFaMQyVgSXZNJ3kF/QC+YQQBE2H0ull64wp/1lC4qFVWm0LwN8qg4tMOXJAKzhfFo1tLMHaf4xrlbhIgR2k820KsC/kV3eZkS1PfygzEtDa3HxDF4fQJwF6UrWm/hJWDxRQ9IMYaXw= 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=XaPJPgGf; arc=none smtp.client-ip=209.85.167.172 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-oi1-f172.google.com with SMTP id 5614622812f47-3c1333b0974so1853409b6e.1 for ; Fri, 16 Feb 2024 11:47:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1708112850; x=1708717650; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=aMru+TbGR1l/T6gVtc9rPekac/11roVdl4ywF715rRI=; b=XaPJPgGf6+4DSb+48CZdpb/6zy2dVdfciJU9M7veAukxk21aBXcgBkaBunaxw4qfcW W0qYVl9gm62oIhzFnlZ5XhTja2wncdmkE1XZsIWtAaWtf1ZkO41Di4V2kxnIM88pXz1z 6Xzh3kHXkpP51Yl8L41YMZYz6oNMWEP+inW8FzzMjXoGnnRWIh19WaLTIMH//jFxctOv eeX8ORtg2epRipILHtgKvNjmckzOz+MOMW0XRVIyEDvU+tOv7tVcOrNC1LXpml2IPcmX jasxzHnKIIr+gzmQHKew39h9Jw2d6+ueP8CXz3wt4jKll7oQy3D8kj1JlpQqnHYonmDl RBpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708112850; x=1708717650; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=aMru+TbGR1l/T6gVtc9rPekac/11roVdl4ywF715rRI=; b=gNTqFwb3DAj5huWrDK2R7/neSmGVtZCuFkHKRKmYxVTVf/OreHVtSR7UOFON7kLoP4 gcFqsXNPWx7FraLMvX03efd2Ztixp7vUsD4kAJcQdp1j1BfzcM5a9f8odft7SwtN4mWJ PePxGO0qdaIUQo/6Vngm+XD0ytIDJ0KDKmBe+dSfU0DGKHNEqoTm6AnDXS3cDRPOtJcT 4CyiUjj1gLZORM35UqJ3owH1i3hTgqp7RdLVhFK1htukjPelZK5F/4e1rFN8hS2qhK9+ VyB/H0se9SjWdskrZBveBzDNSVfSL3FyxSKZ5CmYD3sdQPsL2QAvgDiJBjtEvRbJSBef znqA== X-Forwarded-Encrypted: i=1; AJvYcCWbP5ZNXhJiVVq2dtEqYDsBZV5TJ3IJqAejnswOw7UHhu1kivuzSfiBlM8sJypvbL7X6zzzxOHmwlcAFm0jYNhzICK5PasFVoWNyJmB X-Gm-Message-State: AOJu0YyIS7zz3Ax999zeraCDhIvaBjaXoo0B0ow1DFpjhNE87b1TEC5Y eLIN7Bvzs8PI9N3Zs7+NKKCHSdgfKru925peh4GrK7ZIgjKjItadoUUOZWYpYys= X-Received: by 2002:a05:6808:f91:b0:3c1:3d7f:5363 with SMTP id o17-20020a0568080f9100b003c13d7f5363mr3720080oiw.36.1708112850496; Fri, 16 Feb 2024 11:47:30 -0800 (PST) Received: from freyr.lechnology.com (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id cg10-20020a056808328a00b003c136d7ed2dsm83412oib.43.2024.02.16.11.47.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 11:47:29 -0800 (PST) From: David Lechner To: linux-iio@vger.kernel.org Cc: David Lechner , Michael Hennerich , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , =?utf-8?q?Nuno_S=C3=A1?= , Liam Girdwood , Mark Brown , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] iio: adc: ad7944: new driver Date: Fri, 16 Feb 2024 13:46:17 -0600 Message-ID: <20240216-ad7944-mainline-v2-0-7eb69651e592@baylibre.com> X-Mailer: git-send-email 2.43.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Mailer: b4 0.12.4 Content-Transfer-Encoding: 8bit This is a new driver for the Analog Devices AD7944/AD7985/AD7986 family of ADCs. These are fairly simple chips (e.g. no configuration registers). The initial driver is only supporting the 'multi' (4-wire) SPI mode. We plan to follow up with support for the 'single' (3-wire) SPI mode. This work is done on behalf of Analog Devices, Inc., hence the MAINTAINERS are @analog.com folks. --- Changes in v2: - Added limit to spi-max-frequency for chain mode in DT bindings - Added spi-cpol property to DT bindings - Renamed '3-wire' mode to 'single' mode (to avoid confusion with spi-3wire) - Renamed '4-wire' mode to 'multi' mode - Dropped adi,reference property - now using only ref-supply and refin-supply to determine the reference voltage source - Fixed spelling of TURBO - Renamed t_cnv to t_conv to match datasheet name and fixed comment - Fixed wrong timestamp pushed to buffer - Fixed scaling for chips with signed data - Make use of sysfs_match_string() function - Link to v1: https://lore.kernel.org/r/20240206-ad7944-mainline-v1-0-bf115fa9474f@baylibre.com --- David Lechner (2): dt-bindings: iio: adc: add ad7944 ADCs iio: adc: ad7944: add driver for AD7944/AD7985/AD7986 .../devicetree/bindings/iio/adc/adi,ad7944.yaml | 204 ++++++++++ MAINTAINERS | 9 + drivers/iio/adc/Kconfig | 10 + drivers/iio/adc/Makefile | 1 + drivers/iio/adc/ad7944.c | 427 +++++++++++++++++++++ 5 files changed, 651 insertions(+) --- base-commit: bd2f1ed8873d4bbb2798151bbe28c86565251cfb change-id: 20240206-ad7944-mainline-17c968aa0967