From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2D957C35671 for ; Sun, 23 Feb 2020 13:17:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F13E5206ED for ; Sun, 23 Feb 2020 13:17:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kemnade.info header.i=@kemnade.info header.b="HTYwYfc8" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727191AbgBWNRA (ORCPT ); Sun, 23 Feb 2020 08:17:00 -0500 Received: from mail.andi.de1.cc ([85.214.55.253]:60220 "EHLO mail.andi.de1.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726592AbgBWNQ7 (ORCPT ); Sun, 23 Feb 2020 08:16:59 -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:Cc:To:From:Sender:Reply-To: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=z6FHemkjXlxjJWpJmFczGocDakxa9V/95cXVK8udQIs=; b=HTYwYfc8vTQr9V3gDiXLoerqM0 nj8AKe44T08rgBlkSggL7g7RV5r2+5uJj3rMlar0b2H7eyMYmX5rsAwdtXiKZWnVbq99V6Ph4AbAw hdmU3NKQ1CMkLsu4vuhbq6d9maBCU4SF4F68h7O5rEvLkVPoybW+LrDv9SF4fys97ci0=; Received: from p200300ccff47d700e2cec3fffe93fc31.dip0.t-ipconnect.de ([2003:cc:ff47:d700:e2ce:c3ff:fe93:fc31] helo=eeepc) by mail.andi.de1.cc with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1j5r7q-0007HY-SY; Sun, 23 Feb 2020 14:16:51 +0100 Received: from andi by eeepc with local (Exim 4.92) (envelope-from ) id 1j5r7g-0003AP-O3; Sun, 23 Feb 2020 14:16:40 +0100 From: Andreas Kemnade To: knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, lee.jones@linaro.org, b.galvani@gmail.com, linus.walleij@linaro.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, phh@phh.me, stefan@agner.ch, letux-kernel@openphoenux.org, jic23@kernel.org Cc: Andreas Kemnade Subject: [PATCH v5 0/2] mfd: rn5t618: add ADC support Date: Sun, 23 Feb 2020 14:16:36 +0100 Message-Id: <20200223131638.12130-1-andreas@kemnade.info> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 v5: - fixed typo Changes in v4: - drop RFC patches, seems nobody finds time to test now - added trivial change and Reviewed-By Changes in v3: - re-included former 2/5 of these patches, since it was not applied 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 (2): mfd: rn5t618: add ADC subdevice for RC5T619 iio: adc: rn5t618: Add ADC driver for RN5T618/RC5T619 drivers/iio/adc/Kconfig | 10 ++ drivers/iio/adc/Makefile | 1 + drivers/iio/adc/rn5t618-adc.c | 256 ++++++++++++++++++++++++++++++++++ drivers/mfd/rn5t618.c | 1 + 4 files changed, 268 insertions(+) create mode 100644 drivers/iio/adc/rn5t618-adc.c -- 2.20.1