Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp9543060ybl; Fri, 17 Jan 2020 14:02:13 -0800 (PST) X-Google-Smtp-Source: APXvYqx6CEzma7I9svmnzsYM+4NdMH/2tQfLG48s8a2/eO00eY8RY2hq//fXAmiLAtL7i9VS46Cd X-Received: by 2002:a9d:6e92:: with SMTP id a18mr4382534otr.324.1579298533590; Fri, 17 Jan 2020 14:02:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579298533; cv=none; d=google.com; s=arc-20160816; b=ZQ0GI5pXxHfmXkynYWSM1z87/47BTlhxuEDSn6V+JumOy963MN3JUVKwW8ceazI9tK +GpHZpHPUTr8bhcWidFBLQW3x3IaHo9gyYZEieEiN3DnHl4DYnJ40afA7T1sanY47+Di vl9xYqZ4vJ/lN9YRukEmoRMZoD4Yl5Wcb8HnIX3YsrbXF9ZW386/gHS2MoJz8XwxEWYN bNM8CSyTuHBTpn2YTMnr6kkOTVlYrHHJNPkH/JjKc9F2ca0Dehv/f/3HfLV8q0WjetTe 0qKafjokVegnIWQ+pH5qmqvEjNHjPVjebIyyeiQFBTJ9ge3KtjXqNFIAzq2TxtmiwaUz jD0Q== 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 :message-id:date:subject:to:from:dkim-signature; bh=mOA7amCzgZnFtzXH6mRck7K1hhyXvnqJjhfchoHEFK4=; b=Bg3ZE4cWecuvMybreLO6Y/GF1jG5acRpEMPWXZx4BSdgFxp+auYv+Wo1mbUZeRzdQ7 vq/mT/wGXRAVnELrUhuNOjmLdq+N+TQib0HKThDar1CqWOwCIL/SPtnXuy8nh+LbdXIb XskRGNspPAQs9Xxel/hW5Hqy9NaGtGdyVg9lF4SyPwzgl2bORUyWVVuWoDiUYpRTW7d+ UZsYbRkEzeMZCB1C4b+p7XytmNjFsM8j4M2l550n2oZN5XJ6RozUuNP7+Ls7H3AatIw2 1+knx4jDvyB6SlwC85Ru+Dk1r63Kf+Cv7z7pgLfiCiblqZ5b8W8pQBv7u2Yedac1L28d uAYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=Bz1vhflT; 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 m19si13889357oig.91.2020.01.17.14.02.01; Fri, 17 Jan 2020 14:02:13 -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=Bz1vhflT; 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 S1730075AbgAQWBE (ORCPT + 99 others); Fri, 17 Jan 2020 17:01:04 -0500 Received: from mail.andi.de1.cc ([85.214.55.253]:38364 "EHLO mail.andi.de1.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729972AbgAQWBC (ORCPT ); Fri, 17 Jan 2020 17:01:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20180802; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type: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=mOA7amCzgZnFtzXH6mRck7K1hhyXvnqJjhfchoHEFK4=; b=Bz1vhflTBMSKPImT96JNn4p0M2 vs4LZ9pEqTlwAx74/yyKNgjbDDv7fFkBBj0Qd6VXRRIfGcc451CZMftOZ9I/DK+SdRpeKP87Ye6yK 4egqd7X3kO3eBr6R+QMNTq2sL24N8dfN1mjyCvRORvt9KJdZ3+7b5guHOztlO647vYQc=; Received: from p200300ccff371b001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:ff37:1b00:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1isZfh-00077D-Gd; Fri, 17 Jan 2020 23:00:53 +0100 Received: from andi by aktux with local (Exim 4.92) (envelope-from ) id 1isZfh-0003yT-4F; Fri, 17 Jan 2020 23:00:53 +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 Subject: [PATCH 0/5] mfd: rn5t618: add ADC support Date: Fri, 17 Jan 2020 22:59:21 +0100 Message-Id: <20200117215926.15194-1-andreas@kemnade.info> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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/ First regmap setup has to be fixed because there is a register wrongly classified as volatile. 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 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. Andreas Kemnade (5): mfd: rn5t618: mark ADC control register volatile mfd: rn5t618: add ADC subdevice for RC5T619 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 | 266 ++++++++++++++++++++++++++++++++++ drivers/mfd/rn5t618.c | 49 ++++++- 4 files changed, 324 insertions(+), 2 deletions(-) create mode 100644 drivers/iio/adc/rn5t618-adc.c -- 2.20.1