From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.7 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796213164; b=xIvY8ZWshhRMxKbILEoqkO+aeGr8afS8NKzi+PTD5wX6e5TTxK0cd/piM0cYEjKzhsYd +X3Y8ua96C4IMZ6qqzV4AMyOZjYdNGBgMaBsbmtgH0skswhi4ksC7rann2dlD7G1E/G78 eS5a1jyPr43qXgQ9tsrnBU3qHu55Zyk++Fb8z+iKWJ1ase1EznvN91PtQdZcsa0/zsIYr ucVTjBFEzPC2KKUy4QoJLY84gWNxMBX0L+1+ix6k/ckzPaCHSQh5gmA3rrV8+hG27paP3 HLtJxQ8Ky/XuShhYJMh+J1NCMTmbGrUIUxxagOpANkkHS44mBsO1to+/H2SJHmQVn1A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796213164; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=B6mYu19Q8xTJSfWY4n0xIj+d2BOh/cFo3grejNXlgtI=; b=3FEXcVPV1VetVlKEOTqKEH62XGL/ByU/Uof4PScFkb4nhXAgY85QGuPJittPO6tXm5pH sapRodEkB/gdhzT65AizX077aPDPGntNV61aaeCo5yu4QUFXHqslH2Sh4JOvUdX3cxQr3 ubagPcG/I6kSv6osGr/YaUspm9FRX2vhsCsyR5viqeVDNgEmyFd/aJy2yh8ndcDiuRG0S gNEsQ2shap/pcvKPC5DTZvqdo8BnViA/AK28uG292DSXdPIbdDkfkimXHxcULb4CwrFRo owT3+pLv0HcSSxrpbs+kqUMW5ee5OtmO2T6mo0UZafv2ijaCKF23BiLpd7aTh6C2rKw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b="WV+v1S/B"; arc=none smtp.remote-ip=95.215.58.7 Received: from mta1.migadu.com (out-7.mta1.migadu.com [95.215.58.7]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E0040606A682 for ; Wed, 2 Dec 2026 12:06:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E0040606A682 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=WV+v1S/B X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=VwRWmv3gD3X8VNZvVOx1TMgAqcjTg1vwCpi4SPDftBg=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1796213162; v=1; x=1796817962; b=WV+v1S/BIviAVUbZvzd+N0Rwu1Z6A0i3HysnF/AluFv7I9uRTr+xYv/JJugzkM4YRhKUmyqT 21BJkMYUbUQg2VLObTGRK2UAyIa7B3SgCwJxGEO+MCgqAKvKILSWnGBM79seBwHjuTqObxYHKMl HPYZFDgzBsV5Upfu3+VksoJk= X-Envelope-To: linux-kernel@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id 0b01119e1f5e2393; Wed, 02 Dec 2026 12:06:01 +0000 X-Mizu-Trace-ID: 0b01119e1f5e2393 X-Migadu-Flow: FLOW_OUT Date: Wed, 2 Dec 2026 12:05:52 +0000 From: Akhilesh Patil To: Andy Shevchenko Cc: jic23@kernel.org, andy@kernel.org, krzk+dt@kernel.org, robh@kernel.org, dlechner@baylibre.com, nuno.sa@analog.com, conor+dt@kernel.org, joshua.crofts1@gmail.com, maxwell@maxwelld.cc, u.kleine-koenig@baylibre.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, akhileshpatilvnit@gmail.com, akhilesh@ee.iitb.ac.in Subject: Re: [PATCH 0/2] iio: chemical: Add driver and bindings for acd10 Message-ID: <20261202120552.GA687317@u5ce4748bae3b54.ant.amazon.com> References: X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Nov 23, 2026 at 11:28:42AM +0200, Andy Shevchenko wrote: > On Sun, Nov 22, 2026 at 06:30:43AM +0000, Akhilesh Patil wrote: > > This patch series adds support for Aosong ASAIR acd10 CO2 (Carbon > > dioxide) sensor driver in IIO subsystem. > > There is no answer to the question "Why a brand new driver?" Sure. Will add a section describing it in v2 patch series. > > > Patch 1: Adds bindings for this hardware > > Patch 2: Adds driver code for acd10 under drivers/iio/chemical > > > > Quick overview of acd10: > > - This is CO2 sensor based on NDIR technology. > > - Can measure CO2 concentration up to 5000ppm > > - Supports serial interface over UART with 1200 baud rate. > > > > Datasheet: https://www.es.co.th/Schemetic/PDF/ACD10.PDF > > > > Protocol: > > acd10 defines 4 types of UART frames - read co2, get software version, > > get instrument number and set single point calibration. > > Frame format: fixed header, length of data, command code, Actual data, > > checksum. Response from the sensor follows same format. > > Total length of each tx and rx frame for 4 commands is fixed and defined in > > the datasheet. Driver uses this information to write and read from > > sensor for each command over serdev interface. > > > > Testing: > > Driver is tested on Texas Instruments am62x sk board with sensor > > connected on UART5 on 40pin IO expander. Additional 3.3 to 5v > > bidirectional logic translator is used to interface with 3.3v IOs of > > am62x. Values are read using iio sysfs interface. Also I have blown into > > the sensor to observe sensor output increase due to CO2 in my exhale. > > Waveforms for read co2, get sw rev and get ins num commands are > > validated on logic analyzer. > > > > Slight deviation from datasheet: > > For command get software version, datasheet mentions frame length of 16 > > bytes including D11 reserved, however it is observed that sensor sends > > 15 bytes with length field 0xb (11 bytes of data), but actual data is 10 > > bytes. Hence, this is handled in the driver. > > > > Driver supports reading co2, getting sw version and instrument number. > > Single point calibration and preheat implementation is left for > > future contributions. > > -- > With Best Regards, > Andy Shevchenko > >