Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp503593lqt; Thu, 6 Jun 2024 09:36:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCULb3SQN6+yyqqtfUR2GUtN12DWOBIcFtqWppObIstxEvYm7pz5bV25spQm33XvEJKZGnZHLa88g7kER7yEBnr2iZ3QMMpufFfH04yNhw== X-Google-Smtp-Source: AGHT+IFglS1ig3gN/QXL11Qb6tiVFOAy2HPoMshaApXGuRQ14EofjLKGAU9ClP3KQRLEu4oZrv+Y X-Received: by 2002:a92:cdaf:0:b0:36c:4887:4434 with SMTP id e9e14a558f8ab-3758032f89cmr2597485ab.15.1717691760584; Thu, 06 Jun 2024 09:36:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717691760; cv=pass; d=google.com; s=arc-20160816; b=nzv2FtNMWmLG+yn6y3+SxT+wgaBRTOH1fjciq3j/lNTv1EaTWZMBFX/YU0yCW2kH64 34O7KuRcmmUx18jxVRQSMDBLlWcbMZFLdi6/Cb4MiFU67MtL9EhdyyLVJpJzHoB6o1Br BYx6iZ5Xyg+QQqcOC/302FxDlR3vzvrNCsEdgC5jV3ZShDSbMz1CO512ifq+/YnQFc49 HhD6F9ZiLKgwKxaqIIOs/Jjmcz2hAaegRiDfe+x0eE6NPvl6WTNc/y68h2X8QEb+Clr4 YxNs6Qwj67aDshOZ2jLKhuf0kqW0l/g1mOY0rahyd5sef7SdPd8Zz3hnBGw8DvlzXiIU eiZQ== 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=VL7Jfe5LASAsbhjsk8tZFy0dkoyYybfw6edvNlQBITs=; fh=4THy3k6oz4Hj9qb8IR+3/Quv13aFM6bR1PyE8VIYxnA=; b=FQwi1t540ngQkNltk6hzwZERV1CrI1oT014TTauB8NzwdVDYyvQl5/MPU3LR60U+RR b7sy9dVzSFYOM7Rn/IigoyDSZEYzMeVH3++Xk1J255+KGvYohjuFsaXK04GF7aP/Jg/M /t7gjf9hXDnxokEdqbaKgozQ0I3czsgF+GQTztB7B1rVeHhprQ7phGN2iVry0zgIxbcm N7nLJP2TbJ1QBtiHNZCLQ1pjIh1A+a3xhSlynAZf/x2Z0lY4y00q0lekXuSCIEdFovxh qYmSVApyr0dK3PUOBxmOr00832CtXwkDgGF1rXsVPZlECHPXRKBF6nNiegmyeWZ5qCfF J77A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@dolcini.it header.s=default header.b=xmSqYpwE; arc=pass (i=1 spf=pass spfdomain=dolcini.it dkim=pass dkdomain=dolcini.it dmarc=pass fromdomain=dolcini.it); spf=pass (google.com: domain of linux-kernel+bounces-204704-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204704-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dolcini.it Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-7953336c16fsi170227185a.633.2024.06.06.09.36.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 09:36:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204704-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@dolcini.it header.s=default header.b=xmSqYpwE; arc=pass (i=1 spf=pass spfdomain=dolcini.it dkim=pass dkdomain=dolcini.it dmarc=pass fromdomain=dolcini.it); spf=pass (google.com: domain of linux-kernel+bounces-204704-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204704-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dolcini.it 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 48F1B1C26338 for ; Thu, 6 Jun 2024 16:36:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 97A7D198A30; Thu, 6 Jun 2024 16:35:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b="xmSqYpwE" Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) (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 A61441953A4; Thu, 6 Jun 2024 16:35:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.194.8.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717691742; cv=none; b=HrpqE/1pYKm+sGZCWPOrIH1C0yy99Ah5/xwdUGQXkideLZ40pG4RtQbTt0AfmuvDjtGtgzgIrM/88uN/LlXMgWrfo3IMjed3eOIKBhN++X10HW94W0SrIqXizHagR+/JTYWJgL8/A7FIgZThQwIiUasqYTc1Cel7lnZMmKxqOqc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717691742; c=relaxed/simple; bh=txrTlDYUmWxlbNDzia4hkPlPs50Pzoy0fdsdojtxSwQ=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=VDh5qwTqabPhhS0UDU6hkPUGik3tDF/0eUJYaHaF086Yr9hqg2Pavt+Ko03BlgDHEx54e5LP9hCL+dqkqd7RJgxuO/Hvp84Th4/OHg5ieYWHSPqvEZBCwzr0W3a4kR5kG4MeYFo0uIAF59wPajc7kytcaUshDXBu7G6i0ogYGZQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it; spf=pass smtp.mailfrom=dolcini.it; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b=xmSqYpwE; arc=none smtp.client-ip=217.194.8.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dolcini.it Received: from francesco-nb.corp.toradex.com (31-10-206-125.static.upc.ch [31.10.206.125]) by mail11.truemail.it (Postfix) with ESMTPA id 7C0971F9B3; Thu, 6 Jun 2024 18:35:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1717691737; bh=VL7Jfe5LASAsbhjsk8tZFy0dkoyYybfw6edvNlQBITs=; h=From:To:Subject; b=xmSqYpwEBoC9JKobeAaYu3W7Emobg6hiR/s/V32L1VCFJZKrmM71Ax9txRgr0e5GT U9hQlv7GN5KRvKgMZS9K9at/tDi96c/8/5FAgSS2Jy4sIqmYaiYxhQRepQjTNLSutf k60nyBEQUy43Cdbn8CnzLOKVOOAqmhpxMXKNJt1mNe7i/zWxPZArUprRFJSXVOcE+b ABlMI04Eh3zUTFS7V9/36xsIR3wboRGIxKvD/q2XP6Y7Tj79tYm0fho5lLLf+fH1hA wOg/vRBVrGhdUiYib4CQSFM2ebtxtm120bVhXzBFYnrFXI5M8GcGGd23KzpQMzc/Sn nhn47F0iduCIg== From: Francesco Dolcini To: Francesco Dolcini , =?UTF-8?q?Jo=C3=A3o=20Paulo=20Gon=C3=A7alves?= , Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown Cc: Francesco Dolcini , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] iio: adc: ti-ads1119: Add driver Date: Thu, 6 Jun 2024 18:35:27 +0200 Message-Id: <20240606163529.87528-1-francesco@dolcini.it> X-Mailer: git-send-email 2.39.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 Content-Transfer-Encoding: 8bit From: Francesco Dolcini The ADS1119 is a precision, 16-bit, analog-to-digital converter (ADC) that features two differential or four single-ended inputs through a flexible input multiplexer (MUX), rail-to-rail input buffers, a programmable gain stage, a voltage reference, and an oscillator. Apart from normal single conversion, the driver also supports continuous conversion mode using a triggered buffer. However, in this mode only one channel can be scanned at a time, and it only uses the data ready interrupt as a trigger. This is because the device channels are multiplexed, and using its own data ready interrupt as a trigger guarantees the signal sampling frequency. v2: bindings: - add diff-channels and single-channel - remove ti,gain and ti,datarate - more details on the patch changelog driver: - adaptation for the binding changes - changed i2c read/write to the device (not using regmap anymore, use FIELD macros) - more details on the patch changelog v1: https://lore.kernel.org/all/20240527154050.24975-1-francesco@dolcini.it/ João Paulo Gonçalves (2): dt-bindings: iio: adc: add ti,ads1119 iio: adc: ti-ads1119: Add driver .../bindings/iio/adc/ti,ads1119.yaml | 148 +++ MAINTAINERS | 8 + drivers/iio/adc/Kconfig | 12 + drivers/iio/adc/Makefile | 1 + drivers/iio/adc/ti-ads1119.c | 850 ++++++++++++++++++ 5 files changed, 1019 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/ti,ads1119.yaml create mode 100644 drivers/iio/adc/ti-ads1119.c -- 2.39.2