Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6974252rwp; Tue, 18 Jul 2023 08:16:58 -0700 (PDT) X-Google-Smtp-Source: APBJJlEDSp65A5zmBfyM7QigoRoAu3DWiSBb8QTpqsJ4jK4kI1XywYc4hjX4HiHfCwxqJyVzyd72 X-Received: by 2002:a17:902:e851:b0:1b8:987f:39c0 with SMTP id t17-20020a170902e85100b001b8987f39c0mr16365961plg.28.1689693418429; Tue, 18 Jul 2023 08:16:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689693418; cv=none; d=google.com; s=arc-20160816; b=Hvv7/T4c0dzZN+bObaSTpjl9A1Wxemskc5fDc+0paiXyFaHTMBeiVe5gQ56UxRBqgs DQybNSH6NmvyOdOU+AD+2RXGLHH57Goo4iZ0c/tHTKW3jSm1f3aWOGNLSlMKn2zdUWPy n5yeXQZaNHRu7KdHJ/pO4sCOun5Ww/vLVwzZkFqVsMcJM0o19njqT8lAP8ccWHCM2UYV +fPV+HnyhVKzCkLfCs6KzHFGTKdXkI/Ia/bMwZObWWqGAOqg2ZqokjoUN8k4lHNKUHRq 0HUeKOKeawddz+23JbY9ndObgLppRbcEbI/W2hcpAkQn1p9mBXOEHLOteds2bPgY3qBa UhEw== 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=a9UHr3e23b92wXYao3lrSR+Cnwz7ksG5waCAvSeyw2w=; fh=qBJvOCkpNJ+lXLWLEstW1zw/uehkNsJH6oByeCRuPAo=; b=bNcXfzuUwvSuZqfqHwDFqcFDhGD5a1qrHGV7MsyEd4wpCxdkgb1rOPtMrFdXbVkiKG UGJGJ3Pv8DgEechZzAL2ujfuQkVQMd/dQqW/R8T5Y/GXBZtfKhJn+k7mQgvj0Kg7wAGA +jO8yvXpb7IKNxUdAHqWaw6jHiLgdeNQmeLEhVV4mVtexi1NYiFtv+lNmKMpqXX0IGun by4MkaqY9fnEluapGkvrF8IljEj7sf8wlETqwhklpVu1DMA5OD63NECjfVHz5BsoNH5G PNWbBJv+27A1jEkMnuNLUajTlSZG9rt2bz0q14IpeDxlRE/qgTNT+rcoUBX9VDMtFZoj R1ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=J3pqVLSQ; 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 h9-20020a170902f54900b001b662f49f60si1884929plf.419.2023.07.18.08.16.45; Tue, 18 Jul 2023 08:16:58 -0700 (PDT) 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=J3pqVLSQ; 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 S231953AbjGRO6g (ORCPT + 99 others); Tue, 18 Jul 2023 10:58:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232649AbjGRO6d (ORCPT ); Tue, 18 Jul 2023 10:58:33 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18C5F171B for ; Tue, 18 Jul 2023 07:57:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1689692266; 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=a9UHr3e23b92wXYao3lrSR+Cnwz7ksG5waCAvSeyw2w=; b=J3pqVLSQ6MdU06oa7t6a+qYx4sx5wBPBP8Xi2SO/fvvN5XAwSyeqpNaQsq8/zlmPUweMZw Hdc8PyKE5rijCmZlr0UUrfkmNgkZLMzSpa5GKGBrsvbQ3A7NkZierU8tmPMtH1vSgKP8dV /wn5zQ00OocBJHQGBmDHWbpj44NVstE= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-277-S5H_SoIPOaewMih97kzF7A-1; Tue, 18 Jul 2023 10:57:45 -0400 X-MC-Unique: S5H_SoIPOaewMih97kzF7A-1 Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-765a6bbdd17so664218485a.0 for ; Tue, 18 Jul 2023 07:57:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689692264; x=1692284264; 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=a9UHr3e23b92wXYao3lrSR+Cnwz7ksG5waCAvSeyw2w=; b=AYQODjjvBXSrCn31NhDKzngp+gQO9kIqXSBkG+xSpJ+XaB/a8SK7PutjnJS6n47PQV oXJmfoZPPjDKN0+wlG6Ldg40/0BcE+EM8jqdoSbnMB4JiQXOZLIf7B7fMHD/vcYu62wm uIwptqv8MVAu1Pv2PhpKGs+Z3yasHTLQv1fMq8TuWhCOHWmcVcbzVdFfjF+LTHR5sH6u WkEjhcmdCT126ZgRFa4gf9MW7BKdXgKLX7NkPs7u7FmPyrJa041GP6eWM3TOxrfQzJW0 G5+uXSrnYcHaDthOuEQJELY18EF+qFYlROHb64qqvKHjVs7a/DuYf64U3qlMxnSpM0sh Lc2w== X-Gm-Message-State: ABy/qLZcEU0aRKPD2mGagGL6Attyp3x1E7pqe17R39eIxxcNbzksreyW B/rSrN9TiDZ1O6rCzUqSxVddAecyfGbqChWgw1/TstgsPfHdaZrOOlMnHFwqLuVGXDh2vjgkWXb w3x8j7pdXkZcz1w2stg2AVhsN X-Received: by 2002:a05:620a:2801:b0:767:1a0c:6ed8 with SMTP id f1-20020a05620a280100b007671a0c6ed8mr20676062qkp.60.1689692264105; Tue, 18 Jul 2023 07:57:44 -0700 (PDT) X-Received: by 2002:a05:620a:2801:b0:767:1a0c:6ed8 with SMTP id f1-20020a05620a280100b007671a0c6ed8mr20676046qkp.60.1689692263888; Tue, 18 Jul 2023 07:57:43 -0700 (PDT) Received: from localhost (pool-71-184-142-128.bstnma.fios.verizon.net. [71.184.142.128]) by smtp.gmail.com with ESMTPSA id g23-20020a05620a109700b00767d2870e39sm646250qkk.41.2023.07.18.07.57.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Jul 2023 07:57:43 -0700 (PDT) Date: Tue, 18 Jul 2023 10:57:42 -0400 From: Eric Chanudet To: Caleb Connolly Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: dts: qcom: sa8540p-ride: enable rtc Message-ID: References: <20230717182351.3389252-1-echanude@redhat.com> <34a4a052-b76f-b49d-6703-405d65ffd597@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <34a4a052-b76f-b49d-6703-405d65ffd597@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_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 Mon, Jul 17, 2023 at 09:28:15PM +0100, Caleb Connolly wrote: > On 17/07/2023 19:23, Eric Chanudet wrote: > > SA8540P-ride is one of the Qualcomm platforms that does not have access > > to UEFI runtime services and on which the RTC registers are read-only, > > as described in: > > https://lore.kernel.org/all/20230202155448.6715-1-johan+linaro@kernel.org/ > > > > Reserve four bytes in one of the PMIC registers to hold the RTC offset > > the same way as it was done for sc8280xp-crd which has similar > > limitations: > > commit e67b45582c5e ("arm64: dts: qcom: sc8280xp-crd: enable rtc") > > > > One small difference on SA8540P-ride, the PMIC register bank SDAM6 is > > not writable, so use SDAM7 instead. > > > > Signed-off-by: Eric Chanudet > > --- > > arch/arm64/boot/dts/qcom/sa8540p-pmics.dtsi | 10 +++++++++- > > arch/arm64/boot/dts/qcom/sa8540p-ride.dts | 15 +++++++++++++++ > > 2 files changed, 24 insertions(+), 1 deletion(-) > > > > diff --git a/arch/arm64/boot/dts/qcom/sa8540p-pmics.dtsi b/arch/arm64/boot/dts/qcom/sa8540p-pmics.dtsi > > index 1221be89b3de..9c5dcad35cce 100644 > > --- a/arch/arm64/boot/dts/qcom/sa8540p-pmics.dtsi > > +++ b/arch/arm64/boot/dts/qcom/sa8540p-pmics.dtsi > > @@ -14,7 +14,7 @@ pmm8540a: pmic@0 { > > #address-cells = <1>; > > #size-cells = <0>; > > > > - rtc@6000 { > > + pmm8540a_rtc: rtc@6000 { > > compatible = "qcom,pm8941-rtc"; > > reg = <0x6000>, <0x6100>; > > reg-names = "rtc", "alarm"; > > @@ -22,6 +22,14 @@ rtc@6000 { > > wakeup-source; > > }; > > > > + pmm8540a_sdam_7: nvram@b610 { > Johan disabled the SDAM node in their series for sc8280xp. Unless it's > used on all sa8540p platforms, you should probably also do that here. > > > > + compatible = "qcom,spmi-sdam"; > > + reg = <0xb610>; > > + #address-cells = <1>; > > + #size-cells = <1>; > > + ranges = <0 0xb610 0xb0>; > status = "disabled"; > > With that fix, > > Reviewed-by: Caleb Connolly Thank you for the review. Here is the v2 with the requested change: https://lore.kernel.org/linux-arm-msm/20230718145105.3464105-1-echanude@redhat.com/ Best, -- Eric Chanudet