From patchwork Fri Jun 24 12:02:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Neeli X-Patchwork-Id: 12894437 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7DDD6C43334 for ; Fri, 24 Jun 2022 12:04:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Ob0dUUYj+0cSEkjuZKymXGMmDC3OlneXFJ1HAWR20tM=; b=hZmNi0Bv1oT1Vy h9ePq8MowKEQhMdjtli69vZPbbgD2h9dmJwNNhsDctmVoZEWBM/AuFVMUhsxMk6Lw+CXlKP+oc3Mh lQO0D/Hl1i9uzeh9olSmY6ThRUTjztrbAjuh8hFNMUd+1zJqP2sKkXs/4bzdXTvUlgGoqZr0Wcg1G K8qLM/3/R4N1nz0v6T1jPI4ZFneyK7BcMpMle71eSYHdCa1QhbLrBq+rncAbAXdhFVc97zjssDRDn 817xFr6E3Xv5NsIo89oqDn5nKumz7UH1LzEUDRjv/9WtDoVd3+mmrThQdu+0Di4rUdmNmsunUj0GC D3vyrxmQIjk5c75aMLoQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o4i1t-0023Zt-14; Fri, 24 Jun 2022 12:03:17 +0000 Received: from mail-mw2nam10on2056.outbound.protection.outlook.com ([40.107.94.56] helo=NAM10-MW2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o4i19-00238m-PY for linux-arm-kernel@lists.infradead.org; Fri, 24 Jun 2022 12:02:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ODbcioiebyEn+GMyFpapdEyy6DllJQN0JOY0TUPZXWm60QWcmg4IrbXYH4Rf2qjCVFUd9yHfQEIoEjtds6OV4NmouhCsUgwOZKheVtsX6pihX84/DuAkO6YeXxi5Op9l6zysv0UqJ68TMCYweetrAFnjwlq/beZLu9eyr2P3ZewXY+8cN+MiwnQq/mHrPCLJOVGKe2PnjpRINzOMI/Pu74o0dZ9ZevPXlGvox1TzGiNQG8qQBDU/ZeYtUDRF4QvuNTTJ/cELBxg+YDYvkyEVUkDSjrF+D6WizZqOuBo5wb9XFtIR4pLeOecbHPTQVDqnGBZVlx0N7o+UKshnRTPa5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=JNZTBIlAlxyvmLWOk8lZ1AWMoKlmlvRx+3WHKUZu0Vg=; b=jp0sypzJCDyxu3AtjWPFEpAeoMXyXlq5zBr4bOHb/xGauPKRIhkIIQul7fySPW0Lpuw/QqzeDsZEMUoGwEMTQvk97FVhW0PCxeCy/KUNGLkRhX3XIbjq3RtR/t9EOGXApu37tfdBiyzGqTFad/eT7M/KnLw3XvixyeHrP0PEOBktxJlpSQg5SR7LC49P1BQzKhb5PHanuo5yOlFMFHB5iExY4/ZF63Uts7FsHQWc3B95iiPnbtPKF5CHYZ7SAR6Mfebgn/dCZLea9Az3/sHOx2kpLOCBm3+Kht7C7Va9SKE9m/eycxtHoO7rujkS6NQMp6V6ya2oB1UV9POuZ1uCPA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=towertech.it smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JNZTBIlAlxyvmLWOk8lZ1AWMoKlmlvRx+3WHKUZu0Vg=; b=KoIXvGHEKEkY8dyK9EMfsDIAvs6dQtPTYl++ECo9l0RT6nkg9IpacDP71gpPIMVAftJqxAsemgIAOszOkMBs4zVsvyA71bznfkjMXJbfUhVXYgpM3zK1eXjLN6tegzBzcu7TwbjoN+uiwZyQpCag9zqn34ibSqNZsxH/XJ+yFJc= Received: from SA0PR11CA0005.namprd11.prod.outlook.com (2603:10b6:806:d3::10) by CH0PR02MB8211.namprd02.prod.outlook.com (2603:10b6:610:ea::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5373.16; Fri, 24 Jun 2022 12:02:26 +0000 Received: from SN1NAM02FT0060.eop-nam02.prod.protection.outlook.com (2603:10b6:806:d3:cafe::f) by SA0PR11CA0005.outlook.office365.com (2603:10b6:806:d3::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5373.17 via Frontend Transport; Fri, 24 Jun 2022 12:02:26 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch01.xlnx.xilinx.com; pr=C Received: from xsj-pvapexch01.xlnx.xilinx.com (149.199.62.198) by SN1NAM02FT0060.mail.protection.outlook.com (10.97.4.134) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5373.15 via Frontend Transport; Fri, 24 Jun 2022 12:02:26 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Fri, 24 Jun 2022 05:02:16 -0700 Received: from smtp.xilinx.com (172.19.127.95) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Fri, 24 Jun 2022 05:02:16 -0700 Received: from [10.140.6.39] (port=57958 helo=xhdsgoud40.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1o4i0t-0009E0-Mo; Fri, 24 Jun 2022 05:02:16 -0700 From: Srinivas Neeli To: , , , , , , , , CC: , , , , , , Srinivas Neeli , Peter Korsgaard Subject: [PATCH V9 2/3] rtc: zynqmp: Updated calibration value Date: Fri, 24 Jun 2022 17:32:02 +0530 Message-ID: <20220624120203.2817457-2-srinivas.neeli@xilinx.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220624120203.2817457-1-srinivas.neeli@xilinx.com> References: <20220624120203.2817457-1-srinivas.neeli@xilinx.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 339c6eb6-6c37-461c-c14c-08da55d967ad X-MS-TrafficTypeDiagnostic: CH0PR02MB8211:EE_ X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: T8TKQ78M8BEk4GgG6qmxy1Lt93haLIa5FGBFCqhV35vnutn4CP7F742wAPqwpXXg0DPKbtZfFNDVtudVMDZIQaqIBmXqaz8lAshftf2FILLyhd7DH0J7KwGblR1IkdAkh6YpqCjFdLG9/cZFkV4gOb7jSTpbxlhLGfr7RX7zl/FRb7UNJ2sI/9FL0XFVdHQY71pVIBXPwHhHabXKezuFLAl6AJZ5N6SxWTeBh5oibh+mcCXES4WhpgWvssckRSTzV7uKa5RGZX030P5MmraEJWW2fot8aBDYZ/OTbxcaJNwdfr9XzR1s0gaqOHJSbz3u/ZKskzcVDGlQTYnSp+NMGex/pu9x19Ny3QU6vKuLrZWqIpf83yp/T6rsNa/42rOBi/+QnPciRfy/sE0nOozNLNn0ikgDruA9fhEPJHrCxvqBHXvUXiltZ/6zGPlpIrrhfp8xq32kjsvzWgYlzvO+WHTguQuXeaWhBNd1QuL+AuudyBPjiY8SskVzjrpucHEqwJvMd57hA3LrOig4NlzD8SE2Wt1PM58yzOEVbf6qEYEvfZQeF29L5fkrJH2OVyF22Jsg/cikW/KmvCva0xkU6jdUUabjRpU3rNYB8fmat4+wiP5V6bL7bV+mIfNre3/mP1dPVNfJ0RzEW2d4UpFFDq1nLWdT3ehvxVJXk2b2Rr7mp9KHVUByrUbqNZNjUqqj96t7DnBvHIfYijDroDsBpdo69q5W5h5fKaWE9otVb+skaNIVJsSyhBf9Aur8AxMI23dznXpm4L2sXq6L7Xl8GsX2TVft4k4PM4aKwh/xacOzrkj1SU9cAJ3KcaiQTVFYmOMRrqapyYoYx/CN2OqmPWkon/YoNGTo7GDSikwk6eM= X-Forefront-Antispam-Report: CIP:149.199.62.198;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:xsj-pvapexch01.xlnx.xilinx.com;PTR:unknown-62-198.xilinx.com;CAT:NONE;SFS:(13230016)(4636009)(376002)(39860400002)(136003)(396003)(346002)(40470700004)(46966006)(36840700001)(40460700003)(36860700001)(82740400003)(7636003)(8676002)(356005)(4326008)(6636002)(316002)(54906003)(110136005)(40480700001)(336012)(186003)(70586007)(2906002)(7416002)(8936002)(47076005)(15650500001)(70206006)(44832011)(5660300002)(4744005)(2616005)(1076003)(426003)(9786002)(83380400001)(82310400005)(478600001)(6666004)(41300700001)(26005)(36756003)(7696005)(102446001)(2101003);DIR:OUT;SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jun 2022 12:02:26.1113 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 339c6eb6-6c37-461c-c14c-08da55d967ad X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.62.198];Helo=[xsj-pvapexch01.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: SN1NAM02FT0060.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR02MB8211 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220624_050231_874183_1ED9539F X-CRM114-Status: UNSURE ( 9.78 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org As per RTC spec default calibration value is 0x7FFF. We are in process to update the 0x7FFF as default value in the next version of TRM. Signed-off-by: Srinivas Neeli Acked-by: Peter Korsgaard --- Changes in V8 -None, just swapped 2/3 and 3/3 patches from V7. Changes in V7: -New patch -TRM not updated yet, Internal design document contains 0x7FFF as default value. TRM Will update in next release. --- drivers/rtc/rtc-zynqmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-zynqmp.c b/drivers/rtc/rtc-zynqmp.c index f440bb52be92..5da33d760419 100644 --- a/drivers/rtc/rtc-zynqmp.c +++ b/drivers/rtc/rtc-zynqmp.c @@ -36,7 +36,7 @@ #define RTC_OSC_EN BIT(24) #define RTC_BATT_EN BIT(31) -#define RTC_CALIB_DEF 0x198233 +#define RTC_CALIB_DEF 0x7FFF #define RTC_CALIB_MASK 0x1FFFFF #define RTC_ALRM_MASK BIT(1) #define RTC_MSEC 1000