Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2985442ybl; Mon, 20 Jan 2020 13:22:36 -0800 (PST) X-Google-Smtp-Source: APXvYqxuIIeDYxJCX4Tl6dctROWsOWiLxCDD5qEDgpuzX6YD6Xwu1U6eXHhThRDa1K7fE4SvpNv8 X-Received: by 2002:a05:6830:2014:: with SMTP id e20mr1081329otp.272.1579555356002; Mon, 20 Jan 2020 13:22:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579555355; cv=none; d=google.com; s=arc-20160816; b=vI7KvDlRrZGpwmqRLATPQOm96DlvR5xASTHIvjfXsNoLQzkNGi5iy6jQ229l/5f+Il Gv/DYGx1GHiI3B+Moo+qaUw1pR+K9b306ebxRJJ94FLLHdGPZ3FLZCOxxRitadTP8/JL 7S3EkdoRhFd1LXmUex6P+5v5s5gfult9pGldglSI4qc09+XNpH4zupEBXFVjbL7/RRvP xRRt7jpf7Gsh2OVmd9RcxyNS/NspBskzvpWsNhWzpF7QVe1+txlJrRTEq/5MWz+1n5aT /0aXcRRuKZ0GQZNK0ftJyFUkMA/QeNAHP6p+XmQCfNXuW+CWpvIcn+JoJZ3WpTGHHk/K 5M1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:to:from :dkim-signature; bh=yowO245pK1fSPCH+v7F/Y9isOjxDC01NKbLnFHqZKTA=; b=nxOkC89LQdLsLIiJuTmB+RpNURq7Kr3SctO0n7qEF615043vLJFRe9q+VCNsvhRM0V xki7zM+gg8B2arLgBkVrJlcxixZWQh2Wk8p/oXCSv10hdGPDWaOkc23ktTWppzoiHU3l /jNQ74kubBqqa670Yg80U3wTRjDz6y6BW6pWI/2oqnCY8fS0XKBWiKhkgCZ/9UoUad8d MHbRlSgNGVQ1MuJIvcZEE9/UBVplZBYVuoc5upI1K7h7CFBKNhjEFu7nJTsmC+/FWaI0 D60n54hvm2kL/JxWsHXV7E2U0fn5aL6ByTkIzOmkYk21aRij8aV6fEHW/gYIzw1NoTfo 594Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=C5MdHt6m; 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 k19si19952632otr.52.2020.01.20.13.22.24; Mon, 20 Jan 2020 13:22:35 -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=fail header.i=@kemnade.info header.s=20180802 header.b=C5MdHt6m; 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 S1727691AbgATVVT (ORCPT + 99 others); Mon, 20 Jan 2020 16:21:19 -0500 Received: from mail.andi.de1.cc ([85.214.55.253]:38594 "EHLO mail.andi.de1.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726874AbgATVVT (ORCPT ); Mon, 20 Jan 2020 16:21:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20180802; h=Message-Id:Date:Subject:To:From:Sender:Reply-To :Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=yowO245pK1fSPCH+v7F/Y9isOjxDC01NKbLnFHqZKTA=; b=C5MdHt6miaWlSzn5w7Sc2Hmz5t EeVtYDD5IdhOIwcsBDUXG5KASRYRjdvS00TyaV57KVhoijprzd1tT8/uXq9XFZo0PH7bL8KFxiwTk ur2OIh0Vs9gjhl4aFnoahkfBmk9nxTcdXgxzbVceuvMN+Xjod4W+7VvpQp+v61/wU1TI=; Received: from p200300ccff0880007ee9d3fffe1fa246.dip0.t-ipconnect.de ([2003:cc:ff08:8000:7ee9:d3ff:fe1f:a246] helo=eeepc) by mail.andi.de1.cc with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iteTn-0006vj-92; Mon, 20 Jan 2020 22:21:04 +0100 Received: from andi by eeepc with local (Exim 4.89) (envelope-from ) id 1iteTl-0007W9-R6; Mon, 20 Jan 2020 22:21:01 +0100 From: Andreas Kemnade To: jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, lee.jones@linaro.org, b.galvani@gmail.com, linus.walleij@linaro.org, andreas@kemnade.info, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, phh@phh.me, stefan@agner.ch, letux-kernel@openphoenux.org, martin.blumenstingl@googlemail.com Subject: [PATCH v2 0/3] mfd: rn5t618: add ADC support Date: Mon, 20 Jan 2020 22:20:53 +0100 Message-Id: <20200120212056.28806-1-andreas@kemnade.info> X-Mailer: git-send-email 2.11.0 X-Spam-Score: -1.0 (-) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds support for the ADC in the RN5T618/RC5T619. It depends on the IRQ support added in the RTC support series here: https://lore.kernel.org/lkml/20191220122416.31881-1-andreas@kemnade.info/ I tested the driver only with the RC5T619 but it should work with the with the RN5T618 as well based on these facts: - The corresponding register definitions originally went into the kernel for the RN5T618 - Public datasheet sections about the ADC look same. - Out-of-tree code for these chips look same regarding to ADC But due to missing hardware I cannot test the patches 2/3 and 3/3 which add support for the RN5T618 ADC. I marked these untested patches as RFC, and IMHO they require a Tested-By. Feel free to ignore them if the whole series would be delayed just because of missing Tested-By for those. Changes in v2: - got an "Applied, thanks" message for the first two, so I do not include them anymore - some cleanups for the ADC driver itself Andreas Kemnade (3): iio: adc: rn5t618: Add ADC driver for RN5T618/RC5T619 mfd: rn5t618: add IRQ definitions for RN5T618 mfd: rn5t618: add ADC subdevice for RN5T618 drivers/iio/adc/Kconfig | 10 ++ drivers/iio/adc/Makefile | 1 + drivers/iio/adc/rn5t618-adc.c | 253 ++++++++++++++++++++++++++++++++++++++++++ drivers/mfd/rn5t618.c | 47 +++++++- 4 files changed, 309 insertions(+), 2 deletions(-) create mode 100644 drivers/iio/adc/rn5t618-adc.c -- 2.11.0