Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp183735ybf; Wed, 26 Feb 2020 11:06:35 -0800 (PST) X-Google-Smtp-Source: APXvYqzpAL9U2Kkp50SZB3n6p2wUnxfdiKLUyqUw07gfLk1t1g+Xi0jsor+fvsk1PsAx+6mR9mTs X-Received: by 2002:a05:6808:8cd:: with SMTP id k13mr431760oij.4.1582743995292; Wed, 26 Feb 2020 11:06:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582743995; cv=none; d=google.com; s=arc-20160816; b=vECJpV/dMQqQ8ePF5ko8tiGYviOOe8/BT3J2gKQBTrQitS3OhltL9vr+/MNtZwUaSQ /v3wz8o/0V6chXeNr2Tbi0kxu1sSTKTalgBTVVHk0GSSaQaPdTAF00kYISuu3KUczZcf QB9fJEmOXp3hdcZiHy9upWlHwmTkOzQSS71Y4+wdnSEqZ1bAQwQZprv6mQQnymj/1bh2 bzmlT2JmbRIAZ7QoGBERGZJlprsTBTl8dJDHn154V6Jq6rU4JcFxS105CBe1I4fcsK+a x98KzB+e+wQhXuPAlyWd/LuFwMaq+SQFEaFTtt7D9MeKCZNzylBI3yQ5sv6nfFMShjs/ Ze1g== 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=0GhowVpFXYzQuOkT4j5/nD4JG7I+146xXWicQylkZgI=; b=LcGOTmiJKVkYb4WdmdXUrui8ZjsrJcQqxWAui34t7myz71rss+elJu0YMc/iP5c6fc n82lTbRZ/5zg8YF0hGtQsJNs5ZOKFNGqi6UGTizgh7Nl2w7OxOa2vEm0QENL6p7HVYQ5 MpqcMjfFx+aeiMQLFGJlElviLf+93wbiCdreGB7vBOcpxJOYPBpGyg/q30detGSwV2hF V0YnZG/v9jZKABWIJXE6KATMIDI6HX6KEfVp+zi4poJxC9RPyuB5yUcC6R1sfINIld2s 4yWwZR2Wm8vz/bXAlA/MihT/kMgM3kZTFSjDhVRAd4F3+bJed58kKqha8JsKUWTLaZGq nZjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=Qlwqkt8E; 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 a12si86158oie.87.2020.02.26.11.06.22; Wed, 26 Feb 2020 11:06:35 -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=Qlwqkt8E; 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 S1727296AbgBZTFj (ORCPT + 99 others); Wed, 26 Feb 2020 14:05:39 -0500 Received: from mail.andi.de1.cc ([85.214.55.253]:56868 "EHLO mail.andi.de1.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727118AbgBZTFi (ORCPT ); Wed, 26 Feb 2020 14:05:38 -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: 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=0GhowVpFXYzQuOkT4j5/nD4JG7I+146xXWicQylkZgI=; b=Qlwqkt8ELU6jGfji+ThBgl38+g e2RtAC4AuxGLbD2E2GP7i43OWmCSb03FZoDU2D4pGtzsfMW5xRUgEZqdjPLl/q3XDJIDtmD2oxvbw KU2zjBv7gNgGgOnUxRZhHy9WZZuIyU9M86Q4ZK1H0PYkMrM0hQwfbt6mhEaG5dBrLRXQ=; 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 1j71zx-0007kO-Sa; Wed, 26 Feb 2020 20:05:34 +0100 Received: from andi by eeepc with local (Exim 4.92) (envelope-from ) id 1j71zx-0001hC-Cc; Wed, 26 Feb 2020 20:05:33 +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 3/5] mfd: rn5t618: add RTC related registers Date: Wed, 26 Feb 2020 20:05:02 +0100 Message-Id: <20200226190504.6467-4-andreas@kemnade.info> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200226190504.6467-1-andreas@kemnade.info> References: <20200226190504.6467-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 Acked-for-MFD-by: Lee Jones --- drivers/mfd/rn5t618.c | 2 ++ include/linux/mfd/rn5t618.h | 11 +++++++++++ 2 files changed, 13 insertions(+) diff --git a/drivers/mfd/rn5t618.c b/drivers/mfd/rn5t618.c index fbd31397b047..6bdc5a023cbf 100644 --- a/drivers/mfd/rn5t618.c +++ b/drivers/mfd/rn5t618.c @@ -33,6 +33,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 739571656f2b..fba0df13d9a8 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.11.0