Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1375274pxf; Fri, 9 Apr 2021 07:01:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEVXyKC+aAZl7qg4+rqESBqQFFYlS+j3MRHmo3omQr3KawqnI3CtaYrktn+eZsMe7L3/a1 X-Received: by 2002:aa7:c2cc:: with SMTP id m12mr2475893edp.259.1617976898643; Fri, 09 Apr 2021 07:01:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617976898; cv=none; d=google.com; s=arc-20160816; b=EHQMe5+zShEUCS6tHF1GHoHy4WbXsQQm2heDGLOgsMhj17l0d3zbdOxDbStsymsJb9 H+E0XdiX9YB4HNylBko42OShXNtlG69vRsbVc6topof8R/BffVO9dreh4vpdHJxxH0QX PmdU7HsqHi0nW/H1tM7HcxOc+qrKLj7JMK5noMfgjPym7OpcW1nui8DkZnqwkQpAqNX/ 5t2JanoVVvy+TzubnOXx+amEOj20aB9ppDScw7vxJCSIU3zBfmsyyRd2dSyJg51/xDXF CyQ5GhWhT1m33kKerjujDk3jDmbv3DfyVo/s8Ug5NIK6y4kKU85WYzf0qngzQlTYtOf7 rzJg== 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=9GnwfjuONcBOKbUF9HaNDG0otS/GCEdVo34HOMMkEdo=; b=E+3PjeqdKLbTm0RmAoPi228HmfEhGytPKZcQgL1KU92KcLbX5ooPsPqTjARueGS1// OcR9SmZZH7vvh/fkX+RiFSZ7uK5nzrbnvNPWaGMqwL9fgJElb5KzgFAoXcX7LxX/sWrh dlJ4I3uq9cYo1lx87eo6pFq9W42aBCEPU7YWvOPtJPlxZOVKsDLujsJuCoiTvkEj3yTV f5aR3+jM3O9NKaHrnhIstuAR1KfZhEjHpr57+3I5/CDDi2f/e8b3FZW0MFFXmAEmxrK3 mVEMAapD0JcJsipmPUxMjEELgddDuu04NJ73aUU4Gn3TwmR5cJp3FW4JGfcTQ7OxYg+1 s7bw== 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 an16si2006883ejc.39.2021.04.09.07.01.13; Fri, 09 Apr 2021 07:01:38 -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 S233757AbhDIOAa (ORCPT + 99 others); Fri, 9 Apr 2021 10:00:30 -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 S233577AbhDIOA3 (ORCPT ); Fri, 9 Apr 2021 10:00:29 -0400 Received: from ironmsg08-lv.qualcomm.com ([10.47.202.152]) by alexa-out.qualcomm.com with ESMTP; 09 Apr 2021 07:00:12 -0700 X-QCInternal: smtphost Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg08-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 09 Apr 2021 07:00:09 -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 D92404EFA; 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 4/4] dt-bindings: rtc: qcom-pm8xxx-rtc: Add qcom pm8xxx rtc bindings Date: Fri, 9 Apr 2021 19:29:26 +0530 Message-Id: <1617976766-7852-5-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 binding doc for qcom pm8xxx rtc device. Signed-off-by: satya priya --- Changes in V2: - Added this in V2 to have separate binding for rtc node. .../devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml | 62 ++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml diff --git a/Documentation/devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml b/Documentation/devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml new file mode 100644 index 0000000..4fba6db --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml @@ -0,0 +1,62 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/qcom-pm8xxx-rtc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm PM8xxx PMIC RTC device + +maintainers: + - Satya Priya + +properties: + compatible: + enum: + - qcom,pm8058-rtc + - qcom,pm8921-rtc + - qcom,pm8941-rtc + - qcom,pm8018-rtc + - qcom,pmk8350-rtc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + allow-set-time: + $ref: /schemas/types.yaml#/definitions/flag + description: + Indicates that the setting of RTC time is allowed by the host CPU. + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + #include + spmi_bus: spmi@c440000 { + reg = <0x0c440000 0x1100>; + #address-cells = <2>; + #size-cells = <0>; + pmicintc: pmic@0 { + reg = <0x0 SPMI_USID>; + compatible = "qcom,pm8921"; + interrupts = <104 8>; + #interrupt-cells = <2>; + interrupt-controller; + #address-cells = <1>; + #size-cells = <0>; + + pm8921_rtc: rtc@11d { + compatible = "qcom,pm8921-rtc"; + reg = <0x11d>; + interrupts = <0x27 0>; + }; + }; + }; +... -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation