Message ID | 20221205174309.16733-1-quic_bjorande@quicinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2389382wrr; Mon, 5 Dec 2022 09:45:22 -0800 (PST) X-Google-Smtp-Source: AA0mqf4gtyTquAnpzi8C0LFLpzhDbiiBmEv6Devjxmf1Ge5b6tNfmxO1Dxy3Krn1dLjRZa6Eyq9f X-Received: by 2002:a05:6402:4d0:b0:462:317a:e02f with SMTP id n16-20020a05640204d000b00462317ae02fmr62304922edw.125.1670262322541; Mon, 05 Dec 2022 09:45:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670262322; cv=none; d=google.com; s=arc-20160816; b=VRXAFhAcdM1qLYmx3g+XrJMKGMftxaf7ObOcqYfRdFVmjDqrgukxBBChbLVia9a7qu 7WcFsdUMs6P500cD3xN/Ht0/VGh2LukJjCpvuuxXstlv49Gzs+SsjoihQBfcuty44cM+ PwuFVzsYur7Br1aDeBWe2HMSH5B7O8aQwT0V9VPACQ6g5Ox1+xCwrVG4lpS8FWP8d3Gk /IaLIGPIcdBHokSxLKCZh1gkTY9Sk41H3NLD5p5z4Dxiq4K1+waYZnGAKOxkRRneXFp4 gZuUa0k5h+WIj7VBPHpVEbSc3YHuCBn0BdQEGXNLSBcbYI5LU3dieFBDwR4yDP5MPhmc AVwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=8I7aDZtaEnSmQ1Poj6Oleg2nK49Y57C/bGOLZggJA4M=; b=IoSdQuyyupAMT9LYFHGY5k7ZcrTIGrZK/whehPMS+B5hXzsj5vRFhsAFvpx+pYVOZn NmkFkTedvD2FYUTj1BM0171vuBxOJ5/zO+wXqoznyfPyGymViQ2nrKiued7qW0gYzFFz kaFwexZo5WuxDSl3THaeO/1DI725D1ImYzyqTXurTWM/Fp0vvoKbHVTQVLdtPGd0qvb3 W9Si3kcPvVtbugB7u9CP1awLJO6f8yw/8vEyacEV4nsCmhhUaxS+kLG/QoFf3zacFKNN 5vY8pCphsfSZBpAY9q1e8tdUZoCg9y0ezicnkV9oVmp8oG7RAHuXwElwXQu9eay2OGpD VB7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=JN6URbTe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id de52-20020a1709069bf400b0078d2197d670si10313432ejc.661.2022.12.05.09.44.59; Mon, 05 Dec 2022 09:45:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=JN6URbTe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231737AbiLERnY (ORCPT <rfc822;jaysivo@gmail.com> + 99 others); Mon, 5 Dec 2022 12:43:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230037AbiLERnW (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 5 Dec 2022 12:43:22 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DE1F2BF0; Mon, 5 Dec 2022 09:43:20 -0800 (PST) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2B5H2qOM021459; Mon, 5 Dec 2022 17:43:16 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=qcppdkim1; bh=8I7aDZtaEnSmQ1Poj6Oleg2nK49Y57C/bGOLZggJA4M=; b=JN6URbTeRCQJX/n8Fsja9gTRacfd0I9Y+NDSM46ucwY66fnBP92xtnJaKe3pKAjhhM6O JxtA5NjqOwu4DtBA9YF8AGurQjHowbrs5ehPGjYoRi44DDBpvS9UCVVTCmQUm48lMPu2 Y0miynSnPzaYzNydf/XpaEUQCaLQ/yLKMGNrRpL4u+PlYOyW8rZwgB2HP/b89Z0Dp4wk 4eO4qT4TCtKIJLBDsS176Ej6LaPnHC6K6BthwvNABeBGv/g6yYUNnW2fPh6GwH13O1Pd bK+KzKzu0071MSRqUpI/xiG2Zww6maRphxhueNG725DI0Ljol1DLOa60F5cKZQ8JSa1b WA== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3m7xudcbys-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 05 Dec 2022 17:43:16 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 2B5HhF8b014110 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 5 Dec 2022 17:43:15 GMT Received: from th-lint-050.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Mon, 5 Dec 2022 09:43:15 -0800 From: Bjorn Andersson <quic_bjorande@quicinc.com> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> CC: <linux-arm-msm@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org> Subject: [PATCH] arm64: dts: qcom: sa8295p-adp: Add RTC node Date: Mon, 5 Dec 2022 09:43:09 -0800 Message-ID: <20221205174309.16733-1-quic_bjorande@quicinc.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: bwOG4i9I0hfYwaWKDuuEz_-pmzYja69z X-Proofpoint-ORIG-GUID: bwOG4i9I0hfYwaWKDuuEz_-pmzYja69z X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-12-05_01,2022-12-05_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 phishscore=0 suspectscore=0 spamscore=0 impostorscore=0 bulkscore=0 lowpriorityscore=0 mlxscore=0 mlxlogscore=877 adultscore=0 priorityscore=1501 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2212050145 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751396984804290483?= X-GMAIL-MSGID: =?utf-8?q?1751396984804290483?= |
Series |
arm64: dts: qcom: sa8295p-adp: Add RTC node
|
|
Commit Message
Bjorn Andersson
Dec. 5, 2022, 5:43 p.m. UTC
The first PM8540 PMIC has an available RTC block, describe this in the
SA8295P ADP. Mark it as wakeup-source to allow waking the system from
sleep.
Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
---
arch/arm64/boot/dts/qcom/sa8295p-adp.dts | 8 ++++++++
1 file changed, 8 insertions(+)
Comments
On 05/12/2022 18:43, Bjorn Andersson wrote: > The first PM8540 PMIC has an available RTC block, describe this in the > SA8295P ADP. Mark it as wakeup-source to allow waking the system from > sleep. > > Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com> > --- Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Konrad > arch/arm64/boot/dts/qcom/sa8295p-adp.dts | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sa8295p-adp.dts b/arch/arm64/boot/dts/qcom/sa8295p-adp.dts > index d55c8c5304cc..d2eb3d870f5a 100644 > --- a/arch/arm64/boot/dts/qcom/sa8295p-adp.dts > +++ b/arch/arm64/boot/dts/qcom/sa8295p-adp.dts > @@ -510,6 +510,14 @@ pm8450a: pmic@0 { > #address-cells = <1>; > #size-cells = <0>; > > + rtc@6000 { > + compatible = "qcom,pm8941-rtc"; > + reg = <0x6000>; > + reg-names = "rtc", "alarm"; > + interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>; > + wakeup-source; > + }; > + > pm8450a_gpios: gpio@c000 { > compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio"; > reg = <0xc000>;
On 05/12/2022 18:43, Bjorn Andersson wrote: > The first PM8540 PMIC has an available RTC block, describe this in the > SA8295P ADP. Mark it as wakeup-source to allow waking the system from > sleep. > > Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com> > --- > arch/arm64/boot/dts/qcom/sa8295p-adp.dts | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sa8295p-adp.dts b/arch/arm64/boot/dts/qcom/sa8295p-adp.dts > index d55c8c5304cc..d2eb3d870f5a 100644 > --- a/arch/arm64/boot/dts/qcom/sa8295p-adp.dts > +++ b/arch/arm64/boot/dts/qcom/sa8295p-adp.dts > @@ -510,6 +510,14 @@ pm8450a: pmic@0 { > #address-cells = <1>; > #size-cells = <0>; > > + rtc@6000 { > + compatible = "qcom,pm8941-rtc"; > + reg = <0x6000>; > + reg-names = "rtc", "alarm"; You miss one IO space. Best regards, Krzysztof
On Mon, 5 Dec 2022 09:43:09 -0800, Bjorn Andersson wrote: > The first PM8540 PMIC has an available RTC block, describe this in the > SA8295P ADP. Mark it as wakeup-source to allow waking the system from > sleep. > > Applied, thanks! [1/1] arm64: dts: qcom: sa8295p-adp: Add RTC node commit: 30d70ec8f7fd0c5ecb7f27894dd2514b160257e2 Best regards,
diff --git a/arch/arm64/boot/dts/qcom/sa8295p-adp.dts b/arch/arm64/boot/dts/qcom/sa8295p-adp.dts index d55c8c5304cc..d2eb3d870f5a 100644 --- a/arch/arm64/boot/dts/qcom/sa8295p-adp.dts +++ b/arch/arm64/boot/dts/qcom/sa8295p-adp.dts @@ -510,6 +510,14 @@ pm8450a: pmic@0 { #address-cells = <1>; #size-cells = <0>; + rtc@6000 { + compatible = "qcom,pm8941-rtc"; + reg = <0x6000>; + reg-names = "rtc", "alarm"; + interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>; + wakeup-source; + }; + pm8450a_gpios: gpio@c000 { compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio"; reg = <0xc000>;