Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp182879ybf; Wed, 26 Feb 2020 11:05:49 -0800 (PST) X-Google-Smtp-Source: APXvYqwt/3F2dFBEpHQepyn2fDxmFlM3eoTycH0nEcg30kWZJxEpnYvET6cnK6CrVOxBhfVeNAeu X-Received: by 2002:a05:6830:1305:: with SMTP id p5mr221719otq.124.1582743949711; Wed, 26 Feb 2020 11:05:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582743949; cv=none; d=google.com; s=arc-20160816; b=XggHTvNELzfYdbls1yzQj3FiiRQQtwJh0owtclM2A2y31VmJtkXwdS4MC9Ws8PYwcy krIIzr4N09mwMg9ZNFZW73GDOHldBihNGGNofQL4tbRbqM0jIo+YDNlS0Xfhi7kGAhp8 ZRi8lgT1B3R6QNg2L4nuYeErDJUYRTkZJR2KTUaTmDoncWKSvMOHFsbx/PsrXF2IQIi1 hXnnzdUOIVA6aBtBzbgg+2XI8WVqp6Kark/Zd+nz52tmgPFRZnUpE5s4ERr0MNp2I1Y6 irEcD8s9+vvHJyJSrhcyuGFI/WeUJNxp3wwsWYPDdMmCHw95o9JMajN4HAUf6qw3u+nT lRpQ== 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:cc:to:from:dkim-signature; bh=iLEPWUVY1o6uTsXjmOHiHHfofWpNjiEdQdiuO6c0r7Y=; b=DQhopRrtkiLszB0oEZn7yoZ7/MhsMY1atTr1hlO++I3tbMQ8n1ohi3qUbxjQO5Ant6 b5viErrg7WwUSK1eTFsQX/cl21ezvzmg2rkfRso1P0a/Ezp9ZCx1PkzwXkZWYBUiaHW8 TQAubxRZeWZrjn62F4YzBSO59KzhTe6xHxg/s+KJsM+5JsmkKL9Bm1PPQrZ4A566c8j/ 4orYAxzO5rsokkeDvMYaUAEjibaYO+1d+KkLleczuBO+L+BRf5+pRK+e3VhuyVUd0mRi LfE0hOBdwd5We5pNttzr+ghZbPRsYBueLUGZ8rfCWCzg882YMQGd9xnSeZNQigkZCFp4 2buw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=NQmYiGEW; 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 e7si215651otp.260.2020.02.26.11.05.34; Wed, 26 Feb 2020 11:05:49 -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=NQmYiGEW; 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 S1727221AbgBZTF0 (ORCPT + 99 others); Wed, 26 Feb 2020 14:05:26 -0500 Received: from mail.andi.de1.cc ([85.214.55.253]:56404 "EHLO mail.andi.de1.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727118AbgBZTFZ (ORCPT ); Wed, 26 Feb 2020 14:05:25 -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=iLEPWUVY1o6uTsXjmOHiHHfofWpNjiEdQdiuO6c0r7Y=; b=NQmYiGEWAeaUIcY0eeyVJxZJvB ZAiUquofFqkhPWzmj8JCU9akwFJ6wkfIRyes1/fPSJDNgaZerMIkmQB85LTGx67SxRnn9HBAQMrOK T+H7tZCwBhmm5TB3fAkokxXTRKZvHnybbkSyXXVmK+hrbxeJrhZUnIeHkZpQL3L2rrWU=; Received: from p200300ccff0a4d00e2cec3fffe93fc31.dip0.t-ipconnect.de ([2003:cc:ff0a:4d00: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 1j71zg-0007jJ-Pk; Wed, 26 Feb 2020 20:05:17 +0100 Received: from andi by eeepc with local (Exim 4.92) (envelope-from ) id 1j71zg-0001h3-6m; Wed, 26 Feb 2020 20:05:16 +0100 From: Andreas Kemnade To: lee.jones@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, a.zummo@towertech.it, alexandre.belloni@bootlin.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org, stefan@agner.ch, b.galvani@gmail.com, phh@phh.me, letux-kernel@openphoenux.org, GNUtoo@cyberdimension.org Cc: Andreas Kemnade Subject: [PATCH RESEND v5 0/5] Add rtc support for rn5t618 mfd Date: Wed, 26 Feb 2020 20:04:59 +0100 Message-Id: <20200226190504.6467-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 In the variant RC5T619 the mfd has an RTC. This patchset adds support for it. To do so it adds the missing register defines in rn5t618.h and general irq handling for that. It seems that the irq definitions are the same except missing RTC for the RN5T618 but due to missing ability to test that I do not add them here. The rtc driver itself is based on https://github.com/kobolabs/Kobo-Reader/blob/master/hw/imx6sll-clara/kernel.tar.bz2 but heavily reworked. It was tested on the Kobo Clara HD. For cleaning up there is a separate off-topic patch: mfd: rn5t618: cleanup i2c_device_id Changes in v5: - static rn5t618_irq_init - PLATFORM_DEVID_NONE - added some Acked-Bys Changes in v4: - use macros for IRQ definitions - merge rn5t618-core.c and rn5t618-irq.c Changes in v3: - alignment cleanup - output cleanup, remove useless toggling of alarm flag in rtc probe - updated bindings description, so patch 1/5 becomes 2/6 and so on Changes in v2: - no dead code in irq code - various improvements and cleanups in rtc driver itself Andreas Kemnade (5): dt-bindings: mfd: rn5t618: Document optional property interrupts mfd: rn5t618: add IRQ support mfd: rn5t618: add RTC related registers mfd: rn5t618: add more subdevices rtc: rc5t619: add ricoh rc5t619 RTC driver Documentation/devicetree/bindings/mfd/rn5t618.txt | 4 + drivers/mfd/Kconfig | 1 + drivers/mfd/rn5t618.c | 109 +++++- drivers/rtc/Kconfig | 10 + drivers/rtc/Makefile | 1 + drivers/rtc/rtc-rc5t619.c | 444 ++++++++++++++++++++++ include/linux/mfd/rn5t618.h | 26 ++ 7 files changed, 593 insertions(+), 2 deletions(-) create mode 100644 drivers/rtc/rtc-rc5t619.c -- 2.11.0