From patchwork Fri Nov 24 02:31:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Yangbo Lu X-Patchwork-Id: 10073401 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 DF7EC602DC for ; Fri, 24 Nov 2017 02:31:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CAFA02A1B2 for ; Fri, 24 Nov 2017 02:31:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BFD452A1CF; Fri, 24 Nov 2017 02:31:49 +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=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=unavailable 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 653E82A1AE for ; Fri, 24 Nov 2017 02:31:48 +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:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=n9afL+jpEPMHhIJQ0nJ/idgnbMLKHQuQHBj7fIaLIWo=; b=ef7W3iUfXo3Qhl 5NBPTHw9uN96yyKe8Un94En7XZ+v2XlIgYG7gk7bzZR9FnEi65jxe3TVvfOqpFUbMAAWDCYhPLxF+ bHmU00FOhvbeXYWt5iKW0lAONipnPGXNUvOc/w1lQOubPYY6r/N/CWkp5cDsYdLJwrsfHRj/FrmK+ i8QGBVzLl2ktNiC+oSmQJpsELn+eE3z/UsHhtTYW1Bg40MM0jECIc22apUYdepWPH1hMqRKBBGLe3 aU9AFZVEFVkAvI59HxyU2a0Uk4Yfo8TrE3yzzVf6jd1/Kglwmf6KeG4EEI/HBJDEaIXg4205gpFYu Yqm6A5mEMk/vrF2rulzQ==; 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 1eI3mL-0002Jl-Ta; Fri, 24 Nov 2017 02:31:45 +0000 Received: from mail-eopbgr00074.outbound.protection.outlook.com ([40.107.0.74] helo=EUR02-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eI3mH-0002I2-67 for linux-arm-kernel@lists.infradead.org; Fri, 24 Nov 2017 02:31:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=mO+wTMow+aLarcnWQ2KtfExG6XNIQsKsBLogPZSXGug=; b=QCHxwLNh4UteuUlOCpaXj4g1XziMt7KSZRNGo6F6lqol8cLBHchcIvpEK/Prgkpn5poMDpa8LswiMhPKgTtDeJ2g6hoPtOK3jD45z5dU2QnNtULnFybu0fHLWE+i5YXF7lN2kzweeDdkb7qknRlsqAsVUU2EF94eC+KrmRpD5P0= Received: from DB6PR0401MB2536.eurprd04.prod.outlook.com (10.169.224.151) by DB6PR0401MB2533.eurprd04.prod.outlook.com (10.169.224.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.260.4; Fri, 24 Nov 2017 02:31:14 +0000 Received: from DB6PR0401MB2536.eurprd04.prod.outlook.com ([fe80::5192:12ea:7efb:3643]) by DB6PR0401MB2536.eurprd04.prod.outlook.com ([fe80::5192:12ea:7efb:3643%18]) with mapi id 15.20.0239.009; Fri, 24 Nov 2017 02:31:13 +0000 From: "Y.b. Lu" To: "Y.b. Lu" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Rob Herring , Mark Rutland , Russell King , Shawn Guo Subject: RE: [PATCH] arm: dts: ls1021a: fix the value of TMR_FIPER1 Thread-Topic: [PATCH] arm: dts: ls1021a: fix the value of TMR_FIPER1 Thread-Index: AQHTWcoH1Lfi7EMHjECwljflRrpWR6Mi5Kkg Date: Fri, 24 Nov 2017 02:31:13 +0000 Message-ID: References: <20171110015847.29635-1-yangbo.lu@nxp.com> In-Reply-To: <20171110015847.29635-1-yangbo.lu@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [199.59.231.64] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB6PR0401MB2533; 6:tKKyUOLb9X6GbzHxVrunT7QolIT6J7+VULrZMwhaP8VE09qW6fynloiCKJfQ0XY2H5CIZHAwv67n49Q3ghrjF1pKmzmEOAdc8fLWaiFWWLTM7EMQx8OUP5o9/EEPL2dOC9ZikfyWxFo7w2DKCUYiB/IH/cAAGoOZLaXEkknJBn2rXLUo3Ih31ysaqCD3guAqMmycjhbRF6mYiJwfPppgqMZnbc+rjoIKoeERDd+W2BBPPF4RUBc27jlOGU251B90ktOHTtKnanRq5EHfOvj658zpAKXF+85T3DCYYATUQRbOBtS5fHCBRNZdxAcTf8d/ikFHVmn+AMqtdiRY0WUKhPgOv1GUWAoRi1WS6rmPDm0=; 5:y2Het3Uscgc4iOibPEdmxwMGIaSBV3HDBdx3/TxQl2r9rYSj6VPzJ3hfoztX120Ff3opKIMXxTjX8BLPfKherfCCEa8qurahlCIvHvKdSEABtnmiker9oP43HjWqHP/D+Gv28QfdwyyP+ZTad19v9n6uPQc/RA0H+eclh00kXmA=; 24:zSmqQuGa78Sl+E6NMuRLNl2DiQ1CiRTo9IfnSOb0qlEmmG+imrYS5Zb0FiFhGOQWvmRtuUtxH26TO8+OY5rkWnz32agPXNOoi3sps2yWgeg=; 7:rOZ06Vuom6aDJcDyTo5uhWycfB4h8tKy/zFKF7+i/A9F9610ca2rmAz+wbCvdoMPDj753wzss6Uot1QlAOKRW2PKlNTb/UTmjbMmm2nj7x0UHNgscm5c5BKMzCglD6B8s4kIeKn1IlysmCAAAmoMziKp+J++DnrEKLe3siIaF0bZSj297W1FPuiUMGpofFo25GJIbPylM4Fd2SEZ3O4S73Qy8haalTXhF5Ivkqaa7J3dyHifpYr0S3Oex8yQEe6L x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-forefront-antispam-report: SFV:SKI; SCL:-1; SFV:NSPM; SFS:(10009020)(6009001)(366004)(376002)(39860400002)(346002)(199003)(13464003)(189002)(6246003)(9686003)(53936002)(101416001)(54356999)(50986999)(76176999)(189998001)(99286004)(305945005)(7736002)(478600001)(2950100002)(74316002)(7696005)(3280700002)(25786009)(81156014)(3660700001)(97736004)(81166006)(2906002)(8936002)(229853002)(8676002)(14454004)(33656002)(55016002)(6506006)(6436002)(2501003)(106356001)(3846002)(102836003)(2900100001)(316002)(2201001)(575784001)(5250100002)(53546010)(86362001)(68736007)(110136005)(66066001)(105586002)(6116002)(5660300001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0401MB2533; H:DB6PR0401MB2536.eurprd04.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(48565401081)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603258); SRVR:DB6PR0401MB2533; x-ms-traffictypediagnostic: DB6PR0401MB2533: x-ms-office365-filtering-correlation-id: 68f35a5f-3f05-45f4-59bb-08d532e36e80 x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(180628864354917)(9452136761055)(185117386973197)(258649278758335); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(8121501046)(5005006)(3231022)(10201501046)(93006095)(93001095)(3002001)(6055026)(6041248)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123560025)(20161123558100)(20161123555025)(6072148)(201708071742011); SRVR:DB6PR0401MB2533; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:DB6PR0401MB2533; x-forefront-prvs: 05015EB482 received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=yangbo.lu@nxp.com; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 68f35a5f-3f05-45f4-59bb-08d532e36e80 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Nov 2017 02:31:13.4882 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0401MB2533 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171123_183141_609884_AAF2FFBD X-CRM114-Status: GOOD ( 10.51 ) 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: , 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 Any comments? +Shawn Thanks. -----Original Message----- From: Yangbo Lu [mailto:yangbo.lu@nxp.com] Sent: 2017年11月10日 9:59 To: devicetree@vger.kernel.org; linux-kernel@vger.kernel.org; linux-arm-kernel@lists.infradead.org; Rob Herring ; Mark Rutland ; Russell King Cc: Y.b. Lu Subject: [PATCH] arm: dts: ls1021a: fix the value of TMR_FIPER1 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 --- arch/arm/boot/dts/ls1021a.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.14.1 diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dts/ls1021a.dtsi index 9319e1f0f1d8..10e536f338f7 100644 --- a/arch/arm/boot/dts/ls1021a.dtsi +++ b/arch/arm/boot/dts/ls1021a.dtsi @@ -575,7 +575,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>; };