Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp13476909ybl; Sun, 29 Dec 2019 12:50:39 -0800 (PST) X-Google-Smtp-Source: APXvYqx5ZfH0sLJKzY14qq+l6DB/UAVomzTQPWCaM+7pfbAZYXtjMV9iWyNYyThI1iNDfZPcsX4V X-Received: by 2002:a05:6830:128e:: with SMTP id z14mr67906474otp.184.1577652639067; Sun, 29 Dec 2019 12:50:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577652639; cv=none; d=google.com; s=arc-20160816; b=jwX69BzlKdJmKtRvbEQRkgCLBHar/niqU5dFpJjVEjdexO3YxlsYzMxQCT+BtDd1g6 wf22Qy0qKa3Hfas2RlKMO3SLWkOu+KenEXJLTVujXXnL75eh4wlYzEgyuiZ9JJCf4Wpr ovUEaZmmm+wxJad+JLb4U9vu35zB2EQYTEC5c4q8DCBBWLktvEZFBVU0D1zwdCQBqGzq HEl7Uo6Ww47RIM2NN7MJF4rEPFeDLFBg/+viVvflJl9jqm3m7hClQnRMvJEQ2+IH1/3s B59wwdBwhl3MlAvwRZBYoMSPd8MC9jbYHGm+jkjqLa0tk9Tp+mawHZZtyAGZyr1Bt29v 0SMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=QCYBbg1FAJYn/XmfX05E6nFyNwgH8C2f48jVsyYGz8c=; b=Al+VA7sVJwyA00pOwOcacC6tWCNH7L9/OL4vkD95esHF06HnXusZCW+I/L4tRwsU8d XCpQ8orku8y+Zkm8rSOZGi7EOoYcduJl6JVXAW6Y7WHoThE/NJ9CDVoJpiC32wl2exYU eVNnAz+cqLw1whpaYIfbvooNKOD6CbYC2MZKgJtWsC0Wcg6bkS1KmxxNVYIDPL1orrEx gjU8Bt/IxUw1CBNli+DBCvKsQ2gPZqpaK6Ed3nQrqgdRk6rDG8hQqfSqGYMxdpMdA/tF UuYMXPdfX5/mPcEFTnQc3T9upSbElBC5KLV4aC03z6KlBAEHwkXGH7/3lxTUPHxjnliP +BMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VPhny2qs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v4si23412083otr.123.2019.12.29.12.50.28; Sun, 29 Dec 2019 12:50:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VPhny2qs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732943AbfL2SD5 (ORCPT + 99 others); Sun, 29 Dec 2019 13:03:57 -0500 Received: from mail.kernel.org ([198.145.29.99]:39356 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732353AbfL2Rww (ORCPT ); Sun, 29 Dec 2019 12:52:52 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 172C120718; Sun, 29 Dec 2019 17:52:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1577641971; bh=ki5lz75lp15VMkWCPZERY0m87G7OQ8uLibNz4VhQzVE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VPhny2qs1drcV2riGeZnPbrWOMgWMNeWzWxLpvOhAlMutIc7WbBEUkEgzzWjze71P o3fpWeVKKK/IaDmKPCIqmdvAXOlL6GsLMWsq5NdLj1apdVcpuQrVlKR/ayg80q1HpY g+QuAEA0pA4egvKw6cmmPmRzeKIRQMVDCjvbQqbo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Stefan Popa , Alexandru Ardelean , Jonathan Cameron , Sasha Levin Subject: [PATCH 5.4 289/434] iio: dac: ad5446: Add support for new AD5600 DAC Date: Sun, 29 Dec 2019 18:25:42 +0100 Message-Id: <20191229172721.145867540@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191229172702.393141737@linuxfoundation.org> References: <20191229172702.393141737@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stefan Popa [ Upstream commit 6376cbe549fffb378403cee78efd26b8a2c8e450 ] The AD5600 is a single channel, 16-bit resolution, voltage output digital to analog converter (DAC). The AD5600 uses a 3-wire SPI interface. It is part of the AD5541 family of DACs. The ad5446 IIO driver implements support for some of these DACs (in the AD5441 family), so the change is a simple entry in this driver. Link: https://www.analog.com/media/en/technical-documentation/data-sheets/AD5600.pdf Signed-off-by: Stefan Popa Signed-off-by: Alexandru Ardelean Signed-off-by: Jonathan Cameron Signed-off-by: Sasha Levin --- drivers/iio/dac/Kconfig | 4 ++-- drivers/iio/dac/ad5446.c | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/iio/dac/Kconfig b/drivers/iio/dac/Kconfig index cc42219a64f7..979070196da9 100644 --- a/drivers/iio/dac/Kconfig +++ b/drivers/iio/dac/Kconfig @@ -60,8 +60,8 @@ config AD5446 help Say yes here to build support for Analog Devices AD5300, AD5301, AD5310, AD5311, AD5320, AD5321, AD5444, AD5446, AD5450, AD5451, AD5452, AD5453, - AD5512A, AD5541A, AD5542A, AD5543, AD5553, AD5601, AD5602, AD5611, AD5612, - AD5620, AD5621, AD5622, AD5640, AD5641, AD5660, AD5662 DACs + AD5512A, AD5541A, AD5542A, AD5543, AD5553, AD5600, AD5601, AD5602, AD5611, + AD5612, AD5620, AD5621, AD5622, AD5640, AD5641, AD5660, AD5662 DACs as well as Texas Instruments DAC081S101, DAC101S101, DAC121S101. To compile this driver as a module, choose M here: the diff --git a/drivers/iio/dac/ad5446.c b/drivers/iio/dac/ad5446.c index 7df8b4cc295d..61c670f7fc5f 100644 --- a/drivers/iio/dac/ad5446.c +++ b/drivers/iio/dac/ad5446.c @@ -327,6 +327,7 @@ enum ad5446_supported_spi_device_ids { ID_AD5541A, ID_AD5512A, ID_AD5553, + ID_AD5600, ID_AD5601, ID_AD5611, ID_AD5621, @@ -381,6 +382,10 @@ static const struct ad5446_chip_info ad5446_spi_chip_info[] = { .channel = AD5446_CHANNEL(14, 16, 0), .write = ad5446_write, }, + [ID_AD5600] = { + .channel = AD5446_CHANNEL(16, 16, 0), + .write = ad5446_write, + }, [ID_AD5601] = { .channel = AD5446_CHANNEL_POWERDOWN(8, 16, 6), .write = ad5446_write, @@ -448,6 +453,7 @@ static const struct spi_device_id ad5446_spi_ids[] = { {"ad5542a", ID_AD5541A}, /* ad5541a and ad5542a are compatible */ {"ad5543", ID_AD5541A}, /* ad5541a and ad5543 are compatible */ {"ad5553", ID_AD5553}, + {"ad5600", ID_AD5600}, {"ad5601", ID_AD5601}, {"ad5611", ID_AD5611}, {"ad5621", ID_AD5621}, -- 2.20.1