From patchwork Wed Nov 29 06:54:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangbo Lu X-Patchwork-Id: 10081511 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5256960353 for ; Wed, 29 Nov 2017 07:14:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4488F296C3 for ; Wed, 29 Nov 2017 07:14:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3919A296F0; Wed, 29 Nov 2017 07:14:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B2A1F296C3 for ; Wed, 29 Nov 2017 07:14:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=WEt0MpJhzmazIkIVznScvl6M+CAzL4daDViJltioqmk=; b=n7TpR2s30uYHJa 6sKjQdVYlVmsaNWQAJRzg/SAX8NgxkgG08FBboJvQrZa5UETweEft/jlRYAAnEbY4Js/gJ60z+FxZ osLFmc00PzXAEQw/OLwHKwILbdzt84/iTux/h6/pn/1rg06arilq6e2qieIxzPBvjLvELPb4XFlEk MjbiSNUjlis6XK4gt1VdJ0yDhXbA1Ygd0kAmRNiMq2EGzDaA2VgyqSScqKbtncvUKEaPOwiCd5zVD jic1KEz1lsQpy8F9lgqKH/GOsmcvGh8kxMwm13dYzXVMdm1wof27acvBebODAOm+PvmWtEqAauGIQ nfagovrKLD9C68Q/BQZw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eJwZR-0004IC-Td; Wed, 29 Nov 2017 07:14:13 +0000 Received: from mail-bl2nam02on0040.outbound.protection.outlook.com ([104.47.38.40] helo=NAM02-BL2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eJwZN-0004GL-M8 for linux-arm-kernel@lists.infradead.org; Wed, 29 Nov 2017 07:14:12 +0000 Received: from BN6PR03CA0076.namprd03.prod.outlook.com (10.164.122.142) by CY1PR03MB2362.namprd03.prod.outlook.com (10.166.207.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.260.4; Wed, 29 Nov 2017 07:13:44 +0000 Received: from BY2FFO11FD005.protection.gbl (2a01:111:f400:7c0c::163) by BN6PR03CA0076.outlook.office365.com (2603:10b6:405:6f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.282.5 via Frontend Transport; Wed, 29 Nov 2017 07:13:44 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD005.mail.protection.outlook.com (10.1.14.126) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.218.12 via Frontend Transport; Wed, 29 Nov 2017 07:13:43 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id vAT7DaQf018473; Wed, 29 Nov 2017 00:13:37 -0700 From: Yangbo Lu To: , , Subject: [v2] arm: dts: ls1021a: fix the value of TMR_FIPER1 Date: Wed, 29 Nov 2017 14:54:58 +0800 Message-ID: <20171129065458.4235-1-yangbo.lu@nxp.com> X-Mailer: git-send-email 2.14.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131564132242618443; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(7966004)(39860400002)(346002)(39380400002)(376002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(51416003)(104016004)(36756003)(4326008)(77096006)(8656006)(6666003)(48376002)(5660300001)(2906002)(85426001)(50466002)(1076002)(97736004)(50226002)(33646002)(498600001)(8936002)(8676002)(81166006)(47776003)(105606002)(305945005)(106466001)(86362001)(81156014)(189998001)(16586007)(316002)(53936002)(54906003)(110136005)(50986999)(356003)(68736007)(2201001)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR03MB2362; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD005; 1:FRHkVIiVHbpbTIC56vj2BEvdKvqHJ055HeafEf4hISw4jrygd6pIawUgZPfoSk2msvLUThDhzMNXXOI3As+mH/oKZHs33c3RjDrJy/ahGiOfNLTOzz2MlBS2n9c4oUH8 MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 15a28c42-13a4-4c40-8bfd-08d536f8b9e2 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4628075)(201703131517081)(2017052603266); SRVR:CY1PR03MB2362; X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2362; 3:duofpWW2BucFvlLuLe/uJC0bJyhKpiSSLHTWWgajJwBYwLlU4RCKTn4WN/ia2skPkHxKs33JOcC4IwCcqJTpDSc0JN30K7qvMhyfIcm6uuiYhhycUEK0+f7FNu58NBhXb4AMQ+C1FLqt4WRUE5V7P50c47v1O03x+5VPfq8+3d0wqxwanVSPCOmjg3uB2XpFPMwfJnSjfJ3AzYoj/5AEp4S5JxDPo7fhZ6xD/wh+Z+wX5E7bCCA9scZ5A2AbXDIcsB/i5TiGIQGa5pouB8XvP7oYVh5rpY2M8iY05eszKnsBXG6h3NAJX4RPkAZ3S+vXegNVoOvneuwFThXxt4ygFsQAqcCYSUXCBRuk+259S90=; 25:y1QhpEwrbn5o7edrPWGdzx6CaUs2sC/vchrV6tMngQ4RMN+tA7OLHzh50iYNchrDdhVlykbkljO3MyzFut3SnpubTIdT7Tfu9vceh+bXPx9/3BsWZJCKmJ40RNO2YSX/NvI3cn9892YUVN1Vj1fiHrlc2sMghIBKs36NGK8GysAJHhkLyzlqjlzOFG66N88VtXflX6H7hO9+N5XrRsdW+JXqUHuelb9QIojrfyerl8Sg1fWdPukiXmP33ujN3tiLJksSCJPGmCS0umumTEv7i+Ue6NYFsglwekyb+ay1LBzsl57JvLE5PalyJre0e8HG89ng8mXUBgr7bh2+zvd+6A== X-MS-TrafficTypeDiagnostic: CY1PR03MB2362: X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2362; 31:YYljsWn6opqIv7Ejg3YnCT+0ycx4YDB//cgDRyf+RwE9bPFX1mpbjlbbS8o+RQ7wAZGyp1ElcAd1EYBMWbngdfat7M1DGuwXMkJj+xVTqq3k+Gb1E08zj4WPpY6Yl3jHrBJ6guuBPfYr0euC2i/rVT+D9+K0ZxzFt4G6zjY06eeSP1TaEiE9+No+BGz6iPQh8CXFD1mgc4+e7MR2Stx+LSBo4uvJxXFjGhzpOuC7j+Q=; 4:RkyFcb+izJEpLdpvzTOCvEVtFlu7+AMq/LGSDUPSEtGzToLZ47b2U9uNDiqAeKnEPt2YkDiWJLJ5n482l04/+twAHdE0S/HTAN4bHmYLHb8zgHSU7Fe2odyCl2LMu+eF5eYz0rghUUPYOgZeyhBETkctzyIRnrgNn/8uiD48S3c+ti2FOsgsqaMJcjJDiV16LMkiCFs7KBhbPSWr6uwBS5DdU5RjKfGfQpyC6oGqCgI+WR5JvX4SYlipF2wgBq6AiDZbM/QpO/DQxowhZK9AhwP2VeGPGiNctAr0DytE5rA/DnKsh1nd/Ix/VtehnQOj X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(8121501046)(5005006)(3231022)(3002001)(93006095)(93001095)(10201501046)(6055026)(6096035)(20161123563025)(20161123559100)(20161123565025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123561025)(20161123556025)(201708071742011); SRVR:CY1PR03MB2362; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:CY1PR03MB2362; X-Forefront-PRVS: 05066DEDBB X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR03MB2362; 23:P4FyES+gRkRPY3qspHPObVYHPPsKCz7ZHo97aGkJD?= =?us-ascii?Q?J0Udiqeq7y9wn7anua4F9trs7H9tLxC08PUGsOypWFg9On8XBDn0TT/kXHD7?= =?us-ascii?Q?CW+0l9905uw3VCblpW+NiYXWLxfQOmseXW5q8v6OrW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qSzF8yEavQ9VPwl91vP1qtPOSc/fDMhYyKUJR+wKZXOpUoVH6zZ85/OQgAEz SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Nov 2017 07:13:43.9342 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 15a28c42-13a4-4c40-8bfd-08d536f8b9e2 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB2362 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171128_231409_957666_DC53C254 X-CRM114-Status: GOOD ( 15.11 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Rob Herring , Shawn Guo , Russell King , Yangbo Lu Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The timer fixed interval period pulse generator register is used to generate periodic pulses. The down count register loads the value programmed in the fixed period interval (FIPER). At every tick of the timer accumulator overflow, the counter decrements by the value of TMR_CTRL[TCLK_PERIOD]. It generates a pulse when the down counter value reaches zero. It reloads the down counter in the cycle following a pulse. To use the TMR_FIPER1 register to generate a 1 PPS event, the value (10^9 nanoseconds) - TCLK_PERIOD should be programmed. It should be 999999995 not 999999990 since TCLK_PERIOD is 5. Signed-off-by: Yangbo Lu --- Changes for v2: - Added Shawn into cc list. --- arch/arm/boot/dts/ls1021a.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dts/ls1021a.dtsi index 64249726b3cb..a861a4b9e319 100644 --- a/arch/arm/boot/dts/ls1021a.dtsi +++ b/arch/arm/boot/dts/ls1021a.dtsi @@ -589,7 +589,7 @@ fsl,tclk-period = <5>; fsl,tmr-prsc = <2>; fsl,tmr-add = <0xaaaaaaab>; - fsl,tmr-fiper1 = <999999990>; + fsl,tmr-fiper1 = <999999995>; fsl,tmr-fiper2 = <99990>; fsl,max-adj = <499999999>; };