Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp98241rwb; Tue, 13 Dec 2022 14:36:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf6VXH6OSYe3iiHgSp+oIJ2oenLJJV8AoX7dvqYY6cAJFjhzYbiSLihdqndd3lKjoO9R4XL1 X-Received: by 2002:a05:6402:2986:b0:463:c2f9:8a0a with SMTP id eq6-20020a056402298600b00463c2f98a0amr17558503edb.33.1670970978653; Tue, 13 Dec 2022 14:36:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670970978; cv=none; d=google.com; s=arc-20160816; b=vbWZxVk9jcSX4rMD+0ovhdh/NS4xBqa0Al65bA3R0vi8Zhq+tc+97NWX1W7uXxt9Ej 7X1Yl83AuQqSG3h2lnQkJclG6h9LouJoRcbzSNifrsLrrsqwRGorEV384RdA+jNAr+uF +7Xdq6iM5Ik0oA+rpMn7Qzi/NLodUPqhv3GzzU8c7Sy2jwBdH4nsr+Hu6u1J3OlN5b5Y gQxEe5CWSNS0p/7/hHCMOKGMBTpQIUPzYJbrLJa/u+dErahyRtLWvMtV9u6v8Cxg4WYU +Dak4xZU04hfCXkZAbfMzMpI+Jv2Hd6+Wt1z3qaFYoAhQTSCVaJ+Kdax0DhLyTfsUYiq +Z1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:references:in-reply-to:user-agent:subject:cc:to:from :date:dkim-signature; bh=qwTfzPVAukeSo9de2K3wL2rXG0t+xWNA7VPZ779aEaM=; b=wwQEanObYieToagDQtp/t22tIEUX9MkJtQvB7pilPPwgrSixPsgzqVEMaoGrsaBXCO kXdF1vltmiAkhaq7GL1qmeQ16osqjWxOWAr6o7WqSazOTaHilTQpxiAZUtMGamIEFht3 obpaGVL4ukIBU4Mt6QNaJkWOY1PIpdJaVFRqvtSseXpP1FUxiiSYP/80PUQE4/EM07br 8BTz4QN/zpOO7UXJfn7cFeczN1XAgjnfZXVFvOUYdLMt5yHMvN8UXYivgcO57nNKoAMF GXfL7vCpp7sfM9XeVtR73bYoLWu8FCLBIv+alHUbu4d9MBwntkoB1WGcKE9T1vjJVvBe hL6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Q26p9NKC; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v7-20020aa7d647000000b00458c5c47070si9522496edr.234.2022.12.13.14.36.01; Tue, 13 Dec 2022 14:36:18 -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=@linaro.org header.s=google header.b=Q26p9NKC; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235875AbiLMWQl (ORCPT + 72 others); Tue, 13 Dec 2022 17:16:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229532AbiLMWQi (ORCPT ); Tue, 13 Dec 2022 17:16:38 -0500 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55838193F3 for ; Tue, 13 Dec 2022 14:16:36 -0800 (PST) Received: by mail-lf1-x135.google.com with SMTP id cf42so7383125lfb.1 for ; Tue, 13 Dec 2022 14:16:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=qwTfzPVAukeSo9de2K3wL2rXG0t+xWNA7VPZ779aEaM=; b=Q26p9NKClGPwIX+bpk9mYpBBk5EoqUgHHaFCELzFQyHIu0si/92T6tlDy8BtIbuKQg G8NA8TLQN5IB+QRFPm+G/RCDWIzO7QPCZ5VoY3Jh8gyyzimvzbq/9zrgLh1DjUE+53Qy GNOmw9c9t++B7anPUr8jCEqO10JnRvXcQX8r9rlstTxNio9dLboEd0i/LcmFZ7Xy96Kr zrzEY6TDuMnfh375G+6cB46dh074iRpfJ4kAe2UJ5iOI91oYTp59CgBw7i8gUhbXu3AG JHrP2oWZl003Bhz983ZevnJQVAufzDIJ8JmIa6EYh6j7Vc81UEA3KoPv4NNpPOLabPnl r+cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:cc:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=qwTfzPVAukeSo9de2K3wL2rXG0t+xWNA7VPZ779aEaM=; b=1U6M7s0vvrPgMFQtgsZBjEDYi1rDvEDu9P4bvkosPZ9TPc1s2FOzRxIojoJnsM9+G4 UAI+p4aedjxlv8+rUCr4MXraviCW+Yzog62e6cAGOz/DrTrwDKIF+EKnvdJr+Z3Eaxhs Z5iUoLuPXhtpuXY+czhWaFGVfVMmXTQMiJa8pGhG+Bac9Klg5l41FuzLbZ6+Y3tQNuGJ PKvuaEla/xKEl4B37VHjfTRK0VGBi83bmv32V6op037er+N2i+PfMFVJDCKHEnTjc+ux m31yzbK/EOjpbTSoHfAj7ZWVc+cyWmdjjoOxqezQYr3l9JpcuPQMUlhBvzXPudopdBTW BM7Q== X-Gm-Message-State: ANoB5pmsxLpNsUoq0kfgk1mEL5xa7C9A7MkT2lCkTzdWSf5hHiLW07MB RDbtQbjqJKH4RraUOgzaDNiV1zzSxvCGEbNgNfTVfQ== X-Received: by 2002:ac2:54ad:0:b0:4b5:7bfe:4e44 with SMTP id w13-20020ac254ad000000b004b57bfe4e44mr5618365lfk.6.1670969794701; Tue, 13 Dec 2022 14:16:34 -0800 (PST) Received: from ?IPv6:::1? (dzccz6yfpdgdc5vwjcs5y-3.rev.dnainternet.fi. [2001:14ba:a085:4d00:8c19:462c:c647:13f2]) by smtp.gmail.com with ESMTPSA id s17-20020a056512215100b00498f77cfa63sm528948lfr.280.2022.12.13.14.16.34 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Dec 2022 14:16:34 -0800 (PST) Date: Wed, 14 Dec 2022 00:16:31 +0200 From: Dmitry Baryshkov To: Eric Chanudet CC: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Konrad Dybcio , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Halaney , Brian Masney Subject: Re: [PATCH 1/2] arm64: dts: qcom: pm8450a: add rtc node User-Agent: K-9 Mail for Android In-Reply-To: <20221213181855.ylkb3dglw3bkwor5@echanude> References: <20221213005539.1133443-1-echanude@redhat.com> <219F5CF2-BA91-4749-A32C-84BCF541ECE0@linaro.org> <20221213181855.ylkb3dglw3bkwor5@echanude> Message-ID: <6F3DC711-88FE-423E-A025-B6AF526B89F2@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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: X-Mailing-List: linux-kernel@vger.kernel.org On 13 December 2022 20:18:55 EET, Eric Chanudet wr= ote: >On Tue, Dec 13, 2022 at 04:18:00AM +0300, Dmitry Baryshkov wrote: >> >diff --git a/arch/arm64/boot/dts/qcom/pm8450a=2Edtsi b/arch/arm64/boot= /dts/qcom/pm8450a=2Edtsi >> >index 34fc72896761=2E=2Eaf761dbfbc66 100644 >> >--- a/arch/arm64/boot/dts/qcom/pm8450a=2Edtsi >> >+++ b/arch/arm64/boot/dts/qcom/pm8450a=2Edtsi >> >@@ -13,6 +13,14 @@ pm8450a: pmic@0 { >> > #address-cells =3D <1>; >> > #size-cells =3D <0>; >> >=20 >> >+ rtc@6000 { >> >+ compatible =3D "qcom,pm8941-rtc"; >> >+ reg =3D <0x6000>; >> >+ reg-names =3D "rtc", "alarm"; >> >+ interrupts =3D <0x0 0x61 0x1 IRQ_TYPE_NONE>; >>=20 >>=20 >> 0x60? > >Checking downstream it uses 0x61 for the ppid=2E This is also the case >for all other descriptions of that RTC I could find=2E On the other hand, >that does not describe the "alarm" register bank at 0x6100=2E >Should it be added, if anything to match reg-names? Definitely yes=2E I think otherwise it breaks the idea of reg-names=2E > >I tried a quick test of the alarm on sa8540p-ride: >$ echo $(date '+%s' -d '+ 10 seconds') > /sys/class/rtc/rtc0/wakealarm >It logged the interrupt: >172: 3 0 0 0 0 0 = 0 0 pmic_arb 101777441 Edge pm8xxx_rtc_alarm > --=20 With best wishes Dmitry