Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8822764rwb; Tue, 13 Dec 2022 10:51:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf5OcapwPaHhIQDPHbtZkpQaGI08ELxbdcXxRnheor63iRvf1OicM1IFVdH0cc2SV3S1jqVf X-Received: by 2002:a17:907:9144:b0:7c0:e6d8:7770 with SMTP id l4-20020a170907914400b007c0e6d87770mr14833713ejs.74.1670957517578; Tue, 13 Dec 2022 10:51:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670957517; cv=none; d=google.com; s=arc-20160816; b=cbum6H3U38t/NrXXj+VDi9Tx9d6ioFewA2+9V+IvsmE+Mmx02BXoa1d0mmcbQMexm+ Fdl4HOPOYRy8F7gnLBdr+LAL2PgouE0B/LNDBFjhaFXG0lzGwo0NNtq1BiSpaGoP/bbA AExsRcWfeWPVlSA9oZAABjkkM9j1SdBA2Y6VkdS461FbvJI2Lt1XmqhXWAexw9VbbDAZ 86J0jbd59kENCFjTF+oZqd4b+zvbMs+wSws0YbW7lnNbkrVbQTlK14FITLZqtfasNApd d7/y/wcg3hUmyEufSIzwIFL/NrUADS+ARjUY1tY+wBj2KzTWgAJuXjwOunm6kdQWVQNn D8QQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=IB2xWWEhlxjxvd5E16+7UlIAcdyRYrIeQUS+dQ8G5as=; b=x5JUstRL1n3EHq/JtZ8fVIAnd175CG6d0xQJVzQleeAAMDEAn/MOhRWa7y0bXehzaV Qepo5XcS7YXRSkClmXSNgT3pkA7peypXCkM12thnF4yL4pWoZMNDV+GYHGQUMT3zXh00 qyPbcpumHCipJKIdTKzLG618VPgWfHGqrPxpqprTuoF/AnAVtd9EJCHIs5dFjKOlSrP8 5epJB0ZDkzSB1KPGdisWSd1KjfftuOxS9aCHOurovFsrAqsnEX6/qZaxwxFywge+4tH+ A5sG025OtwP5XU0hPij8+sYP8cA0P1BWWuKubKlNUOEr4mre9m/GPqP6UVez/PwEDrqr yM0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="B4k/NCHe"; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hq20-20020a1709073f1400b007c0dcc79ec1si10091578ejc.164.2022.12.13.10.51.40; Tue, 13 Dec 2022 10:51:57 -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=@redhat.com header.s=mimecast20190719 header.b="B4k/NCHe"; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236297AbiLMSTr (ORCPT + 73 others); Tue, 13 Dec 2022 13:19:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236256AbiLMSTp (ORCPT ); Tue, 13 Dec 2022 13:19:45 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 525181A5 for ; Tue, 13 Dec 2022 10:18:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1670955538; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=IB2xWWEhlxjxvd5E16+7UlIAcdyRYrIeQUS+dQ8G5as=; b=B4k/NCHeb59cJ9kuUddtd5HTzSuKXY8EuJBaXVLZ007DkJ+1eCbuOV4thyFM5NEGOJRTMF jBD9fJV9sO+m7Tnc53AqZy6RYJxB6g88uePRxVUWLN+1knECpPOyTlIQaXzKXGb85kZnrq pdXP5jLfrJQgpg+1OFGm9vOd6nq93V4= Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-516-T2qETF95PPGDCkT_ZsCnDA-1; Tue, 13 Dec 2022 13:18:57 -0500 X-MC-Unique: T2qETF95PPGDCkT_ZsCnDA-1 Received: by mail-qk1-f200.google.com with SMTP id bi42-20020a05620a31aa00b006faaa1664b9so538429qkb.8 for ; Tue, 13 Dec 2022 10:18:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=IB2xWWEhlxjxvd5E16+7UlIAcdyRYrIeQUS+dQ8G5as=; b=MJyOQcSTX4PSCZrTV6wAjQYMvSmrKWAkxmnHPEd5CCGXyyFepBdKGHCkxeItI7ONm/ PPcy9ghWyELbQFmIX6N2u12kzjJxQuXdtdVG2UylaZRQJuCTp/VBIOahm18s1Dlzmui5 GEAOxPbtAtNQLHoDJdznCLxvJxVxl1vkafjHfAZYIH+l2gfXHChqmPe20d2sQrYtmT/n 4V+f666UyfdIlH44sPTWG08Vwv+sNheS/QoxKUYdCu93Zcca/dyURWv2GP8yjmfPmDQX CM5q1GLp4K2gQe5ymyamyS7ogCAkmSOIhsOhQRWgU4ZtqapjRyAgA8gqukvAO5N0e8f9 /X5Q== X-Gm-Message-State: ANoB5pmOY79u7kYh/R+bU5t+nEri7JeNMwPA0in0NMuoJmuYieeIe50t QaCJ+MjPZKLKUAZlsvNlwPZrtXKp/6U+9TnHsiVKRq96gZ9zFziO7sQlIq/L5SiMmaR3hTTnu4a ousNNpQkXytsyRqwRgHeS3Jov X-Received: by 2002:ac8:4601:0:b0:3a7:fc39:6cd with SMTP id p1-20020ac84601000000b003a7fc3906cdmr6098304qtn.10.1670955536921; Tue, 13 Dec 2022 10:18:56 -0800 (PST) X-Received: by 2002:ac8:4601:0:b0:3a7:fc39:6cd with SMTP id p1-20020ac84601000000b003a7fc3906cdmr6098280qtn.10.1670955536668; Tue, 13 Dec 2022 10:18:56 -0800 (PST) Received: from localhost (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id y3-20020ac85243000000b00398313f286dsm281671qtn.40.2022.12.13.10.18.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Dec 2022 10:18:56 -0800 (PST) Date: Tue, 13 Dec 2022 13:18:55 -0500 From: Eric Chanudet To: Dmitry Baryshkov 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 Message-ID: <20221213181855.ylkb3dglw3bkwor5@echanude> References: <20221213005539.1133443-1-echanude@redhat.com> <219F5CF2-BA91-4749-A32C-84BCF541ECE0@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <219F5CF2-BA91-4749-A32C-84BCF541ECE0@linaro.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 13, 2022 at 04:18:00AM +0300, Dmitry Baryshkov wrote: > >diff --git a/arch/arm64/boot/dts/qcom/pm8450a.dtsi b/arch/arm64/boot/dts/qcom/pm8450a.dtsi > >index 34fc72896761..af761dbfbc66 100644 > >--- a/arch/arm64/boot/dts/qcom/pm8450a.dtsi > >+++ b/arch/arm64/boot/dts/qcom/pm8450a.dtsi > >@@ -13,6 +13,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>; > > > 0x60? Checking downstream it uses 0x61 for the ppid. This is also the case for all other descriptions of that RTC I could find. On the other hand, that does not describe the "alarm" register bank at 0x6100. Should it be added, if anything to match reg-names? 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 -- Eric Chanudet