Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3829111ybg; Sun, 20 Oct 2019 22:44:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqy9J3VF8GE98fgZ5ObJWrZs0NMMNSi33t64XxM3lUzi3SSh+ji+d83pyiLxXtOGBcApiqnK X-Received: by 2002:a17:906:6b99:: with SMTP id l25mr20087294ejr.233.1571636671441; Sun, 20 Oct 2019 22:44:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571636671; cv=none; d=google.com; s=arc-20160816; b=UeEDRYDBvB9cfWtCQs3fI21XvSP0Tuj4ObVdZyPuVKFnbHy76PssQlAn8QrNoNokve L2TJXBoHnSZ5XP5Qh7vWwbLdHYh1oFhLUkK2PILJpgc3XAOoFbYLA0XVVO/SvEV226VR 9oWM5qsQhOJg5Body6pRs//yClLnMiUVnuJ5f0enICXDrk+n0tjIdu7aPN94cllnPBfR iqJA9YZnYPDdmNqVUNH+5S1pV1TCejuCBG9czIlyVIdZRr34aykPVpxKLX4KUAo47iSK tX8yH691N6nLi50dArnpSoPNG4FrwMI6gbxiCpLENmsE2uwntkaHe5/y9SPkVRocZ4kI xb0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=k74XBMQhZo+R8uuiXR5Y1ZY5y1k978WldpTVhlXoirk=; b=gi6rMUgCB5LPo3puBIjP/S8UY7xIb8rk6muC7LkWCnJFWBd4whR3fWS4VPCS+NEi1b k7Che1/RFf06VdPFYTVJkZ1dE7iBZJmY/9kXMeBMI5GXfepxEtAMAU/5rr4/vmL/ivCR iDBWH4opW3cbUtQtNbk2VYG7OTQa3Yec7YpS9je0sa21/aWS4lDgfnA2p7Ms1QFw6NtE 032ISbuX18UBzm7G+vmahZ4MEJZTXMcgjCWfsp6KqghAs8cfrP3J3vdqnPGydRLAqY1/ ZbXTjJj4ITyTdGOTx/bkwlxNxGE42Is0xr3pCNPk+1H0vOPKRUM9C5PoqJ0io/opfZf2 D8+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=PdLQQrDw; 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 os27si426676ejb.71.2019.10.20.22.44.08; Sun, 20 Oct 2019 22:44:31 -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=PdLQQrDw; 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 S1727090AbfJUFlo (ORCPT + 99 others); Mon, 21 Oct 2019 01:41:44 -0400 Received: from mail.andi.de1.cc ([85.214.55.253]:39232 "EHLO mail.andi.de1.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725769AbfJUFlo (ORCPT ); Mon, 21 Oct 2019 01:41:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20180802; h=References:In-Reply-To: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:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=k74XBMQhZo+R8uuiXR5Y1ZY5y1k978WldpTVhlXoirk=; b=PdLQQrDwoljP1wHeL5jrEEAKT doqs8TOrDds2qI6QvwcpVTiy2HEbNdQAYjxl7toZkKVFu6n+idnoZoPuZCxdCm8E3BRjUvqTP3Xzf 5j4Aw4D7yFLFs5S0s0SI+yVWxLqSL7Y2T+WYPTaO9OlT+S0cHBP6yMuuOburtPSNXQFUI=; Received: from [77.247.85.102] (helo=localhost) by mail.andi.de1.cc with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iMQRo-0002hK-9I; Mon, 21 Oct 2019 07:41:40 +0200 Received: from andi by localhost with local (Exim 4.89) (envelope-from ) id 1iMQRn-0006on-4z; Mon, 21 Oct 2019 07:41:39 +0200 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 3/5] mfd: rn5t618: add rtc related registers Date: Mon, 21 Oct 2019 07:41:02 +0200 Message-Id: <20191021054104.26155-4-andreas@kemnade.info> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20191021054104.26155-1-andreas@kemnade.info> References: <20191021054104.26155-1-andreas@kemnade.info> 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 4d680f34ad2f..eb2ee7a776ab 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