From nobody Mon Feb 9 22:19:08 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 446BB2772D for ; Wed, 4 Feb 2026 14:00:51 +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=1770213652; cv=none; b=dhK89L+dYRfvgxS+91VaQSgnqF/8hBpRwXs/BrRxGeqL2tdIto4bEYKlIvkn+QOIA1roIqS5b9unReUYGsCP0gCPnS9qm3fvoJ/tVeHIK6ZxyI5oCRVTCnJyvYCdGOr19hThW81lSUd2+WZxY++wGBDIdgedZfVUtDUuCxWxnvk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770213652; c=relaxed/simple; bh=NvSrpqULKEWS417VNdvn4S0I/pq7a6OoH3YBuKUYOSU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ojkD2/4Aw7Y9e85MDihH1GQ0BLqaGN90AQQLJiLKRztuQ74wYaZLHo7i0TlnRd5O1vIJoqhroElf2PhKZjaSvMAMnQOwvM3iQqnvyBzj3YZXlhB720VuaMimGiLFT+2zDR1zDkrmqELcYaC5IEs3m/3+h6vZlOU8LUdD/7iNmtc= 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 1vndR1-0001Qs-HM; Wed, 04 Feb 2026 15:00:47 +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 1vndR1-0045FR-2G; Wed, 04 Feb 2026 15:00:47 +0100 Received: from ore by dude04 with local (Exim 4.98.2) (envelope-from ) id 1vndR0-00000001dgp-3Gfl; Wed, 04 Feb 2026 15:00:46 +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 v5 09/13] iio: dac: ds4424: add DS4402/DS4404 device IDs Date: Wed, 4 Feb 2026 15:00:41 +0100 Message-ID: <20260204140045.390677-10-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260204140045.390677-1-o.rempel@pengutronix.de> References: <20260204140045.390677-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 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 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/iio/dac/ds4424.c b/drivers/iio/dac/ds4424.c index 00a719d43a17..0ff034634fd1 100644 --- a/drivers/iio/dac/ds4424.c +++ b/drivers/iio/dac/ds4424.c @@ -39,6 +39,14 @@ struct ds4424_chip_info { u8 num_channels; }; =20 +static const struct ds4424_chip_info ds4402_info =3D { + .num_channels =3D DS4422_MAX_DAC_CHANNELS, +}; + +static const struct ds4424_chip_info ds4404_info =3D { + .num_channels =3D DS4424_MAX_DAC_CHANNELS, +}; + static const struct ds4424_chip_info ds4422_info =3D { .num_channels =3D DS4422_MAX_DAC_CHANNELS, }; @@ -284,6 +292,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 }, { } @@ -292,6 +302,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