From patchwork Mon Mar 25 20:32:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 13602916 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 11F45C54E64 for ; Mon, 25 Mar 2024 20:33:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=wewLDNrn9js/IG8+R3jyDXN/FHJo1BxXIC46aJUwIoo=; b=QXN4lOdZJz2yGO P2TSNuo9+GhY/XBgWvDZYZRIaDPwC/RR4wvbPlLbOPXOPuZ5z58IVPGF2JZ0QWeCci2k6lSXMQmyq 2jUduRQ2RIZb2rxRp5fprKxi8d4kL6IIcMycAu8vjECszG7BiSV82XuN+/pVL74YbaJpoB9jI+CyT rj/E3DMvxoFsvolB0nLlcE2n0ULmvv+/+taZMURADWiE+raTu47WQEt8hCA5Cv1yzjJpQ2bV8i1io +8MUhbmR4YkDqbwTmCW2H7DfEzN/8HuuSbKRYvB8Z+c2xfsym58OVTt8ScL8gEjOQ7VKaCEvabYZi ASGD9QwDUuRRudFo3nFg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ror0C-00000001oro-18I4; Mon, 25 Mar 2024 20:33:04 +0000 Received: from perceval.ideasonboard.com ([213.167.242.64]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1ror05-00000001ooV-1stP for linux-arm-kernel@lists.infradead.org; Mon, 25 Mar 2024 20:32:59 +0000 Received: from pendragon.ideasonboard.com (81-175-209-231.bb.dnainternet.fi [81.175.209.231]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id BFA5D3372; Mon, 25 Mar 2024 21:32:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1711398745; bh=ycHRYiTS2rqX1z1nXX5amVUPfjf+7hjHKfnWrEZ6N3w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VsvUqZSsTZi+5i9NNix0N6qTQIAkVpfOmm95jAqDYNqLNyptBrHIvwWQfO3BDG/Ju 0W40DT/w81FyvlsesfcuLqgxcBAsfM5m4fiQjMC9QplgysIVHs07zyFuEGlPA9h5Dq 38QdIBALcKAysbsIowLO93z33fPPpwVsKOOksEh8= From: Laurent Pinchart To: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Cc: Trevor Zaharichuk , Greg Lytle , Jonathan Cameron , Lars-Peter Clausen , Sean Nyekjaer , linux-iio@vger.kernel.org Subject: [PATCH 2/5] iio: dac: ti-dac5571: Add DAC081C081 support Date: Mon, 25 Mar 2024 22:32:42 +0200 Message-ID: <20240325203245.31660-3-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240325203245.31660-1-laurent.pinchart@ideasonboard.com> References: <20240325203245.31660-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240325_133257_871992_ED6498DC X-CRM114-Status: GOOD ( 11.89 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The DAC081C081 is a TI DAC whose software interface is compatible with the DAC5571. It is the 8-bit version of the DAC121C081, already supported by the DAC5571 driver. Extends the driver to support this chip. Signed-off-by: Laurent Pinchart Reviewed-by: Sean Nyekjaer > --- drivers/iio/dac/ti-dac5571.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/iio/dac/ti-dac5571.c b/drivers/iio/dac/ti-dac5571.c index efb1269a77c1..c5162b72951a 100644 --- a/drivers/iio/dac/ti-dac5571.c +++ b/drivers/iio/dac/ti-dac5571.c @@ -13,6 +13,7 @@ * https://www.ti.com/lit/ds/symlink/dac5573.pdf * https://www.ti.com/lit/ds/symlink/dac6573.pdf * https://www.ti.com/lit/ds/symlink/dac7573.pdf + * https://www.ti.com/lit/ds/symlink/dac081c081.pdf * https://www.ti.com/lit/ds/symlink/dac121c081.pdf */ @@ -386,6 +387,7 @@ static void dac5571_remove(struct i2c_client *i2c) } static const struct of_device_id dac5571_of_id[] = { + {.compatible = "ti,dac081c081", .data = &dac5571_spec[single_8bit] }, {.compatible = "ti,dac121c081", .data = &dac5571_spec[single_12bit] }, {.compatible = "ti,dac5571", .data = &dac5571_spec[single_8bit] }, {.compatible = "ti,dac6571", .data = &dac5571_spec[single_10bit] }, @@ -401,6 +403,7 @@ static const struct of_device_id dac5571_of_id[] = { MODULE_DEVICE_TABLE(of, dac5571_of_id); static const struct i2c_device_id dac5571_id[] = { + {"dac081c081", (kernel_ulong_t)&dac5571_spec[single_8bit] }, {"dac121c081", (kernel_ulong_t)&dac5571_spec[single_12bit] }, {"dac5571", (kernel_ulong_t)&dac5571_spec[single_8bit] }, {"dac6571", (kernel_ulong_t)&dac5571_spec[single_10bit] },