Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1268326iol; Fri, 10 Jun 2022 04:07:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHCw/EI4z2incXAkdyXB4qSpD1RlYpIWOEI9+dRYjajaG9P+JkcXHhNx2kBYj0s/sUWfTh X-Received: by 2002:a17:902:d50f:b0:166:41a8:abf5 with SMTP id b15-20020a170902d50f00b0016641a8abf5mr43030981plg.17.1654859221444; Fri, 10 Jun 2022 04:07:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654859221; cv=none; d=google.com; s=arc-20160816; b=gSZCkesd99y362LM9UZT5+Cir3RAios1M16Ypa0zsyG2DPmri/xSfNhYiJSFsJabPp BRbEZdbfcurBe7iUAO9LGrV4yQb31eAFqN/MFY8KA/vydoZEhbeKD77IEa6rrkj3yXbl Ui9m6nXQj62dfS7nF9o9Zkz9qqkH1BRGxwy5u5VTr6Tuv2ON2KLM0WPLfyfdwa6WM+ay 1gchx1uV5lWE02id8c1eK4LHET3PLScYbTgSDDx+BISPyFGwBlNKmUfEN8YFiZehaoOw kpJn0AzIswwVNROBAEsglV9IbXLv3B8VwkWjhvSQ4ysuyqqvE1MVf3ZuLkYFiYp8gMrl vlZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from; bh=j6dvkMFZFkXDQkUpYLn3rhQ/ljFzVe4jsZXArm6/emM=; b=oBN6aaOhfvStWwq5qOurlR7Afw04V/TTolNF151uILrcnuohIooJCCcNqI51AML7rP aazrJdiGa8wj+Mxq2D59Sq5mHVuBhV7oXnPZO1l1hb/1I+hTDmf4GBFMH1t05+wO1l5+ 7ROfUx5aojEoiXqlDrBRxqUqnhabmA7UsjAJmEFQePDtsigJr70oXaAy3stCffYcCyKa tsYJOYcm0arw3vlIxsQ882eHpqNYn2qNYyoaVOYkoXMOZATvf11g+6WywxqapuEQ1vo8 vss0S5swd2+7Kzvx1p/zkSkhzBSYqyhz2h3DSqMIj1NEOSN/h+s6kw/JBJ8zCcmBShLt sshQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j189-20020a6380c6000000b003f62669e1a7si33194377pgd.767.2022.06.10.04.06.40; Fri, 10 Jun 2022 04:07:01 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347121AbiFJKMW (ORCPT + 99 others); Fri, 10 Jun 2022 06:12:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244063AbiFJKMV (ORCPT ); Fri, 10 Jun 2022 06:12:21 -0400 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5611EC1EEA; Fri, 10 Jun 2022 03:12:19 -0700 (PDT) Received: (Authenticated sender: peter@korsgaard.com) by mail.gandi.net (Postfix) with ESMTPSA id 791571BF205; Fri, 10 Jun 2022 10:12:12 +0000 (UTC) Received: from peko by dell.be.48ers.dk with local (Exim 4.94.2) (envelope-from ) id 1nzbch-002yue-5W; Fri, 10 Jun 2022 12:12:11 +0200 From: Peter Korsgaard To: "Neeli, Srinivas" Cc: Alexandre Belloni , Srinivas Neeli , "a.zummo@towertech.it" , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "michal.simek@xilinx.com" , "sgoud@xilinx.com" , "shubhraj@xilinx.com" , "neelisrinivas18@gmail.com" , "devicetree@vger.kernel.org" , "linux-rtc@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "git@xilinx.com" Subject: Re: [PATCH V6 2/2] rtc: zynqmp: Add calibration set and get support References: <20220609140833.1784738-1-srinivas.neeli@xilinx.com> <20220609140833.1784738-2-srinivas.neeli@xilinx.com> <87r13x28o4.fsf@dell.be.48ers.dk> <87mtel287y.fsf@dell.be.48ers.dk> Date: Fri, 10 Jun 2022 12:12:11 +0200 In-Reply-To: (Srinivas Neeli's message of "Fri, 10 Jun 2022 10:02:47 +0000") Message-ID: <87pmjgyghw.fsf@dell.be.48ers.dk> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 >>>>> "Neeli," == Neeli, Srinivas writes: Hi, >> >> Where do you see that? ug1085 rev2.2 still lists: >> >> >> >> Programming Sequences >> >> init rtc >> >> 1. Write the value 0019_8231h into the calibration register, CALIB_WRITE. >> >> >> >> > This is a very weird value. Last time I had a look, I couldn't find an > >> explanation for it. >> >> Agreed. I am not arguing that it is sensible, I just wondered where this new >> value comes from? >> > This information is missing in our TRM, as per the internal RTC IP > design specification document, the calibration value should be crystal > clock frequency minus one. > For a crystal oscillator of 32.768KHz(0x8000) frequency, the calibration value will be 0x7FFF. > Will update TRM with the required information. Ok, great! Please put this change in a separate commit from the get/set logic. -- Bye, Peter Korsgaard