From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F07EF3D0935; Tue, 23 Jun 2026 10:55:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782212160; cv=none; b=ioY5MPKO9ou863AGY0YJsiOIlm/YYq0y05OGm7gHGhXtgiSWEQELGn8keIrJwEtox6+WU/EFg2tqb005pmWQD1VrEiFoF56KH9UMmSG/73u1KXfHRXFd6TVJsaplKY68l2AtQkgPhlfS27+n+mcWv+HwVx4X5RsNeycHsmeYI1Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782212160; c=relaxed/simple; bh=Abo4zaqoPw3exA03f9GXNFpjnn07dOFg9YinHql3BwI=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=a0VrKd6mJ+H3tVacE4b1HoWkzuQS//rqo/KYW40m9we0z3D0q2wCjLNICGdA6zSSKB4YZQ9aE6wsk78D7Gcpl70GIQaXPW3N6sLQAemxs0JHUzHlTWAP0yiqGb4WxiGm7pXeQ6XzneoXWJKxJsSRubWL9P5ZOGUnCVsFrfo27XY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ekfWucr4; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ekfWucr4" Received: by smtp.kernel.org (Postfix) with ESMTPS id 92AB8C2BCB8; Tue, 23 Jun 2026 10:55:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1782212159; bh=Abo4zaqoPw3exA03f9GXNFpjnn07dOFg9YinHql3BwI=; h=From:Subject:Date:To:Cc:Reply-To:From; b=ekfWucr45Ngq4o06r8LsdS1CgARRfAci50HV8oMY+zR/bRxgVIr3TeSigyVq3p8LE /g5lvzYsdVg/KgSLIy/HjpxcoEkCGgnlnvxz+RWXWXA6MMqh7kcbC8XEfAtxfNce3K hCsWgX+JzzYBMpCYUpXW/j9mcKRz5j/MiNu8Oe8Y0zat6HFRhzaIn9QZnZCWSGvQbP kRDhxYj4BxcmElO/5BeSXZMgh7NWX/JH4xaxApdYiyjgUia4IYb/pkGu19hzTLG0m5 YyKK/H1AC8uCW2M6FvspAkMa3nrsXBkmD4OI5DTQqktrZKagfw64ugmHbeiyAT3/R9 pLr0WOZur8PLg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6FF05CD4F26; Tue, 23 Jun 2026 10:55:59 +0000 (UTC) From: Rodrigo Alencar via B4 Relay Subject: [PATCH v4 00/12] New features for the AD5686 IIO driver Date: Tue, 23 Jun 2026 11:55:40 +0100 Message-Id: <20260623-ad5686-new-features-v4-0-28962a57db0f@analog.com> 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: 7bit X-B4-Tracking: v=1; b=H4sIACxmOmoC/33NQQ6CMBCF4auYrq1pBxioK+9hXBQ6hSYKpkXUE O5uYYWRuPxfMt+MLJB3FNhxNzJPgwuua2Ok+x2rGt3WxJ2JzUAAChTAtcmwQN7Sk1vS/cNT4CQ lViItjSkVi5d3T9a9FvV8id240Hf+vTwZ5Lz+9wbJBUclSciiSAzkJ93qa1cfqu7GZnCANaK2E YhILsoUEptVOZofJFkhEreRJCK2AGXLnBQgfCHTNH0A/iZ5rkEBAAA= X-Change-ID: 20260602-ad5686-new-features-e116c04bddb9 To: Michael Auchter , linux@analog.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Cc: Michael Hennerich , Jonathan Cameron , David Lechner , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Kees Cook , "Gustavo A. R. Silva" , Rodrigo Alencar , Conor Dooley , Maxwell Doose , Joshua Crofts X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1782212158; l=3041; i=rodrigo.alencar@analog.com; s=default; h=from:subject:message-id; bh=Abo4zaqoPw3exA03f9GXNFpjnn07dOFg9YinHql3BwI=; b=qqeUphS2jfCs+geTWyOZmFWx9ILbMm4KYyI4zOVtBliPG7Np1phSqmvyRVLtnSFBa1j9lOvUz 7FPPML+9pwfBZYw/SI6rHN5oRPq6S6sBJkqO0JyXCP+ygtrmH+lgd8x X-Developer-Key: i=rodrigo.alencar@analog.com; a=ed25519; pk=ULeHbgU/OYh/PG/4anHDfLgldFItQHAhOktYRVLMFRo= X-Endpoint-Received: by B4 Relay for rodrigo.alencar@analog.com/default with auth_id=561 X-Original-From: Rodrigo Alencar Reply-To: rodrigo.alencar@analog.com This is the second series of three on updating the AD5686 driver. Initially, a big patch series was sent: https://lore.kernel.org/r/20260422-ad5313r-iio-support-v1-0-ed7dca001d1b@analog.com Then, the first patch series added fixes and cleanups: https://lore.kernel.org/linux-iio/20260524-ad5686-fixes-v7-0-b6bf395d08bd@analog.com/ This one is introducing new features: - Consume optional reset and correct power supplies; - LDAC GPIO handling (active-low, held low when unused); - SPI bus sync() implementation for batching multiple transfers; - Triggered buffer support, leveraging LDAC and sync() to flush all channel writes atomically; - Gain control support through the scale property. Signed-off-by: Rodrigo Alencar --- Changes in v4: - Replace anyof+const for enum in dt-bindings. - Address some sashiko's comments. - Use guard(mutex)() in trigger handler and other misc changes. - Link to v3: https://lore.kernel.org/r/20260616-ad5686-new-features-v3-0-f829fb7e9262@analog.com Changes in v3: - Add range-double property. - Acquire reset control after power-up delay. - Include cleanup.h and use guard(mutex)() in read_raw(). - Link to v2: https://lore.kernel.org/r/20260609-ad5686-new-features-v2-0-70b423f5c76d@analog.com Changes in v2: - Get reset control deasserted. - Update entire spi_transfer struct rather than individual fields. - Replace udelay() for fsleep() in probe(). - Minor changes addressing further feedback. - Link to v1: https://lore.kernel.org/r/20260602-ad5686-new-features-v1-0-691e01883d27@analog.com --- Rodrigo Alencar (12): dt-bindings: iio: dac: ad5696: add reset/ldac/gain support dt-bindings: iio: dac: ad5696: rework on power supplies dt-bindings: iio: dac: ad5686: add reset/ldac/gain support dt-bindings: iio: dac: ad5686: rework on power supplies iio: dac: ad5686: add support for missing power supplies iio: dac: ad5686: consume optional reset signal iio: dac: ad5686: add ldac gpio iio: dac: ad5686: introduce sync operation iio: dac: ad5686: implement new sync() op for the spi bus iio: dac: ad5686: read_raw/write_raw: use guard(mutex)() iio: dac: ad5686: add triggered buffer support iio: dac: ad5686: add gain control support .../devicetree/bindings/iio/dac/adi,ad5686.yaml | 72 +++++- .../devicetree/bindings/iio/dac/adi,ad5696.yaml | 73 +++++- drivers/iio/dac/Kconfig | 2 + drivers/iio/dac/ad5686-spi.c | 125 +++++++--- drivers/iio/dac/ad5686.c | 251 +++++++++++++++++++-- drivers/iio/dac/ad5686.h | 34 ++- drivers/iio/dac/ad5696-i2c.c | 2 +- 7 files changed, 498 insertions(+), 61 deletions(-) --- base-commit: a50909aa46dec46de3c73235fc15a7d6f763d996 change-id: 20260602-ad5686-new-features-e116c04bddb9 Best regards, -- Rodrigo Alencar