Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp8599201ybc; Fri, 29 Nov 2019 13:22:57 -0800 (PST) X-Google-Smtp-Source: APXvYqy5sjnnb2xsFh/MlikhVhbKJsAmMxz5Vkdj8pgcPZVrw99MXxeVdS5J1rLaeq1ndl1G2YnO X-Received: by 2002:a17:906:1f12:: with SMTP id w18mr16548259ejj.63.1575062577538; Fri, 29 Nov 2019 13:22:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575062577; cv=none; d=google.com; s=arc-20160816; b=Q6k3PtcdKl2WH2Cclbi0hyflmo+nZnDt6mNYkkZ9jvpX71iQRnERJX4omlZqgRHRYR q/4vVyryxUJNrdGskpXYGY7fjUH2iQzZYibRPEmmubm6MBHUjk9tWsxm7kqsJzz5A14u hvhIV1IFtii9y11oYz5dt+VlzclUxHfZMqCsBjks2jYg6uLMT2jBgI8CQxYDwjb/e1BH XWzcD+dpzMPM4IzcSETW3M7XvX6mt1j9PM3+JlWra78wKDdiS5XAJp5DWYfOUdmhJQLR 8QE24fS3aXWB1KqxtzAu+ia2m8UvEZEYyYGvJBJNUl0VHK4u2NpiJODGSKjkj9N0gPd/ ztVA== 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=fMPtcjKw6oQHtuSZIQAQnkh06xpOciHO/axqnQVFkZ4=; b=nP3wNY/G5+v4huMQ8zyJk34C1NCDK5vfiS6hjinlZCGzk3UrSupr2rGB52udFc4D9l bJ4ZayzCn/Mvk94+3SES5Q4F3f8SvZold1Dsn2WSzCkZqKa7TqEisyvMLodaYcv8n+pF 8Y/IQiB5KTwj7VcAunfofStO1F8ZUAnwhfMPWNeaBOkcoTnvnFDzY+iUVG2+YVkXS1fc rlK4GxPoGiLxte/vkTJ6KUcrd3HhOJ1mxYLvQB3C6D4m7EAMGf7q8mMqYbXtdrOz8yXE 0z3CLdhgu/NLXuvdG6fkqMD21iea78OAjMygs5vMbb8rXEuhu5ky9wMBIEGPXVyjKuVv xsGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=IPXdz0kP; 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 k4si3707460ejr.273.2019.11.29.13.22.34; Fri, 29 Nov 2019 13:22:57 -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=IPXdz0kP; 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 S1727266AbfK2VVa (ORCPT + 99 others); Fri, 29 Nov 2019 16:21:30 -0500 Received: from mail.andi.de1.cc ([85.214.55.253]:52234 "EHLO mail.andi.de1.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727073AbfK2VV3 (ORCPT ); Fri, 29 Nov 2019 16:21:29 -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=fMPtcjKw6oQHtuSZIQAQnkh06xpOciHO/axqnQVFkZ4=; b=IPXdz0kPB62lKWVYHScZKBMtWH cZw7K7nMxZyk2ZfCVwK36GkYTOeb6x1ldEJGZim2d9lbauOA4C6mcDc0OooHiLVhX/FG6PC20efyo SqawwxC3OGH4DnjDJX9E2WrR/UnlcmMpuppR2UJaG9GyWjkBwybuK08Qu68CoD3Jw++0=; Received: from p200300ccff0871001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:ff08:7100: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 1ianhd-0001yh-8o; Fri, 29 Nov 2019 22:21:25 +0100 Received: from andi by aktux with local (Exim 4.92) (envelope-from ) id 1ianhc-0004mc-Vy; Fri, 29 Nov 2019 22:21:24 +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 v3 4/6] mfd: rn5t618: add rtc related registers Date: Fri, 29 Nov 2019 22:20:43 +0100 Message-Id: <20191129212045.18325-5-andreas@kemnade.info> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191129212045.18325-1-andreas@kemnade.info> References: <20191129212045.18325-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 1e2326217681..fe56c5a50563 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