From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) (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 F11AF44C642 for ; Tue, 14 Jul 2026 19:47:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784058457; cv=none; b=Yv0Vr74XRf3PAFDAwwPdVmnBS+IDykl3PClPuFtkIOlxfeYa8+/sU7JY4hu4qLMMr4roB82NyRjFDIHG/Pg22+kQXhCHxjJ5Z2nLv/d46fM24zdcTrZ4rw8QbzLW3HVXoYV3vjlpIHZjiVRAkZeyJ+cjy+iCqN98W8nU4HIjmR8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784058457; c=relaxed/simple; bh=/LUsmvSQpGHMRLIXYDJV6G6dNemLKaKPM3r1uJGsMIc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=e+PYuKcLYMgV0N57j3dmXo5rdgaxbrt9rPm70lVBPWlLyJGFmpYFMsHWLZzH8IQ1fchm0MYa6RCT/u65U+aedWn/kzV20aMpX+yXTJO8FBirAy7YBWSp0VJK/MiWie4bOL5KfynAYZAAQJri+N0rMJHEQdbo5BqoCBA0HTcPdgY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=mPI3ze0x; arc=none smtp.client-ip=209.85.167.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="mPI3ze0x" Received: by mail-lf1-f47.google.com with SMTP id 2adb3069b0e04-5b159850b16so1137200e87.3 for ; Tue, 14 Jul 2026 12:47:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784058454; x=1784663254; 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:content-type; bh=NjCijnCvUpLQ5hXkZKX1A/TF7R6tnAbvlJyfXTOe26k=; b=mPI3ze0xD+Fhpd7C9D5MHB43Jth8wZOqd6lTpcWkDSvhTp/bryOu5pDQHvVYfIjkIX WWvzhnBo0LUMyo9TKsjFLSdztirEKTthd7LK7iR3RhR3pClznbU1BI8s+MFCsLkjmE9P AtyO1i0vCR7rXEGmLf0JCLecp6ZiaRw7r8/TXM4pDzTErNwGAnE6GJtDzvL95+/bbwjA uRCopWE5zX+CVyWkHXfnyGqNkLGPtigmYCfkXVVjMw4uqe6pDqj7FN/ALzO8/oLGapiT X7VNs4iR1PlrgovSHtcWmF/r8+iQnz5YnGqNDdMniWxOwkKq0ZKQ1jWiri4t/UN/mxPM ebGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784058454; x=1784663254; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=NjCijnCvUpLQ5hXkZKX1A/TF7R6tnAbvlJyfXTOe26k=; b=RDkOdVVWtZWjDDkDzPHOyONiFasX91KTY1DL49FKCqjqdlbJnHSrSbnOdaFlg3eGXb knZ0S1krDerHEur42l2J+GImrjEvveMuc6Dm5IBlGnEvh43u+IDJnAWcP6KO08BJl7yH tFUh0PLIjnAwP360RmQtUk7Gr1JaS7bTogcrjM+Zk9V9MvNJZRbZZ3rzJsUcIBI+Eibe +3c/SFiU8F8MBWoH7/B/6JpZ3fmbh9ffrV8+BcCDKZh51uy+96qAIKkEzdld8EHW4iaX rs+HWb1TD8u7NXcBtDTs/n8cUApIncbVB0UO6dXvH36MPiBd/N8Aa4QM5I0feAZi/Ny2 3pAw== X-Forwarded-Encrypted: i=1; AHgh+RreVqkferUtG+vwcuE/x9uByNiHjbs6w8OEJRNYcYtiWhzf080OhLyobdeaRlUcyD2JrIdaCQH9VIAvUx0=@vger.kernel.org X-Gm-Message-State: AOJu0YwoZbhunD3RZPeIGLenP7CitSc+GEkWzhZ/7ECvgvApxBKD/emT 0oLurKIrFibQj2RK1Gi0R5623ZmZU9wIC/h68M1RR+yWME8T57BCdzR7 X-Gm-Gg: AfdE7cmwz8AOnXYPVre7A2ghK1hXqN/k7PQcTgjsmZVBaHo2BB6+vOAClAfJw3Ua8pt +kVgN8QKC7D6OhUbgJvgIeawfmkYa4w8M90IWKUQemrDM5UtpxYwVwCfp0xtyDb0WwlmuDQubw5 TdX9x13Y4e5b2zvE5tc5xM22eigs6o7GWt7CKiXj5ex6LU3ZH7rJMSY14VWAZR8kFUQI0/JwBMf Ijd2pzug6JStrmGhQlP2fov+7ePIQx33yYC3NrcK+Xk42MHQVyoYCcSmn0Swgx3a0mMN7t9tTjB OIOqzRzcu5Oy2XgfYKHkwy61HFRSjo5pw+4TFbilZfX3iBQ/iWhNhPuZi1C4t8fQpDpDQMPDPi8 jAzpVQkvPr80uW0sOH1JAKpk8tzkzTyiidSMOPO0BlYbtXxE3nPt8j6AtyjZiRA2Eg2CctiNHje X8w2JjdGZOWQwuxJ1gcBKnkirteixzpHBik6l4x1XQV5nIzhY= X-Received: by 2002:a05:6512:6787:b0:5b0:113d:8ad9 with SMTP id 2adb3069b0e04-5b1582596d8mr726361e87.12.1784058453771; Tue, 14 Jul 2026 12:47:33 -0700 (PDT) Received: from MSI-LINUX.kielce.vectranet.pl ([2a02:2a40:27ec:2900:822e:374d:22e8:16cf]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5b01ca50a8esm3780287e87.28.2026.07.14.12.47.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jul 2026 12:47:33 -0700 (PDT) From: Jakub Szczudlo To: linux-iio@vger.kernel.org Cc: jic23@kernel.org, dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org, marcelo.schmitt@analog.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, mike.looijmans@topic.nl, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, jorge.marques@analog.com, antoniu.miclaus@analog.com, mazziesaccount@gmail.com, jishnu.prakash@oss.qualcomm.com, duje@dujemihanovic.xyz, wens@kernel.org, sakari.ailus@linux.intel.com, linusw@kernel.org, Jakub Szczudlo Subject: [PATCH v7 0/3] iio: adc: ti-ads1100: Add support for TI ADS1110 to ti-ads1100 driver Date: Tue, 14 Jul 2026 21:47:14 +0200 Message-ID: <20260714194717.596193-1-jakubszczudlo40@gmail.com> X-Mailer: git-send-email 2.47.3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add support for the TI ADS1110 to the existing ADS1100 ADC IIO driver. The ADS1110 is pin-to-pin compatible with the ADS1100 while providing higher resolution and an internal voltage reference. This patch series extends driver support for ADS1110, updates device tree bindings and Kconfig text, and improves the overall hardware description for the TI ADS1100 family. Tested on: Raspberry pi 3b+ with 7.0 stable kernel --- V6 -> V7: - checking for negative value returned from get_vref_millivolts and taking value only in probe will be added in the next patchset to be easier to review - change ads1100_new_data_not_ready to ads1100_new_data_is_ready and returning int to be able to return error when i2c read fails - doesn't add checking for short read as i2c_master_recv can return count of bytes read or negative error code, so checking for short read is not needed - change from MSPS to SPS in Kconfig help text - set iio_dev->name after taking device name from device tree in third patch to be more generic and not only for ads1110 - fix typo in ads1100_get_vref_millivolts - correct typos in commit messages and add ti-ads1100: in subject line - Link to v6: https://lore.kernel.org/linux-iio/20260711184414.1013686-1-jakubszczudlo40@gmail.com/ V5 -> V6: - correct for loop so it will be more readible and return error when iterator matches array size - fix SI unit letter size - correct using available_data_rate_hz array when using ads1110 - bring cast to char* back - Link to v5: https://lore.kernel.org/linux-iio/20260628194341.66752-1-jakubszczudlo40@gmail.com/ V4 -> V5: - Correct pm macros to be more generic - fix variables ordering in new functions - delete unnecessary casts - add unit to variable names - change array name so it will sound as array not variable - correct get_vref_milivolts so it will check if not negative value returned - delete unnecessary short read check in i2c receive - Link to v4: https://lore.kernel.org/linux-iio/20260622221550.374235-1-jakubszczudlo40@gmail.com/ V3 -> V4: - make fixes patch the first change in the series - correct error handling when short read - use ACQUIRE macros from pm_runtime.h in new functions - Link to v3: https://lore.kernel.org/linux-iio/20260613190957.654798-1-jakubszczudlo40@gmail.com/ V2 -> V3: - clean patch from unreleated changes - divide adding support for ads1110 into separate patch - add missing changelog - Link to v2: https://lore.kernel.org/linux-iio/20260607183542.368184-1-jakubszczudlo40@gmail.com/ V1 -> V2: - go from creating new driver to extending ADS1100 driver to support ADS1110 - Link to v1: https://lore.kernel.org/linux-iio/20260527164312.355729-1-jakubszczudlo40@gmail.com/ Jakub Szczudlo (3): iio: adc: ti-ads1100: Fix incorrect reading when datarate changed in single mode dt-bindings: iio: adc: ti,ads1100: add support for ADS1110 iio: adc: ti-ads1100: Add ti-ads1110 support to ti-ads1100 driver .../bindings/iio/adc/ti,ads1100.yaml | 10 +- drivers/iio/adc/Kconfig | 9 +- drivers/iio/adc/ti-ads1100.c | 151 +++++++++++++++--- 3 files changed, 141 insertions(+), 29 deletions(-) -- 2.47.3