From nobody Fri Jul 24 21:29:10 2026 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 39A72411F93; Fri, 24 Jul 2026 12:03:13 +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=1784894594; cv=none; b=DGyAhPBlySjslJijMueZiGxeu5+A0u/hQfDr4t43FGiyhDBAM7EmZYJ0ih+HfjkYZ6rs9D7yW34VOXJ72xqTU1qepCOZOD1SefYM30wk3+bRcZnLjAh6qHppidwvlo8D5T7O2EofI7A4I/GB+jzfJUJdWqtxrvDDeXnHbh77Ix4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784894594; c=relaxed/simple; bh=IOKygviKYsdzNDfvMZxPYjdbgMKODl/dsCbAkwiLDuY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=EgclxLbNRFOyhu5aq+4At0uA3ypUvu+Au3pR+AVymh9IUSrUiiU5vvdq1DarylqMV/1r63D4xMrUvjMaezmqFDl3ONrkqS8M8SKHw6mQ7lR+mTjzuamXt+bhD/Nk27TK3P5TmL3vsJhE9w3HpVjNWaClwTBQE5LWxSAXgOAIqAw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=s3zlxkg0; 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="s3zlxkg0" Received: by smtp.kernel.org (Postfix) with ESMTPS id B12BFC2BCB3; Fri, 24 Jul 2026 12:03:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1784894593; bh=IOKygviKYsdzNDfvMZxPYjdbgMKODl/dsCbAkwiLDuY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=s3zlxkg0YuTHni4IrbTZi9wAJEdMNadeiC6No/pyZVy7WS5eQANRXO6OoG/WNCIbR MuV9i44/EUasjZ+N2fvSoIZCq1YmD8GkcuZmA6kHjz+B/lOYIJHnb1Byf90XiDgDqO 8wNBVrnGHHRnxmoJdkoxk5mgN5zDgTK2FYGTXa7L5faSmck3MDDZXDcrAljkuRX1pO IGWvksqkXxQErfl8nmGW2Fjl8ajxZL2/udt3wz5mfWZFVCpGiEA02whQ3+3kKPZN6A L3lHBiVAce+7kgr+f/9Myxo+xfW2caI2dKKsmCq0SwYca9YiIua67guZBOgxkUfqcC 6z7WcgRJej25A== 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 8F88BC531C9; Fri, 24 Jul 2026 12:03:13 +0000 (UTC) From: Rodrigo Alencar via B4 Relay Date: Fri, 24 Jul 2026 13:03:11 +0100 Subject: [PATCH v2 1/6] dt-bindings: iio: dac: ad5696: add AD5673R/AD5677R support 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: quoted-printable Message-Id: <20260724-ad5686-extend-dev-support-v2-1-cfc2b30ce988@analog.com> References: <20260724-ad5686-extend-dev-support-v2-0-cfc2b30ce988@analog.com> In-Reply-To: <20260724-ad5686-extend-dev-support-v2-0-cfc2b30ce988@analog.com> To: Michael Auchter , linux@analog.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Michael Hennerich , Jonathan Cameron , David Lechner , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Rodrigo Alencar X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1784894592; l=860; i=rodrigo.alencar@analog.com; s=default; h=from:subject:message-id; bh=3HN8UocK8YBGgUj8JEQFaztjreh7vf2LXD3mgpedKpA=; b=/wcSbeRBuFVEHsoIErXWW987wFtIunrJVQLS9YMsw6nYJaBMUZdzA33LQXAdausLWJ5BFQ+T4 e788WyUXLFYB28wc8pHGUy93vDhu+k7O9LfkO/XM63g6tjuMEr+HiXB 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 From: Rodrigo Alencar Add compatible entries for AD5673R and AD5677R. These 16-channel devices have different bit resolutions so no fallback compatibles are used. Signed-off-by: Rodrigo Alencar Acked-by: Conor Dooley --- Documentation/devicetree/bindings/iio/dac/adi,ad5696.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ad5696.yaml b/Do= cumentation/devicetree/bindings/iio/dac/adi,ad5696.yaml index e10f8596f9d3..5a93edc976f0 100644 --- a/Documentation/devicetree/bindings/iio/dac/adi,ad5696.yaml +++ b/Documentation/devicetree/bindings/iio/dac/adi,ad5696.yaml @@ -19,7 +19,9 @@ properties: - adi,ad5337r - adi,ad5338r - adi,ad5671r + - adi,ad5673r - adi,ad5675r + - adi,ad5677r - adi,ad5691r - adi,ad5692r - adi,ad5693 --=20 2.43.0 From nobody Fri Jul 24 21:29:10 2026 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 3A217411FA1; Fri, 24 Jul 2026 12:03:14 +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=1784894594; cv=none; b=AQnKTaXYejw5qcFyFG2mxqupHllpmw2wkAzoZR1v+jVhROj+o0z3XAEa/2bt5tDWwnOmgqQbQlS4K9K0qjJJeeoHuloAhn1s17KB8OU1wdVbkdmctzzipnRyhYe1g1ORbNHrd7giugQ0QdgFfT1c5EYJ4MSJyOC6J2YlRV8B/JA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784894594; c=relaxed/simple; bh=W3tR44szyXvcfQX8J1s0kBMXIVVD4pdqptVgOWszjIY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ARXL15+0tVGNprZOhmohvYNb6GW5pIa3xFJ8MaRcGh/Ogmt9nMZmkoaOrRqqkWxw6ufUvdOlh5u0zwRq/F+af093F/S2hlr1qEHlxaKgZ4tz1yBbsE6qPT7OnBN7gSiksu+K+w0XIM0Zj26ZL/+nHAhxTjVgTuL7vLDaoQVm/Wg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eCG7NQZc; 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="eCG7NQZc" Received: by smtp.kernel.org (Postfix) with ESMTPS id C3D56C2BCC7; Fri, 24 Jul 2026 12:03:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1784894593; bh=W3tR44szyXvcfQX8J1s0kBMXIVVD4pdqptVgOWszjIY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=eCG7NQZcDyX4iOafSgX5+OTF+LTSEEalSAvNPxe02ZbV079N8gf/XY94Z8Pwlyo55 kgQY8i9iwQVRPK6TzZNRZ1Ezv8Bt8kijNyrEU2Xo6KW0V3U30lxM94JuNY+PLoJTFw IQQZAJ6YXYwUQZ+TaXiPYORyTlKRwlvE7Cys2YzTPkNIXF8ABr+nKRpYhxSvW9Ycmh 1g5L0U4EXynGx1YaZWoHnkx/va8rgZxxyK45ZZ704mYADZTnZidzwbSotHrSFK9uHJ 7da1DG3w0Jszpi6V80gPu8U+ir6LutSqxZPC51T9Z+oIUwPDQh8+tqU7rveARry18O WMYEXI4lMzD+w== 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 A1686C531F9; Fri, 24 Jul 2026 12:03:13 +0000 (UTC) From: Rodrigo Alencar via B4 Relay Date: Fri, 24 Jul 2026 13:03:12 +0100 Subject: [PATCH v2 2/6] iio: dac: ad5696: add AD5673R/AD5677R entries to of_match table 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: quoted-printable Message-Id: <20260724-ad5686-extend-dev-support-v2-2-cfc2b30ce988@analog.com> References: <20260724-ad5686-extend-dev-support-v2-0-cfc2b30ce988@analog.com> In-Reply-To: <20260724-ad5686-extend-dev-support-v2-0-cfc2b30ce988@analog.com> To: Michael Auchter , linux@analog.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Michael Hennerich , Jonathan Cameron , David Lechner , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Rodrigo Alencar X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1784894592; l=1114; i=rodrigo.alencar@analog.com; s=default; h=from:subject:message-id; bh=5Oxnj8pPzQue9O/xIA3Xd8dZvO/9iV+KIKkDlYyJfAE=; b=kBLV+Hb03n6ywm6cD88gfwkisa6vtI2zjXZ/T8bO5UQ8q3NMVbf6HT1guJm0HRgrfdXj4L954 D8hmwZLAvGSA/n4GA6apDKuz6CKNlRPxmUWgXxUCnWxduVCo5lSktyn 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 From: Rodrigo Alencar Populate of_match table with AD5673R/AD5677R entries, already supported by the driver and available in the id_table. Signed-off-by: Rodrigo Alencar --- drivers/iio/dac/ad5696-i2c.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/iio/dac/ad5696-i2c.c b/drivers/iio/dac/ad5696-i2c.c index 31439567f00f..4ddf2e151d47 100644 --- a/drivers/iio/dac/ad5696-i2c.c +++ b/drivers/iio/dac/ad5696-i2c.c @@ -104,7 +104,9 @@ static const struct of_device_id ad5686_of_match[] =3D { { .compatible =3D "adi,ad5337r", .data =3D &ad5337r_chip_info }, { .compatible =3D "adi,ad5338r", .data =3D &ad5338r_chip_info }, { .compatible =3D "adi,ad5671r", .data =3D &ad5672r_chip_info }, + { .compatible =3D "adi,ad5673r", .data =3D &ad5674r_chip_info }, { .compatible =3D "adi,ad5675r", .data =3D &ad5676r_chip_info }, + { .compatible =3D "adi,ad5677r", .data =3D &ad5679r_chip_info }, { .compatible =3D "adi,ad5691r", .data =3D &ad5681r_chip_info }, { .compatible =3D "adi,ad5692r", .data =3D &ad5682r_chip_info }, { .compatible =3D "adi,ad5693", .data =3D &ad5683_chip_info }, --=20 2.43.0 From nobody Fri Jul 24 21:29:10 2026 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 3A0C6411FA0; Fri, 24 Jul 2026 12:03:14 +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=1784894594; cv=none; b=mY6iPDbv6xN9h8kmh34/zTqjJghRidwgStkVaomH/qGAnn1TvJiDkQNGvq1CLtBApyGd4nbK2x0tnycj2q3cUfxGjP1/takmjcIe9WlVlfrePEb1eaZr95kL+8xRSmNeJwL8w/Rnkyr5nOBgVVDW67rxgWV2kQuTW0QIOuOugjE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784894594; c=relaxed/simple; bh=PautfhJ21skWgcmXc4dS2ZLa2nUW8ouG7TfVnowoPDo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Hy+FlyKsYsrHOKjnr9oTiyjZTcMzHJ0ymOvTGMUBEKtXmX6LU18i6HRxQIX6AaIAUnIu20VrMeolCiyE/TgA58GQTdX1DvilGdLMQpK8/NRuaPd0R9EqmQhqGUdu3McG7A5H4co6IGA7tC69seO0UoKPs1ois4DHZNq6KzlHy0Y= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Z3zTyf3J; 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="Z3zTyf3J" Received: by smtp.kernel.org (Postfix) with ESMTPS id D038DC2BCF7; Fri, 24 Jul 2026 12:03:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1784894593; bh=PautfhJ21skWgcmXc4dS2ZLa2nUW8ouG7TfVnowoPDo=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Z3zTyf3JrpGyTGMQwrX1FkUUvdpm6TpQh8FLvktrrQBotId6aBtOW8xnTI2wYMdn0 HJfs9mdc2bX1h03ljrxm+qgtblzkag2LguMGQB0pUgr8T764fuCeNuXtqX0/XkGyVt kLb7LMTYaO8TwfHXq68ifochAjQ8+T5j9nvmU/lTF094rH9aUUAQ3EKl/ThvzzYMVd 08Wirwk7VqKScA0FIJcCIe5XQkZwngZQxZmzpRlkQp2lqgiQfquvrQqLVqABicZ2q1 6ZDy+Z9AX7XYhBvBV/VfT7o+GNB9v8w9X1+TF9e19AR4mZUBhSWkQm0CZ2FY6lx5uk GYhre8/50z3lw== 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 B2746C53200; Fri, 24 Jul 2026 12:03:13 +0000 (UTC) From: Rodrigo Alencar via B4 Relay Date: Fri, 24 Jul 2026 13:03:13 +0100 Subject: [PATCH v2 3/6] iio: dac: ad5686: refactor device list and file header comments 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: quoted-printable Message-Id: <20260724-ad5686-extend-dev-support-v2-3-cfc2b30ce988@analog.com> References: <20260724-ad5686-extend-dev-support-v2-0-cfc2b30ce988@analog.com> In-Reply-To: <20260724-ad5686-extend-dev-support-v2-0-cfc2b30ce988@analog.com> To: Michael Auchter , linux@analog.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Michael Hennerich , Jonathan Cameron , David Lechner , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Rodrigo Alencar X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1784894592; l=3788; i=rodrigo.alencar@analog.com; s=default; h=from:subject:message-id; bh=o2YHmFSPNHfxwtoVvwK2R8/4/1vdStVyZFyqOCVnCto=; b=TfN4fMrTTF+iXIVpK9r0Y8PZN/XKQtGNiNkvoYlEUsbXWqHIod7XwG48s4T59lAp3iIlUZSDP VUi0NYXfByYB/Lqt2x/B6rSjWqZzQDjHdMp2bwBERv35pp2LX0JydNG 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 From: Rodrigo Alencar Refactor device list in Kconfig, sorting devices by channel count. Also, remove device description from file headers. One can rely on the ID table(s) to check for supported devices. AD5337R is ommited as it does not seem to exist, i.e. its documentation could not be found. Signed-off-by: Rodrigo Alencar --- drivers/iio/dac/Kconfig | 29 ++++++++++++++++++++++------- drivers/iio/dac/ad5686-spi.c | 5 +---- drivers/iio/dac/ad5686.c | 2 +- drivers/iio/dac/ad5696-i2c.c | 4 +--- 4 files changed, 25 insertions(+), 15 deletions(-) diff --git a/drivers/iio/dac/Kconfig b/drivers/iio/dac/Kconfig index d6d560c09e25..3ae997939ff5 100644 --- a/drivers/iio/dac/Kconfig +++ b/drivers/iio/dac/Kconfig @@ -251,9 +251,16 @@ config AD5686_SPI depends on SPI select AD5686 help - Say yes here to build support for Analog Devices AD5672R, AD5674R, - AD5676, AD5676R, AD5679R, AD5684, AD5684R, AD5684R, AD5685R, AD5686, - AD5686R Voltage Output Digital to Analog Converter. + Say yes here to build support for Analog Devices Voltage Output + Digital to Analog Converters: + - Single-channel: + AD5310R, AD5681R, AD5682R, AD5683, AD5683R + - Quad-channel: + AD5684, AD5684R, AD5685R, AD5686, AD5686R + - 8-channel: + AD5672R, AD5676, AD5676R + - 16-channel: + AD5674R, AD5679R =20 To compile this driver as a module, choose M here: the module will be called ad5686. @@ -263,10 +270,18 @@ config AD5696_I2C depends on I2C select AD5686 help - Say yes here to build support for Analog Devices AD5311R, AD5337, - AD5338R, AD5671R, AD5673R, AD5675R, AD5677R, AD5691R, AD5692R, AD5693, - AD5693R, AD5694, AD5694R, AD5695R, AD5696, and AD5696R Digital to - Analog converters. + Say yes here to build support for Analog Devices Voltage Output + Digital to Analog Converters: + - Single-channel: + AD5311R, AD5691R, AD5692R, AD5693, AD5693R + - Dual-channel: + AD5338R + - Quad-channel: + AD5694, AD5694R, AD5695R, AD5696, AD5696R + - 8-channel: + AD5671R, AD5675R + - 16-channel: + AD5673R, AD5677R =20 To compile this driver as a module, choose M here: the module will be called ad5696. diff --git a/drivers/iio/dac/ad5686-spi.c b/drivers/iio/dac/ad5686-spi.c index 227ddb269669..2689d66c7c20 100644 --- a/drivers/iio/dac/ad5686-spi.c +++ b/drivers/iio/dac/ad5686-spi.c @@ -1,9 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 /* - * AD5672R, AD5674R, AD5676, AD5676R, AD5679R, - * AD5681R, AD5682R, AD5683, AD5683R, AD5684, - * AD5684R, AD5685R, AD5686, AD5686R - * Digital to analog converters driver + * SPI driver for AD5686 and similar Digital to Analog Converters * * Copyright 2018 Analog Devices Inc. */ diff --git a/drivers/iio/dac/ad5686.c b/drivers/iio/dac/ad5686.c index 873dfb5b9107..e2beba6d54b1 100644 --- a/drivers/iio/dac/ad5686.c +++ b/drivers/iio/dac/ad5686.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 /* - * AD5686R, AD5685R, AD5684R Digital to analog converters driver + * Core driver for AD5686 and similar Digital to Analog Converters * * Copyright 2011 Analog Devices Inc. */ diff --git a/drivers/iio/dac/ad5696-i2c.c b/drivers/iio/dac/ad5696-i2c.c index 4ddf2e151d47..4a249f9cdb8f 100644 --- a/drivers/iio/dac/ad5696-i2c.c +++ b/drivers/iio/dac/ad5696-i2c.c @@ -1,8 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 /* - * AD5338R, AD5671R, AD5673R, AD5675R, AD5677R, AD5691R, AD5692R, AD5693, - * AD5693R, AD5694, AD5694R, AD5695R, AD5696, AD5696R - * Digital to analog converters driver + * I2C driver for AD5696 and similar Digital to Analog Converters * * Copyright 2018 Analog Devices Inc. */ --=20 2.43.0 From nobody Fri Jul 24 21:29:10 2026 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 39EF6411F9C; Fri, 24 Jul 2026 12:03:14 +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=1784894594; cv=none; b=ZMvu26pyfeYOe27HFLmHy9P/9h4L/p7ea8pixh7yJnXUgq1ceetfChvMa+IyyMiDnFjYF2rFnQILbI2qmtEScJKc0KMs7U3PCLBU1zd06bzdNFGvQ0tkK7aaf0gJalNSl3NdJyPyv8ZKvU3+BqZM0ME9IvO7c1OzdC/NqRlBHGA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784894594; c=relaxed/simple; bh=40cvMlvgwmZriZTlerX6U1ckF3bUC4+tpjdJ8BUKE/I=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BvtY3S7BD79hW4Wx8UCG/6VkAYEPbNHqUBte04KzJ/MFh9nGzKO55vltjTzR4WlO9BtjSgaaYqLQb8c8xF2zxoS/ewAMfl2stczM3FCTPaNNr3U+YubDSBhzNpnaQNggeJDaZ74DORtrvnKSFHhaImL4IbBDApomSSj4vawNDsY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=srOEuYUF; 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="srOEuYUF" Received: by smtp.kernel.org (Postfix) with ESMTPS id DF080C4AF0D; Fri, 24 Jul 2026 12:03:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1784894594; bh=40cvMlvgwmZriZTlerX6U1ckF3bUC4+tpjdJ8BUKE/I=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=srOEuYUF5Z/6WYAWFfNFssaqrcYNL7b25DE6EgLNvUGhSm51DiCRxZDftCCXPpPAl qwvgFYspsBTNMOuFhmGIwxC/mPLJsCuxjCmtmyx2rMp/MoZk+fL/M4wNwoi42yPHCN 8kEJ/bsXIzKkXpuc1iuC3n4nc9PoWcUeL0bxg55+0eRxuyohLv8UqQal+AqmJUdHt0 EYoCWa0MySA7MMyg2JS1dBJdsI9oQN6M7coSJpsmM+ayEIOHct6BEkwSa68g7d28ZY k7LAyCaCiql5BhVeXJ3LOjvXVob+gt1MP/4NOiGLO4VAmKuQQrSTSlLa8jwMkEQiGH hQ11CPv47wuGQ== 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 C1E37C53216; Fri, 24 Jul 2026 12:03:13 +0000 (UTC) From: Rodrigo Alencar via B4 Relay Date: Fri, 24 Jul 2026 13:03:14 +0100 Subject: [PATCH v2 4/6] dt-bindings: iio: dac: ad5696: extend device support 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: quoted-printable Message-Id: <20260724-ad5686-extend-dev-support-v2-4-cfc2b30ce988@analog.com> References: <20260724-ad5686-extend-dev-support-v2-0-cfc2b30ce988@analog.com> In-Reply-To: <20260724-ad5686-extend-dev-support-v2-0-cfc2b30ce988@analog.com> To: Michael Auchter , linux@analog.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Michael Hennerich , Jonathan Cameron , David Lechner , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Rodrigo Alencar X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1784894592; l=1287; i=rodrigo.alencar@analog.com; s=default; h=from:subject:message-id; bh=63m1LwLWVeApaoTgcE/eNkXUbzs9WDM/QX6+A1pEnRM=; b=dMwYoTNaaVtwfZfGUbmtrZbjssG+7EMmIBgDhujc456oaGr7NZaVGCAXPaNqosSKndyFzqj8X jKNlXQ8bpPlBys41tTQzEwxzSgOVV9j6ECCYyYK66IU4unCpnipaqGP 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 From: Rodrigo Alencar Add support for AD5316R, AD5675 and AD5697R. These devices have different bit resolutions or different number of channels so no fallback compatibles are used. Signed-off-by: Rodrigo Alencar Acked-by: Conor Dooley --- Documentation/devicetree/bindings/iio/dac/adi,ad5696.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ad5696.yaml b/Do= cumentation/devicetree/bindings/iio/dac/adi,ad5696.yaml index 5a93edc976f0..835fa21c474e 100644 --- a/Documentation/devicetree/bindings/iio/dac/adi,ad5696.yaml +++ b/Documentation/devicetree/bindings/iio/dac/adi,ad5696.yaml @@ -16,10 +16,12 @@ properties: compatible: enum: - adi,ad5311r + - adi,ad5316r - adi,ad5337r - adi,ad5338r - adi,ad5671r - adi,ad5673r + - adi,ad5675 - adi,ad5675r - adi,ad5677r - adi,ad5691r @@ -31,6 +33,7 @@ properties: - adi,ad5695r - adi,ad5696 - adi,ad5696r + - adi,ad5697r =20 reg: maxItems: 1 @@ -86,6 +89,7 @@ allOf: compatible: contains: enum: + - adi,ad5675 - adi,ad5693 - adi,ad5694 - adi,ad5696 --=20 2.43.0 From nobody Fri Jul 24 21:29:10 2026 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 7A1D5414A37; Fri, 24 Jul 2026 12:03:14 +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=1784894594; cv=none; b=AAKizbAoj5kdnaAjljsB+IkHBqVu0FShVRQJKA9hOkgRuv1MaqBGw1EZfJ70nULsyHf0dAI90ECUNxKiPH6fM/15H85JO4Q3FkgU6nNQ7a/NFAtToYf44jPEbaYKRb2MAlaSohCXMm3x94zynIuYwx1EyLyiLPpY887yCvNR/m0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784894594; c=relaxed/simple; bh=xQ7i5O7xzqtX6gPknQYlgjTSO65uAy4SX/x/+L0kdKM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=dpMH8EKpSSh9DM/M7TGLik4vq2DYxQ7NSR6DptbqMgfosh62VgnispfxgSarNtV3Pb2yG9sx9JCOvEPpX9vYWa7a7Tf2VRifODf8gykdiN4gAscS7cm0WW3cXjTHlyqnhPQSSNj2SlmgEp0SNONl8F1OSqtmk7wtgdLx6N8mmxg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tiy8dduX; 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="tiy8dduX" Received: by smtp.kernel.org (Postfix) with ESMTPS id E5B65C2BD05; Fri, 24 Jul 2026 12:03:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1784894593; bh=xQ7i5O7xzqtX6gPknQYlgjTSO65uAy4SX/x/+L0kdKM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=tiy8dduX3ffkQlUtnC1mBRmhGqr3KVWNt8YjO0CzDTwxJSgN1QmPMBOO2XDFgkHIA 3fr2JoPb9MWcVDWu36m4n6Bx5Crxat67BAfX+Nh/0qY+o2GsKAcvvo8SD0vLzcDvWZ VWRjQV6z4H+W1OgnoCRZjLM42qlZXLmCURzeYGCcqmcZu5tKdvl2nYk8DY7uUKT9Nh o3/Y3riniWZIXbF+TIOgifbBnfHD4pDdcHEPpNHxiod0z2IOcXp3+yczCRDfKCehlc irnqj615G/3GJriz4/+yXTQISBzxWuGISXukQzu6M/JMrB4N14PoBFRV8RbpAawZvK B4S0zXlN8NDKw== 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 D2406C53219; Fri, 24 Jul 2026 12:03:13 +0000 (UTC) From: Rodrigo Alencar via B4 Relay Date: Fri, 24 Jul 2026 13:03:15 +0100 Subject: [PATCH v2 5/6] dt-bindings: iio: dac: ad5686: extend device support 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: quoted-printable Message-Id: <20260724-ad5686-extend-dev-support-v2-5-cfc2b30ce988@analog.com> References: <20260724-ad5686-extend-dev-support-v2-0-cfc2b30ce988@analog.com> In-Reply-To: <20260724-ad5686-extend-dev-support-v2-0-cfc2b30ce988@analog.com> To: Michael Auchter , linux@analog.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Michael Hennerich , Jonathan Cameron , David Lechner , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Rodrigo Alencar , Conor Dooley X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1784894592; l=2105; i=rodrigo.alencar@analog.com; s=default; h=from:subject:message-id; bh=Ns24MscU2vZDNQferz6p0S9pqqd8IKrb5WBkwEhcXhc=; b=0uz5AU+C1uivsYzd4P0UnxNx2L8ua/yYz4ztwbhVNz9DcAraP03l0WP0pcXzNlZKiE2Og2R8Y GxIMxWR67BLDXLsGIyhQwnMp8Okwaa1z/AE0B0THASDP/GW1ZA3AwJs 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 From: Rodrigo Alencar Add compatible entries for AD5313R, AD5317R, AD5674, AD5679, AD5687, AD5687R, AD5689, AD5689R. These devices have unique combination of channel count, bit resolution and supported command set, so that fallback compatibles are not used. Also, a small copy-and-paste error is fixed to the title field. Acked-by: Conor Dooley Signed-off-by: Rodrigo Alencar --- Documentation/devicetree/bindings/iio/dac/adi,ad5686.yaml | 14 +++++++++++= ++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ad5686.yaml b/Do= cumentation/devicetree/bindings/iio/dac/adi,ad5686.yaml index 02e8c78e36d3..d1bb09054440 100644 --- a/Documentation/devicetree/bindings/iio/dac/adi,ad5686.yaml +++ b/Documentation/devicetree/bindings/iio/dac/adi,ad5686.yaml @@ -4,7 +4,7 @@ $id: http://devicetree.org/schemas/iio/dac/adi,ad5686.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# =20 -title: Analog Devices AD5360 and similar SPI DACs +title: Analog Devices AD5686 and similar SPI DACs =20 maintainers: - Michael Hennerich @@ -14,10 +14,14 @@ properties: compatible: enum: - adi,ad5310r + - adi,ad5313r + - adi,ad5317r - adi,ad5672r + - adi,ad5674 - adi,ad5674r - adi,ad5676 - adi,ad5676r + - adi,ad5679 - adi,ad5679r - adi,ad5681r - adi,ad5682r @@ -28,6 +32,10 @@ properties: - adi,ad5685r - adi,ad5686 - adi,ad5686r + - adi,ad5687 + - adi,ad5687r + - adi,ad5689 + - adi,ad5689r =20 reg: maxItems: 1 @@ -84,10 +92,14 @@ allOf: compatible: contains: enum: + - adi,ad5674 - adi,ad5676 + - adi,ad5679 - adi,ad5683 - adi,ad5684 - adi,ad5686 + - adi,ad5687 + - adi,ad5689 then: required: - vref-supply --=20 2.43.0 From nobody Fri Jul 24 21:29:10 2026 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 7A2BE414DCB; Fri, 24 Jul 2026 12:03:14 +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=1784894594; cv=none; b=dCUX7AKCX2smkUZPeMxqYqmgwXxleCzU+INdt627+tgVIj8TGesZNVQfGak0Ka9M9Pvxi3vt/kQR/m1TlA6MrigwPFamRYVBcK9Ga9iFY1bWH9m4+RmTYbIfShGEeqa1GAR9m0xUuxPNeEM59RZQTQDxY86aYFUYtK9FBiUMMNA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784894594; c=relaxed/simple; bh=tnGDiskgp+7aCQ7/TOqAAUPC2zOTii+6FY8zASwETVQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Anc2qV9cdxdTx1nHdQxA6jmYf6AWbhC3MzmgnSR9AdmGDM3OGXSV0GkDOy5rbtVyeW4PG9k2SvarGeh8qFEWQc5EX0Tl8ccdmXSzQevk3JELmVMYmGzl4Hb3v/0DDATyR2rWeko87QQWAw5Ei6vPnAFpDkUQXmNoIwnZN6gDfac= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=qA/rjhoX; 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="qA/rjhoX" Received: by smtp.kernel.org (Postfix) with ESMTPS id 08041C4AF15; Fri, 24 Jul 2026 12:03:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1784894594; bh=tnGDiskgp+7aCQ7/TOqAAUPC2zOTii+6FY8zASwETVQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=qA/rjhoXbACpvsxVFpdd9IAddf6REz4XEkPvOEenIrXGrUs67jEzQqBC7PhEBG0NV bvSXrvy9eLDVe/d00zsUYmZUO0RgfSUPP0d9Akw/m0G9n66rNnflB4xV4jZ0lZ19gC CYD+CmhUIj6hv3HwNKgrahV2XgGZ8UY4o2G7pjABTD9MNPkWNBeOkJ0fMq9PO69c/Q fzTNYD3qJEa55xyJAyKIHH8u3c5v/vtzZhiAIwgCkA3lLvn7bsdsYEIzr27qVGs83u ziGNgyccK2aY8iFcJcdVcBrHf4EB9pDPdydfSzrZdenTpLWxsEFbHfYITRZZzJuhJD 859ysId90xnlQ== 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 E7323C531F9; Fri, 24 Jul 2026 12:03:13 +0000 (UTC) From: Rodrigo Alencar via B4 Relay Date: Fri, 24 Jul 2026 13:03:16 +0100 Subject: [PATCH v2 6/6] iio: dac: ad5686: extend device support with new parts 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: quoted-printable Message-Id: <20260724-ad5686-extend-dev-support-v2-6-cfc2b30ce988@analog.com> References: <20260724-ad5686-extend-dev-support-v2-0-cfc2b30ce988@analog.com> In-Reply-To: <20260724-ad5686-extend-dev-support-v2-0-cfc2b30ce988@analog.com> To: Michael Auchter , linux@analog.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Michael Hennerich , Jonathan Cameron , David Lechner , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Rodrigo Alencar X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1784894592; l=12031; i=rodrigo.alencar@analog.com; s=default; h=from:subject:message-id; bh=r4tTUPqjyaUCmzwMhrMqRzy8M9AM9PAmGC+d3VXToU8=; b=H4+5YhZ8Fl2fOCs4vwCDyD+NFeekiMEtVENPpy8smPQlKXrCAqGgmVJAZz1MjwaUOFJxrXNeR 1bVHtbI8jZSDhz23kO05o1Xgh1gzPkz8vXxkEp4Y/Ln+DEmQoRDK8Uc 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 From: Rodrigo Alencar Add support for AD5313R, AD5317R, AD5674, AD5679, AD5687, AD5687R, AD5689, AD5689R to the AD5686 SPI driver. Also adding support for AD5316R, AD5675, AD5697R to the AD5696 I2C driver. This includes the creation of seven chip info struct instances and reuse of existing ones. Signed-off-by: Rodrigo Alencar --- drivers/iio/dac/Kconfig | 12 ++++++---- drivers/iio/dac/ad5686-spi.c | 16 +++++++++++++ drivers/iio/dac/ad5686.c | 55 ++++++++++++++++++++++++++++++++++++++++= ++++ drivers/iio/dac/ad5686.h | 7 ++++++ drivers/iio/dac/ad5696-i2c.c | 6 +++++ 5 files changed, 91 insertions(+), 5 deletions(-) diff --git a/drivers/iio/dac/Kconfig b/drivers/iio/dac/Kconfig index 3ae997939ff5..18a27785e28b 100644 --- a/drivers/iio/dac/Kconfig +++ b/drivers/iio/dac/Kconfig @@ -255,12 +255,14 @@ config AD5686_SPI Digital to Analog Converters: - Single-channel: AD5310R, AD5681R, AD5682R, AD5683, AD5683R + - Dual-channel: + AD5313R, AD5687, AD5687R, AD5689, AD5689R - Quad-channel: - AD5684, AD5684R, AD5685R, AD5686, AD5686R + AD5317R, AD5684, AD5684R, AD5685R, AD5686, AD5686R - 8-channel: AD5672R, AD5676, AD5676R - 16-channel: - AD5674R, AD5679R + AD5674, AD5674R, AD5679, AD5679R =20 To compile this driver as a module, choose M here: the module will be called ad5686. @@ -275,11 +277,11 @@ config AD5696_I2C - Single-channel: AD5311R, AD5691R, AD5692R, AD5693, AD5693R - Dual-channel: - AD5338R + AD5338R, AD5697R - Quad-channel: - AD5694, AD5694R, AD5695R, AD5696, AD5696R + AD5316R, AD5694, AD5694R, AD5695R, AD5696, AD5696R - 8-channel: - AD5671R, AD5675R + AD5671R, AD5675, AD5675R - 16-channel: AD5673R, AD5677R =20 diff --git a/drivers/iio/dac/ad5686-spi.c b/drivers/iio/dac/ad5686-spi.c index 2689d66c7c20..2a09b448acd4 100644 --- a/drivers/iio/dac/ad5686-spi.c +++ b/drivers/iio/dac/ad5686-spi.c @@ -175,10 +175,14 @@ static int ad5686_spi_probe(struct spi_device *spi) =20 static const struct spi_device_id ad5686_spi_id[] =3D { { .name =3D "ad5310r", .driver_data =3D (kernel_ulong_t)&ad5310r_chip_inf= o }, + { .name =3D "ad5313r", .driver_data =3D (kernel_ulong_t)&ad5338r_chip_inf= o }, + { .name =3D "ad5317r", .driver_data =3D (kernel_ulong_t)&ad5317r_chip_inf= o }, { .name =3D "ad5672r", .driver_data =3D (kernel_ulong_t)&ad5672r_chip_inf= o }, + { .name =3D "ad5674", .driver_data =3D (kernel_ulong_t)&ad5674_chip_info= }, { .name =3D "ad5674r", .driver_data =3D (kernel_ulong_t)&ad5674r_chip_inf= o }, { .name =3D "ad5676", .driver_data =3D (kernel_ulong_t)&ad5676_chip_info= }, { .name =3D "ad5676r", .driver_data =3D (kernel_ulong_t)&ad5676r_chip_inf= o }, + { .name =3D "ad5679", .driver_data =3D (kernel_ulong_t)&ad5679_chip_info= }, { .name =3D "ad5679r", .driver_data =3D (kernel_ulong_t)&ad5679r_chip_inf= o }, { .name =3D "ad5681r", .driver_data =3D (kernel_ulong_t)&ad5681r_chip_inf= o }, { .name =3D "ad5682r", .driver_data =3D (kernel_ulong_t)&ad5682r_chip_inf= o }, @@ -190,16 +194,24 @@ static const struct spi_device_id ad5686_spi_id[] =3D= { { .name =3D "ad5685r", .driver_data =3D (kernel_ulong_t)&ad5685r_chip_inf= o }, { .name =3D "ad5686", .driver_data =3D (kernel_ulong_t)&ad5686_chip_info= }, { .name =3D "ad5686r", .driver_data =3D (kernel_ulong_t)&ad5686r_chip_inf= o }, + { .name =3D "ad5687", .driver_data =3D (kernel_ulong_t)&ad5687_chip_info= }, + { .name =3D "ad5687r", .driver_data =3D (kernel_ulong_t)&ad5687r_chip_inf= o }, + { .name =3D "ad5689", .driver_data =3D (kernel_ulong_t)&ad5689_chip_info= }, + { .name =3D "ad5689r", .driver_data =3D (kernel_ulong_t)&ad5689r_chip_inf= o }, { } }; MODULE_DEVICE_TABLE(spi, ad5686_spi_id); =20 static const struct of_device_id ad5686_of_match[] =3D { { .compatible =3D "adi,ad5310r", .data =3D &ad5310r_chip_info }, + { .compatible =3D "adi,ad5313r", .data =3D &ad5338r_chip_info }, + { .compatible =3D "adi,ad5317r", .data =3D &ad5317r_chip_info }, { .compatible =3D "adi,ad5672r", .data =3D &ad5672r_chip_info }, + { .compatible =3D "adi,ad5674", .data =3D &ad5674_chip_info }, { .compatible =3D "adi,ad5674r", .data =3D &ad5674r_chip_info }, { .compatible =3D "adi,ad5676", .data =3D &ad5676_chip_info }, { .compatible =3D "adi,ad5676r", .data =3D &ad5676r_chip_info }, + { .compatible =3D "adi,ad5679", .data =3D &ad5679_chip_info }, { .compatible =3D "adi,ad5679r", .data =3D &ad5679r_chip_info }, { .compatible =3D "adi,ad5681r", .data =3D &ad5681r_chip_info }, { .compatible =3D "adi,ad5682r", .data =3D &ad5682r_chip_info }, @@ -210,6 +222,10 @@ static const struct of_device_id ad5686_of_match[] =3D= { { .compatible =3D "adi,ad5685r", .data =3D &ad5685r_chip_info }, { .compatible =3D "adi,ad5686", .data =3D &ad5686_chip_info }, { .compatible =3D "adi,ad5686r", .data =3D &ad5686r_chip_info }, + { .compatible =3D "adi,ad5687", .data =3D &ad5687_chip_info }, + { .compatible =3D "adi,ad5687r", .data =3D &ad5687r_chip_info }, + { .compatible =3D "adi,ad5689", .data =3D &ad5689_chip_info }, + { .compatible =3D "adi,ad5689r", .data =3D &ad5689r_chip_info }, { } }; MODULE_DEVICE_TABLE(of, ad5686_of_match); diff --git a/drivers/iio/dac/ad5686.c b/drivers/iio/dac/ad5686.c index e2beba6d54b1..0cc1c9c22a28 100644 --- a/drivers/iio/dac/ad5686.c +++ b/drivers/iio/dac/ad5686.c @@ -409,8 +409,11 @@ DECLARE_AD5683_CHANNELS(ad5683r_channels, 16, 0); /* dual-channel */ DECLARE_AD5338_CHANNELS(ad5337r_channels, 8, 8); DECLARE_AD5338_CHANNELS(ad5338r_channels, 10, 6); +DECLARE_AD5338_CHANNELS(ad5687r_channels, 12, 4); +DECLARE_AD5338_CHANNELS(ad5689r_channels, 16, 0); =20 /* quad-channel */ +DECLARE_AD5686_CHANNELS(ad5317r_channels, 10, 6); DECLARE_AD5686_CHANNELS(ad5684r_channels, 12, 4); DECLARE_AD5686_CHANNELS(ad5685r_channels, 14, 2); DECLARE_AD5686_CHANNELS(ad5686r_channels, 16, 0); @@ -486,6 +489,44 @@ const struct ad5686_chip_info ad5338r_chip_info =3D { }; EXPORT_SYMBOL_NS_GPL(ad5338r_chip_info, "IIO_AD5686"); =20 +const struct ad5686_chip_info ad5687_chip_info =3D { + .channels =3D ad5687r_channels, + .num_channels =3D 2, + .regmap_type =3D AD5686_REGMAP, +}; +EXPORT_SYMBOL_NS_GPL(ad5687_chip_info, "IIO_AD5686"); + +const struct ad5686_chip_info ad5687r_chip_info =3D { + .channels =3D ad5687r_channels, + .int_vref_mv =3D 2500, + .num_channels =3D 2, + .regmap_type =3D AD5686_REGMAP, +}; +EXPORT_SYMBOL_NS_GPL(ad5687r_chip_info, "IIO_AD5686"); + +const struct ad5686_chip_info ad5689_chip_info =3D { + .channels =3D ad5689r_channels, + .num_channels =3D 2, + .regmap_type =3D AD5686_REGMAP, +}; +EXPORT_SYMBOL_NS_GPL(ad5689_chip_info, "IIO_AD5686"); + +const struct ad5686_chip_info ad5689r_chip_info =3D { + .channels =3D ad5689r_channels, + .int_vref_mv =3D 2500, + .num_channels =3D 2, + .regmap_type =3D AD5686_REGMAP, +}; +EXPORT_SYMBOL_NS_GPL(ad5689r_chip_info, "IIO_AD5686"); + +const struct ad5686_chip_info ad5317r_chip_info =3D { + .channels =3D ad5317r_channels, + .int_vref_mv =3D 2500, + .num_channels =3D 4, + .regmap_type =3D AD5686_REGMAP, +}; +EXPORT_SYMBOL_NS_GPL(ad5317r_chip_info, "IIO_AD5686"); + const struct ad5686_chip_info ad5684_chip_info =3D { .channels =3D ad5684r_channels, .num_channels =3D 4, @@ -547,6 +588,13 @@ const struct ad5686_chip_info ad5676r_chip_info =3D { }; EXPORT_SYMBOL_NS_GPL(ad5676r_chip_info, "IIO_AD5686"); =20 +const struct ad5686_chip_info ad5674_chip_info =3D { + .channels =3D ad5674r_channels, + .num_channels =3D 16, + .regmap_type =3D AD5686_REGMAP, +}; +EXPORT_SYMBOL_NS_GPL(ad5674_chip_info, "IIO_AD5686"); + const struct ad5686_chip_info ad5674r_chip_info =3D { .channels =3D ad5674r_channels, .int_vref_mv =3D 2500, @@ -555,6 +603,13 @@ const struct ad5686_chip_info ad5674r_chip_info =3D { }; EXPORT_SYMBOL_NS_GPL(ad5674r_chip_info, "IIO_AD5686"); =20 +const struct ad5686_chip_info ad5679_chip_info =3D { + .channels =3D ad5679r_channels, + .num_channels =3D 16, + .regmap_type =3D AD5686_REGMAP, +}; +EXPORT_SYMBOL_NS_GPL(ad5679_chip_info, "IIO_AD5686"); + const struct ad5686_chip_info ad5679r_chip_info =3D { .channels =3D ad5679r_channels, .int_vref_mv =3D 2500, diff --git a/drivers/iio/dac/ad5686.h b/drivers/iio/dac/ad5686.h index c1222ef83a4f..482bc70515f7 100644 --- a/drivers/iio/dac/ad5686.h +++ b/drivers/iio/dac/ad5686.h @@ -106,8 +106,13 @@ extern const struct ad5686_chip_info ad5683r_chip_info; /* dual-channel instances */ extern const struct ad5686_chip_info ad5337r_chip_info; extern const struct ad5686_chip_info ad5338r_chip_info; +extern const struct ad5686_chip_info ad5687_chip_info; +extern const struct ad5686_chip_info ad5687r_chip_info; +extern const struct ad5686_chip_info ad5689_chip_info; +extern const struct ad5686_chip_info ad5689r_chip_info; =20 /* quad-channel instances */ +extern const struct ad5686_chip_info ad5317r_chip_info; extern const struct ad5686_chip_info ad5684_chip_info; extern const struct ad5686_chip_info ad5684r_chip_info; extern const struct ad5686_chip_info ad5685r_chip_info; @@ -120,7 +125,9 @@ extern const struct ad5686_chip_info ad5676_chip_info; extern const struct ad5686_chip_info ad5676r_chip_info; =20 /* 16-channel instances */ +extern const struct ad5686_chip_info ad5674_chip_info; extern const struct ad5686_chip_info ad5674r_chip_info; +extern const struct ad5686_chip_info ad5679_chip_info; extern const struct ad5686_chip_info ad5679r_chip_info; =20 /** diff --git a/drivers/iio/dac/ad5696-i2c.c b/drivers/iio/dac/ad5696-i2c.c index 4a249f9cdb8f..bffe60452c34 100644 --- a/drivers/iio/dac/ad5696-i2c.c +++ b/drivers/iio/dac/ad5696-i2c.c @@ -78,10 +78,12 @@ static int ad5686_i2c_probe(struct i2c_client *i2c) =20 static const struct i2c_device_id ad5686_i2c_id[] =3D { { .name =3D "ad5311r", .driver_data =3D (kernel_ulong_t)&ad5311r_chip_inf= o }, + { .name =3D "ad5316r", .driver_data =3D (kernel_ulong_t)&ad5317r_chip_inf= o }, { .name =3D "ad5337r", .driver_data =3D (kernel_ulong_t)&ad5337r_chip_inf= o }, { .name =3D "ad5338r", .driver_data =3D (kernel_ulong_t)&ad5338r_chip_inf= o }, { .name =3D "ad5671r", .driver_data =3D (kernel_ulong_t)&ad5672r_chip_inf= o }, { .name =3D "ad5673r", .driver_data =3D (kernel_ulong_t)&ad5674r_chip_inf= o }, + { .name =3D "ad5675", .driver_data =3D (kernel_ulong_t)&ad5676_chip_info= }, { .name =3D "ad5675r", .driver_data =3D (kernel_ulong_t)&ad5676r_chip_inf= o }, { .name =3D "ad5677r", .driver_data =3D (kernel_ulong_t)&ad5679r_chip_inf= o }, { .name =3D "ad5691r", .driver_data =3D (kernel_ulong_t)&ad5681r_chip_inf= o }, @@ -93,16 +95,19 @@ static const struct i2c_device_id ad5686_i2c_id[] =3D { { .name =3D "ad5695r", .driver_data =3D (kernel_ulong_t)&ad5685r_chip_inf= o }, { .name =3D "ad5696", .driver_data =3D (kernel_ulong_t)&ad5686_chip_info= }, { .name =3D "ad5696r", .driver_data =3D (kernel_ulong_t)&ad5686r_chip_inf= o }, + { .name =3D "ad5697r", .driver_data =3D (kernel_ulong_t)&ad5687r_chip_inf= o }, { } }; MODULE_DEVICE_TABLE(i2c, ad5686_i2c_id); =20 static const struct of_device_id ad5686_of_match[] =3D { { .compatible =3D "adi,ad5311r", .data =3D &ad5311r_chip_info }, + { .compatible =3D "adi,ad5316r", .data =3D &ad5317r_chip_info }, { .compatible =3D "adi,ad5337r", .data =3D &ad5337r_chip_info }, { .compatible =3D "adi,ad5338r", .data =3D &ad5338r_chip_info }, { .compatible =3D "adi,ad5671r", .data =3D &ad5672r_chip_info }, { .compatible =3D "adi,ad5673r", .data =3D &ad5674r_chip_info }, + { .compatible =3D "adi,ad5675", .data =3D &ad5676_chip_info }, { .compatible =3D "adi,ad5675r", .data =3D &ad5676r_chip_info }, { .compatible =3D "adi,ad5677r", .data =3D &ad5679r_chip_info }, { .compatible =3D "adi,ad5691r", .data =3D &ad5681r_chip_info }, @@ -114,6 +119,7 @@ static const struct of_device_id ad5686_of_match[] =3D { { .compatible =3D "adi,ad5695r", .data =3D &ad5685r_chip_info }, { .compatible =3D "adi,ad5696", .data =3D &ad5686_chip_info }, { .compatible =3D "adi,ad5696r", .data =3D &ad5686r_chip_info }, + { .compatible =3D "adi,ad5697r", .data =3D &ad5687r_chip_info }, { } }; MODULE_DEVICE_TABLE(of, ad5686_of_match); --=20 2.43.0