From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oo1-f45.google.com (mail-oo1-f45.google.com [209.85.161.45]) (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 EE20540849 for ; Wed, 28 Feb 2024 18:13:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709144040; cv=none; b=FmIingWYnEba9FZweLvuSXlz4TbAmtlWu81cF2G2M8XsFVrv6a/9BRy6bVgQ/B0c0xPhMtQG9NahO/KTgvWNp+lAwu1zJYfZ1P9xROjhNHQXktrPr/+BAZPMqbGGI7qMVydS/rH4g+n0GrPdPizBqFFrzrYod2DOruPEQK9xlY8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709144040; c=relaxed/simple; bh=IUp2O1DyurNt3DHOePkrTCbRZHnoqxYLM0e7Jur/hNo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=MRj6yR25ZrgP1+8majdcAH6gt9Yk5PajDSDplnb/5dKX0Gg0yZnPyLcmkq4E0JE/5yhsFL3/m08GvciPaxo8ly7zP9FRln6mfJop7K2CSigKeLu5/gEAS7NfuztMEqBnQ5v89gSxNyxrqBz+O5XN0d9+vP1XaUa4vLjgvYqa+dI= 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=db60gfZj; arc=none smtp.client-ip=209.85.161.45 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 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="db60gfZj" Received: by mail-oo1-f45.google.com with SMTP id 006d021491bc7-5a027fda5aeso14584eaf.1 for ; Wed, 28 Feb 2024 10:13:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1709144037; x=1709748837; 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=JHGQf153ISVcw0os1WKKJ+NMnoBEbvgIaH2/2iMTb0w=; b=db60gfZjnMbn4CHlwQlB8YP9QpafdbEAuVYp1vulcPJ5SpPGglQOW84gKMpi4EQfh8 0dqC9yOlhKy2QKZlIAyjFzsXZjDQxHThxc/608s519MMC+tpe7103colh1TRr7NnZFM3 EnUtPW/iEz5gyg8nPJWGErnYStWbL7p27FK6SnzJteVmzLVTgYMdbunw0s2lbciTg5Xl p79Pi9aVT6eYurRpleOiQo5v3W0idyBO1qvP2H0k40QLonaks9+tQqLtxT1Y2cOaTdll ll3Ba4flA6LTa+YpzT/2nGNwTSQP6xyrVBRe1whjcimmZr21BfDypfWyVcIlOPFFypd7 FU7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709144037; x=1709748837; 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=JHGQf153ISVcw0os1WKKJ+NMnoBEbvgIaH2/2iMTb0w=; b=N7qQRwgFmzXvY1ZHiw4hp0y1WbxxjBGZmU9etanQ44lvESbDy24leD/Ev2GXpXO1+w tH95uG3O5QNFM9aaRL1AStlW9xl7Vlhjc4/5P8l3lDrwh5NpbWh7w3xulGVGvW2KhPUE MKejGZja2oUjfRHRb3xg/UIFR29yelY/zR89jovSVrKKHMZ4qKK99ekOBXIWv5UHnkto KxVhHdgm7keKqsbytTWKhj/NvBG+Vtkufc6asHlkpRuPE6KY7QgkjuLXB7fge93fzylL hL0b3yRQSgLNSItBl/NvFYwopL/rd0/tcmfE72iSH/Q5bFh5fmY4ljV+eRtV9TGQWHfL yEUQ== X-Forwarded-Encrypted: i=1; AJvYcCVkRRd4VOST2QWkglCmvobL6SAAbwKTaoMOVXEdKWRuGkn8597igOpue3BZ9Efo1I/qBC1E2vHDhaqGbnQ3sdcCZyzZJUI5XH+wuw== X-Gm-Message-State: AOJu0Yx1ofIU2TeLjkk9xebTdGqgdT1yGK5xd7Em4jQXY1/WDmEB4QaZ 1DEggwS3iQrR32evLPxfxEG55YTge9XflIfhtg+IcbbRUbr2ssqK+EiIw+HMGNU= X-Google-Smtp-Source: AGHT+IFR/nSV2424gDV/2o+aGcU+yEiir6WLvMYS7zCkUxW6QTer+XFLz59fw4fIyJc3hJM2jNxFhg== X-Received: by 2002:a4a:241a:0:b0:5a0:357a:546c with SMTP id m26-20020a4a241a000000b005a0357a546cmr413610oof.6.1709144037018; Wed, 28 Feb 2024 10:13:57 -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 f20-20020a4a9d54000000b005a0ac863a99sm12291ook.13.2024.02.28.10.13.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 10:13:56 -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 v3 0/2] iio: adc: ad7944: new driver Date: Wed, 28 Feb 2024 12:10:02 -0600 Message-ID: <20240228-ad7944-mainline-v3-0-781b922334af@baylibre.com> X-Mailer: git-send-email 2.43.2 Precedence: bulk X-Mailing-List: devicetree@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 v3: - Removed 'multi' value from adi,spi-mode property in DT bindings - Modified driver for above change - Fixed spelling of 'conventional' - Added '#daisy-chained-devices' to DT bindings - Added comments explaining that '3-wire' mode is not related to spi-3wire/SPI_3WIRE - Replaced _sign with _diff in chip info struct to properly handle pseudo-differential vs. true differential chips - Link to v2: https://lore.kernel.org/r/20240216-ad7944-mainline-v2-0-7eb69651e592@baylibre.com 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 | 213 +++++++++++ MAINTAINERS | 9 + drivers/iio/adc/Kconfig | 10 + drivers/iio/adc/Makefile | 1 + drivers/iio/adc/ad7944.c | 413 +++++++++++++++++++++ 5 files changed, 646 insertions(+) --- base-commit: 205bbf0d2dd2e0fcd6bf2a15b7df6fc570967e3b change-id: 20240206-ad7944-mainline-17c968aa0967