From nobody Wed Feb 11 04:00:50 2026 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (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 CAEE626F288 for ; Tue, 10 Feb 2026 13:51:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770731479; cv=none; b=JTudL82fG6zkK/0CBSM6wWMtGngIHrINho7KjoWqTzwEDbi2IQb9qNRy4lYas20MB//zLlUKwFKj+HPo6yux8dktNPPEh+TtQ3Sy3YW96GN2Sy7AGMNu/T3nRSYnsZbFD2OuEFS2dUm4NQKq10n/5flGEO/JzQ3sQ730AwOZ/UA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770731479; c=relaxed/simple; bh=MxMljzlANYj2yqu4tNqaHx4w1IsklpPRaDv0QCXwfkU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Gf0O7hRLNyKhfWMhMXeMZEmUNEHXhVuluJbWt1AP8OTY+Umvtcfch2+wyI8g/O0c8avYAl163O7iojvUCfW3ZPsG9XxLxER1jSDqRXrdXXmnYHAAJ2GTlfwJRWNVeiGf8ZDTOPq/v+Fl3udn948y8CJYRq0khb64Brzd7+7fiLk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1vpo93-0005dP-I2; Tue, 10 Feb 2026 14:51:13 +0100 Received: from dude04.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::ac] helo=dude04) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vpo92-0005dB-0s; Tue, 10 Feb 2026 14:51:12 +0100 Received: from ore by dude04 with local (Exim 4.98.2) (envelope-from ) id 1vpo92-00000008VOM-3f0W; Tue, 10 Feb 2026 14:51:12 +0100 From: Oleksij Rempel To: Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: David Jander , Oleksij Rempel , Andy Shevchenko , kernel@pengutronix.de, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, Andy Shevchenko , David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= Subject: [PATCH v6 08/12] iio: dac: ds4424: add DS4402/DS4404 device IDs Date: Tue, 10 Feb 2026 14:51:06 +0100 Message-ID: <20260210135110.2027073-9-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260210135110.2027073-1-o.rempel@pengutronix.de> References: <20260210135110.2027073-1-o.rempel@pengutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: David Jander Add I2C/OF IDs for DS4402 and DS4404 and set the correct channel count. Follow-up changes add per-variant scaling based on external Rfs. Co-developed-by: Oleksij Rempel Signed-off-by: Oleksij Rempel Signed-off-by: David Jander Reviewed-by: Andy Shevchenko --- changes v6: - assign predictable name to indio_dev->name. changes v5: - no changes changes v4: - no changes changes v3: - Reset author to David Jander and added Co-developed-by tag for Oleksij Rempel to clarify roles changes v2: - No changes. --- drivers/iio/dac/ds4424.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/iio/dac/ds4424.c b/drivers/iio/dac/ds4424.c index d3bf0dc02b1a..20031639e753 100644 --- a/drivers/iio/dac/ds4424.c +++ b/drivers/iio/dac/ds4424.c @@ -40,6 +40,16 @@ struct ds4424_chip_info { u8 num_channels; }; =20 +static const struct ds4424_chip_info ds4402_info =3D { + .name =3D "ds4402", + .num_channels =3D DS4422_MAX_DAC_CHANNELS, +}; + +static const struct ds4424_chip_info ds4404_info =3D { + .name =3D "ds4404", + .num_channels =3D DS4424_MAX_DAC_CHANNELS, +}; + static const struct ds4424_chip_info ds4422_info =3D { .name =3D "ds4422", .num_channels =3D DS4422_MAX_DAC_CHANNELS, @@ -286,6 +296,8 @@ static void ds4424_remove(struct i2c_client *client) } =20 static const struct i2c_device_id ds4424_id[] =3D { + { "ds4402", (kernel_ulong_t)&ds4402_info }, + { "ds4404", (kernel_ulong_t)&ds4404_info }, { "ds4422", (kernel_ulong_t)&ds4422_info }, { "ds4424", (kernel_ulong_t)&ds4424_info }, { } @@ -294,6 +306,8 @@ static const struct i2c_device_id ds4424_id[] =3D { MODULE_DEVICE_TABLE(i2c, ds4424_id); =20 static const struct of_device_id ds4424_of_match[] =3D { + { .compatible =3D "maxim,ds4402", .data =3D &ds4402_info }, + { .compatible =3D "maxim,ds4404", .data =3D &ds4404_info }, { .compatible =3D "maxim,ds4422", .data =3D &ds4422_info }, { .compatible =3D "maxim,ds4424", .data =3D &ds4424_info }, { } --=20 2.47.3