Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp72482ybx; Thu, 31 Oct 2019 16:08:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqy4ZNTiBz85/IK1lkFUn73sprprww8uFeNABbY8g2gSG8RLIKT7IZJfPkTpoe3GVTWW8yON X-Received: by 2002:a50:84e9:: with SMTP id 96mr9203891edq.182.1572563327707; Thu, 31 Oct 2019 16:08:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572563327; cv=none; d=google.com; s=arc-20160816; b=032Xsl/9mOWGM12HShWn1bMfib4YuJVxVMbmJ3AP3Kxgnx0we30DHPV1MdUAaqF5ur UyGOLf675u489gZa88Sx84gE40ttcpPo+qLOxP0n5glQcWJ8H/wu5UCmPaxr+vkjjYbN NIuqa1pzWfLq2Aa7uTACqhw32tjz5EBhFZhgsrD8yZ3EaE0gaVTRuGkkxKHcKYGTZLco oWoDYe+6LPjjz+cUG7xJ53X/yr8AAxvo8f0C+4sB+bixapyS8U964uxcSpDmteEraO0g NWs8JaeNPchW6Ylov95aBwsXZeFe2wcfSmRxR+DIiMfse1fY/aNoleRS8wvS/K8w4lqn kB3Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MTH/rtGOZowYp/PPfx3AuvCkF0uVwZsmD23YnUBpLLw=; b=R2jLjFf8XIdWTmAHY7zpXsAFIV6CIUdDOBC75Xl0N2f52FNGeEbWxFaMDLp9fc9tb7 18CldQA/eVI2wdLYerrIDGkOc0Q4Ri4E+b7xFHgfVUsuTudlRkTJeUz03H1V5qjHvsMn 4VqnxtbGkTUhOZZNGuFA3n6diEuCINbLiKDkENV0DKc0VwHAghfUzZGm00T+WBD3Zcu1 jc+3o9+cftSdQtVIHzbbEcHEeKudDeLKdzv9BXe6GFHeT62DNGRCEnDUtbT4nUtqaqDk 3T9Aj2yOfOeaOdEQMGTAKButSwd0BiTgQshC+vxdEtLtj0Rg/3TLp9OsYiIfNdp8NGEf CYJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=WvFtqDPj; 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 l47si5553598edb.111.2019.10.31.16.08.24; Thu, 31 Oct 2019 16:08:47 -0700 (PDT) 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=WvFtqDPj; 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 S1729966AbfJaVis (ORCPT + 99 others); Thu, 31 Oct 2019 17:38:48 -0400 Received: from mail.andi.de1.cc ([85.214.55.253]:48570 "EHLO mail.andi.de1.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729000AbfJaVir (ORCPT ); Thu, 31 Oct 2019 17:38:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20180802; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To: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:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=MTH/rtGOZowYp/PPfx3AuvCkF0uVwZsmD23YnUBpLLw=; b=WvFtqDPjiRmD8DbIgFLrqdQxuD yqjrPUxdUZTrZn6jhcGDACKld14Oe7m7sv94UNoaL4vIFdzygro4JseCk7ByWGct/SsywkIPdk9xo cK4XE7PY0mMNP6FkhAaHdZcxFyzk1PyaVgVTumJmGLhmZ32fT3NytA1xAvQ6loGcfTyY=; Received: from p200300ccff0b24001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:ff0b:2400: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 1iQI9T-0005lh-Ue; Thu, 31 Oct 2019 22:38:44 +0100 Received: from andi by aktux with local (Exim 4.92) (envelope-from ) id 1iQI9T-00030A-LK; Thu, 31 Oct 2019 22:38:43 +0100 From: Andreas Kemnade To: lee.jones@linaro.org, a.zummo@towertech.it, alexandre.belloni@bootlin.com, linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org, phh@phh.me, b.galvani@gmail.com, stefan@agner.ch, letux-kernel@openphoenux.org Cc: Andreas Kemnade Subject: [PATCH v2 3/5] mfd: rn5t618: add rtc related registers Date: Thu, 31 Oct 2019 22:38:33 +0100 Message-Id: <20191031213835.11390-4-andreas@kemnade.info> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191031213835.11390-1-andreas@kemnade.info> References: <20191031213835.11390-1-andreas@kemnade.info> 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 Defines for some rtc related registers were missing, also they were not included in the volatile register list Signed-off-by: Andreas Kemnade --- drivers/mfd/rn5t618-core.c | 2 ++ include/linux/mfd/rn5t618.h | 11 +++++++++++ 2 files changed, 13 insertions(+) diff --git a/drivers/mfd/rn5t618-core.c b/drivers/mfd/rn5t618-core.c index d4ed2865ed8b..0e3ec9dafb40 100644 --- a/drivers/mfd/rn5t618-core.c +++ b/drivers/mfd/rn5t618-core.c @@ -32,6 +32,8 @@ static bool rn5t618_volatile_reg(struct device *dev, unsigned int reg) case RN5T618_IR_GPF: case RN5T618_MON_IOIN: case RN5T618_INTMON: + case RN5T618_RTC_CTRL1 ... RN5T618_RTC_CTRL2: + case RN5T618_RTC_SECONDS ... RN5T618_RTC_YEAR: return true; default: return false; diff --git a/include/linux/mfd/rn5t618.h b/include/linux/mfd/rn5t618.h index edd2b6485e3b..26c36b58916c 100644 --- a/include/linux/mfd/rn5t618.h +++ b/include/linux/mfd/rn5t618.h @@ -139,6 +139,17 @@ #define RN5T618_INTPOL 0x9c #define RN5T618_INTEN 0x9d #define RN5T618_INTMON 0x9e + +#define RN5T618_RTC_SECONDS 0xA0 +#define RN5T618_RTC_MDAY 0xA4 +#define RN5T618_RTC_MONTH 0xA5 +#define RN5T618_RTC_YEAR 0xA6 +#define RN5T618_RTC_ADJUST 0xA7 +#define RN5T618_RTC_ALARM_Y_SEC 0xA8 +#define RN5T618_RTC_DAL_MONTH 0xAC +#define RN5T618_RTC_CTRL1 0xAE +#define RN5T618_RTC_CTRL2 0xAF + #define RN5T618_PREVINDAC 0xb0 #define RN5T618_BATDAC 0xb1 #define RN5T618_CHGCTL1 0xb3 -- 2.20.1