Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1375377pxf; Fri, 9 Apr 2021 07:01:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhhrUSmQdAYxF+QouQvqcp+Ivlhwa3W21SojZBaaQ3bcN40Kmrz6fRBuJWn2Vbvwon5KRF X-Received: by 2002:a17:90a:c7d5:: with SMTP id gf21mr6141139pjb.80.1617976903219; Fri, 09 Apr 2021 07:01:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617976903; cv=none; d=google.com; s=arc-20160816; b=GqNVLw77cMmmmiSmOUoHek1+0NBK19S5I0aICswo2D27oIF3JyZKFBrX+CqyuRmJt1 P7ehXpz0nfCW3mkNZ39AFEokFXa0cZizR9XM+tKg6fMKlPG0nGvn9j/Dxan7Yje1rusT 0kRF06ta8BVWz2Zg6gPMqOO+vFMbVg/Zxk18dmRKi0Y1E6+XcquLLIMv29khYwcVOFNJ SPA7JoVH30EjiUEA+O5a9WHTpwSFSPPObzlVnUkIobhvL5JcLqPM3OfyShCQNOs7cMfJ HgcBTYoEzJdZDKE1SUGLlbUKLvruWX7JT7UHq0iZQvOMdAMuUJDg4ZVOmaIpdfMAE7mT pQ4A== 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=M7n2NI6i76vsPB478fulrVoetMrf3hMWXornFBJols0=; b=cxlIEu5ybq2YOBcTub5Ae9fSyOZfqWIDrvwDnMvYLrXrmfLN6/6+lIS2YWClKvKUCO 9weeDnXbRhG5sK+Jv3jq/xvM3ulMo/2krwPjl6rF5HMSkA34a6GxtldXUZFvKpUKOFpj 9WKymp6RDIpDlGA6i2CkB/uciu1uw8rRAyFWKN1YijK18HQ55Zs0suoeTqpwsKdPuxPa NvBwOJJyf0YsPlj7VlpwbqrnQ3kGxo9Ap35okNBM14mP8RROngpXjOk9mktSiOWVcevm t/N/AXaefS7SEq//+C/87bgt4e7LlwQmXQknbDNrMkeOeLSpbZB1c9q4VLPjnFXwKR3w Ke6A== 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 k7si3006228pgl.450.2021.04.09.07.01.28; Fri, 09 Apr 2021 07:01:43 -0700 (PDT) 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 S233875AbhDIOAl (ORCPT + 99 others); Fri, 9 Apr 2021 10:00:41 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:52694 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231402AbhDIOAa (ORCPT ); Fri, 9 Apr 2021 10:00:30 -0400 Received: from ironmsg07-lv.qualcomm.com ([10.47.202.151]) by alexa-out.qualcomm.com with ESMTP; 09 Apr 2021 07:00:17 -0700 X-QCInternal: smtphost Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg07-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 09 Apr 2021 07:00:14 -0700 X-QCInternal: smtphost Received: from c-skakit-linux.ap.qualcomm.com (HELO c-skakit-linux.qualcomm.com) ([10.242.51.242]) by ironmsg01-blr.qualcomm.com with ESMTP; 09 Apr 2021 19:29:40 +0530 Received: by c-skakit-linux.qualcomm.com (Postfix, from userid 2344709) id 95B9BB6B; Fri, 9 Apr 2021 19:29:39 +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 V2 1/4] rtc: pm8xxx: Add RTC support for PMIC PMK8350 Date: Fri, 9 Apr 2021 19:29:23 +0530 Message-Id: <1617976766-7852-2-git-send-email-skakit@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1617976766-7852-1-git-send-email-skakit@codeaurora.org> References: <1617976766-7852-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 Reviewed-by: Bjorn Andersson --- Chnges in V2: - No change. 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