From nobody Tue Feb 10 08:27:37 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 5733D36BCE5 for ; Mon, 19 Jan 2026 18:24:33 +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=1768847075; cv=none; b=pjl0yR+Y0DfUJGtpn/k0LqT+6owFNhjN7iIN1W4ShnhXtYnKaO80+YlieICPj+NeTdVhLbxA8+W/m6tVO6tLc4Y1uJ0pDWhgFwm/Ld++WfgKWQn90Gp0TrGHpDpRHBwsG8/XC3Mn8uGkrWLACG2WmeixnGVuoinuLFY+lDxUDOc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768847075; c=relaxed/simple; bh=7DFKPDbFnEIjbEcnSA5MiuH+pLp28VdV2rLS44SFNTA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bcqR4Yn1BQ6hQW7zVybAwuWYopD26duMs0RV700ZSvMq4o5ojLs0RLOVkbRCcuvv2M5mQJqwQH13kc3wMX1z7ORWead34MJ9+pH8LVZ/LcDqNy9wMxmkW2UD8tFDbFZvyLfIdHCkLOV0E9BifszV5C+CIyMN3/SHlULoCpLyaCY= 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 1vhtvO-0004SN-7Y; Mon, 19 Jan 2026 19:24:26 +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 1vhtvO-001SUh-15; Mon, 19 Jan 2026 19:24:25 +0100 Received: from ore by dude04 with local (Exim 4.98.2) (envelope-from ) id 1vhtvN-00000006y1o-2UkW; Mon, 19 Jan 2026 19:24:25 +0100 From: Oleksij Rempel To: Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Oleksij Rempel , David Jander , 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 v1 3/8] iio: dac: ds4424: add DS4402/DS4404 device IDs Date: Mon, 19 Jan 2026 19:24:19 +0100 Message-ID: <20260119182424.1660601-4-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260119182424.1660601-1-o.rempel@pengutronix.de> References: <20260119182424.1660601-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" 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. Signed-off-by: David Jander Signed-off-by: Oleksij Rempel --- 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 a8198ba4f98a..072b7e6672cf 100644 --- a/drivers/iio/dac/ds4424.c +++ b/drivers/iio/dac/ds4424.c @@ -48,6 +48,8 @@ union ds4424_raw_data { }; =20 enum ds4424_device_ids { + ID_DS4402, + ID_DS4404, ID_DS4422, ID_DS4424, }; @@ -248,6 +250,12 @@ static int ds4424_probe(struct i2c_client *client) goto fail; =20 switch (id->driver_data) { + case ID_DS4402: + indio_dev->num_channels =3D DS4422_MAX_DAC_CHANNELS; + break; + case ID_DS4404: + indio_dev->num_channels =3D DS4424_MAX_DAC_CHANNELS; + break; case ID_DS4422: indio_dev->num_channels =3D DS4422_MAX_DAC_CHANNELS; break; @@ -289,6 +297,8 @@ static void ds4424_remove(struct i2c_client *client) } =20 static const struct i2c_device_id ds4424_id[] =3D { + { "ds4402", ID_DS4402 }, + { "ds4404", ID_DS4404 }, { "ds4422", ID_DS4422 }, { "ds4424", ID_DS4424 }, { } @@ -297,6 +307,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" }, + { .compatible =3D "maxim,ds4404" }, { .compatible =3D "maxim,ds4422" }, { .compatible =3D "maxim,ds4424" }, { } --=20 2.47.3