Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp140022pxf; Wed, 10 Mar 2021 23:35:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJy0Rn64JTpftz6n+Ng9ctdjlLTm+b9xR3CAHVqg6x96ILKk/HUVJcV2mGh5k10di1x/WUm6 X-Received: by 2002:a17:906:4ada:: with SMTP id u26mr1782928ejt.129.1615448141322; Wed, 10 Mar 2021 23:35:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615448141; cv=none; d=google.com; s=arc-20160816; b=HD3Wvc9Mn9dOyazeN0Xm5XwO1T0yos/whE8DU7pPXkGmmDAM5/IPvANc0BCbW2B8Td nUI0rMb90ebF0OiZrcrajBgmDR7XUdTJ5MxA0384XDNRQwc/jZXJ5cDRzqLTIR+L1A0S NvXHCaqOTztElK9Ue6C5TmL+qd6I66fzBU27i8cf/D6Eh9wUElu+XkO017I/mPPcwEgQ w23Tem1jhKS/MiQyd+KWCHhbCpqaASn1YKAS5Gs3qcduty2z18Y9lrQTnz4aRKImnRtD juxWtway66rXiaIte65XfaAVq9BbBxHiDDEFo2GXTaZrjfLG2ZXoIS5WiQGTydQV/jtu /SZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=uSpGijOF/hylS+FsUbHMzgNBrdPfeQc8BAduxnCUCSg=; b=HPuRTBgHEjBXPti/+tLjFVSugpN8OYTtdZqOW7hhSHV3KbKHb3EU0rM1cayx4q0lyx GGI+okW+hvzQLwNN5sRpJMmckdSSioyxiOUYJvlJ5+PN3p950CXca9/oOGRrCzgmeyR3 U7XdX7cB4HLVDG8LddurXhLd4G3eRNwiCgy7TcfoHJ4N4H06erqcUH2OGJBcwxsfERLz ByeSlhYBiL9FrHqZ7id9TNPvkmPKXz3r21XIAHo7yBvTbpJx/Uy0XLEkxLP3FQd2f36j G5fdPoFRI8SYCDlzSXOcohsncW+I4qoNAG3TArywN7HtIz9RhFRl81GcuzCtCLoqZpL/ J+/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cd22si1174592ejb.384.2021.03.10.23.35.18; Wed, 10 Mar 2021 23:35:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231890AbhCKHbo (ORCPT + 99 others); Thu, 11 Mar 2021 02:31:44 -0500 Received: from alexa-out.qualcomm.com ([129.46.98.28]:57693 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231773AbhCKHaj (ORCPT ); Thu, 11 Mar 2021 02:30:39 -0500 Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 10 Mar 2021 23:30:39 -0800 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg-lv-alpha.qualcomm.com with ESMTP/TLS/AES256-SHA; 10 Mar 2021 23:30:36 -0800 X-QCInternal: smtphost Received: from c-skakit-linux.ap.qualcomm.com (HELO c-skakit-linux.qualcomm.com) ([10.242.51.242]) by ironmsg02-blr.qualcomm.com with ESMTP; 11 Mar 2021 13:00:08 +0530 Received: by c-skakit-linux.qualcomm.com (Postfix, from userid 2344709) id 25DDC4107; Thu, 11 Mar 2021 13:00:07 +0530 (IST) From: satya priya To: Alessandro Zummo , Alexandre Belloni , Rob Herring , Andy Gross , Bjorn Andersson Cc: Lee Jones , linux-rtc@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kgunda@codeaurora.org, satya priya Subject: [PATCH 1/3] rtc: pm8xxx: Add RTC support for PMIC PMK8350 Date: Thu, 11 Mar 2021 12:59:56 +0530 Message-Id: <1615447798-6959-2-git-send-email-skakit@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1615447798-6959-1-git-send-email-skakit@codeaurora.org> References: <1615447798-6959-1-git-send-email-skakit@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the comaptible string for PMIC PMK8350. Signed-off-by: satya priya --- drivers/rtc/rtc-pm8xxx.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/rtc/rtc-pm8xxx.c b/drivers/rtc/rtc-pm8xxx.c index eb20659..29a1c65 100644 --- a/drivers/rtc/rtc-pm8xxx.c +++ b/drivers/rtc/rtc-pm8xxx.c @@ -445,6 +445,16 @@ static const struct pm8xxx_rtc_regs pm8941_regs = { .alarm_en = BIT(7), }; +static const struct pm8xxx_rtc_regs pmk8350_regs = { + .ctrl = 0x6146, + .write = 0x6140, + .read = 0x6148, + .alarm_rw = 0x6240, + .alarm_ctrl = 0x6246, + .alarm_ctrl2 = 0x6248, + .alarm_en = BIT(7), +}; + /* * Hardcoded RTC bases until IORESOURCE_REG mapping is figured out */ @@ -453,6 +463,7 @@ static const struct of_device_id pm8xxx_id_table[] = { { .compatible = "qcom,pm8018-rtc", .data = &pm8921_regs }, { .compatible = "qcom,pm8058-rtc", .data = &pm8058_regs }, { .compatible = "qcom,pm8941-rtc", .data = &pm8941_regs }, + { .compatible = "qcom,pmk8350-rtc", .data = &pmk8350_regs }, { }, }; MODULE_DEVICE_TABLE(of, pm8xxx_id_table); -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation