Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3130006ybl; Fri, 20 Dec 2019 04:27:03 -0800 (PST) X-Google-Smtp-Source: APXvYqwSXt75Wm4neAkEaTbJE0CZF43U2EnmMxitUUV2XJruVrZOo8D6vaSj7exYaNNS76DumVeF X-Received: by 2002:a9d:674f:: with SMTP id w15mr15050939otm.243.1576844823404; Fri, 20 Dec 2019 04:27:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576844823; cv=none; d=google.com; s=arc-20160816; b=J6485oJPHJiR74jNmth1SfD3iXdJ6QW5kBu14C/IVFu6SDTQ9L9PbbZu6i6oL092vz rQY2JMMMIHdz+SDQnn8gpaWrC1K4rdluvvymMQAd9erwj42oU8Gy9nfMBs2vhTq2rJXB qRq8SmmVh3vEbcvMO6HT5ow2Sw5Twb8krnJDSSiMvxICUuLkOseLujaeX/x6JIKcUgco wgEOMwb8gOShSzXeharG3iEdF/kegpTthxO4fLl2R73evIE0wSY/hJkS0Zu9PLigTJ+I H0eqoFhJwDOaUh4dx4/c+MEwUseOQNDCUsoJqxSkJRC3Zhz85ZM4ZYkdnjGHyWuavjhU gfoA== 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:cc:to:from :dkim-signature; bh=RBosA1WXv7+ZQ+18j+VhmhTjKGR8E8xllD/Rd9oJey4=; b=K8MRhN6zocB2DSmF2gCycyEw967jmCfHkLZfk0QsmHco9vhv47g7/m3Rvnem3Vabio mi5ukd4oCtjY9tLxw8ch7M+JCcxu91lX3lZE8rLyL1n5hFaNIy4ZFNSyZRsNykjbcfa+ 6gVTJyVH52RdrnfIFwgStwtxwe8CZShVCHmmg88Te6/rXbVB9hxImAQU2niwFu+K2pd/ 56MozKnSaz9JRMNAeUH3VZretSkgg2br/+aquhAvhohD+epi5veXw4JfzNjttJ44yBb+ rsB98F9LdcRIUEL79Lgmj+y5HN2YuoPHNKpTw6YAxZgt7JI3RfbdY6w67Ms3j96sVrmE dspg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=Tk2mRZKA; 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 d16si4806068otp.230.2019.12.20.04.26.51; Fri, 20 Dec 2019 04:27:03 -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=Tk2mRZKA; 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 S1727413AbfLTMY5 (ORCPT + 99 others); Fri, 20 Dec 2019 07:24:57 -0500 Received: from mail.andi.de1.cc ([85.214.55.253]:48358 "EHLO mail.andi.de1.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727347AbfLTMY4 (ORCPT ); Fri, 20 Dec 2019 07:24:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20180802; h=Message-Id:Date:Subject:Cc:To:From:Sender: Reply-To: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=RBosA1WXv7+ZQ+18j+VhmhTjKGR8E8xllD/Rd9oJey4=; b=Tk2mRZKAgHCqxHXhZkJZCaXkcz ziDMUULEv7GANWvFA+/U0sKpZscZo/do24A4Pg4/5KH64P9F78UefievcccXdBj7+1VGNHClW4MJH sQ8WBEu8GuWD8jbx+pvJ5dSFsJRXwj3nz+iPQwVArFVRU+VN/V3EgD/ointGEBkabTOM=; Received: from [2a02:790:ff:1019:7ee9:d3ff:fe1f:a246] (helo=localhost) by mail.andi.de1.cc with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iiHKn-0001zJ-6K; Fri, 20 Dec 2019 13:24:45 +0100 Received: from andi by localhost with local (Exim 4.89) (envelope-from ) id 1iiHKj-0008TW-Ni; Fri, 20 Dec 2019 13:24:42 +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 Cc: Andreas Kemnade Subject: [PATCH v5 0/5] Add rtc support for rn5t618 mfd Date: Fri, 20 Dec 2019 13:24:11 +0100 Message-Id: <20191220122416.31881-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 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 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