Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751654AbbEGCe6 (ORCPT ); Wed, 6 May 2015 22:34:58 -0400 Received: from mail-bn1bbn0106.outbound.protection.outlook.com ([157.56.111.106]:37914 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750865AbbEGCey (ORCPT ); Wed, 6 May 2015 22:34:54 -0400 Authentication-Results: freescale.com; dkim=none (message not signed) header.d=none; Message-ID: <1430966084.16357.335.camel@freescale.com> Subject: Re: [PATCH] powerpc/dts: Add 1588 timer node for eTSEC From: Scott Wood To: Lu Yangbo-B47093 CC: "linuxppc-dev@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" Date: Wed, 6 May 2015 21:34:44 -0500 In-Reply-To: References: <1430905256-4930-1-git-send-email-yangbo.lu@freescale.com> <1430945040.16357.293.camel@freescale.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.10-0ubuntu1~14.10.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Originating-IP: [2601:2:5800:3f7:12bf:48ff:fe84:c9a0] X-ClientProxiedBy: DM2PR03CA0042.namprd03.prod.outlook.com (10.141.96.41) To BY1PR03MB1482.namprd03.prod.outlook.com (25.162.210.140) X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR03MB1482; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:BY1PR03MB1482;BCL:0;PCL:0;RULEID:;SRVR:BY1PR03MB1482; X-Forefront-PRVS: 056929CBB8 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6009001)(51704005)(377454003)(377424004)(24454002)(19580405001)(575784001)(19580395003)(86362001)(50466002)(23676002)(87976001)(42186005)(46102003)(36756003)(47776003)(77156002)(62966003)(189998001)(5001920100001)(122386002)(40100003)(5001960100002)(110136002)(92566002)(77096005)(2950100001)(76176999)(33646002)(5820100001)(50226001)(103116003)(50986999)(3826002)(4001450100001);DIR:OUT;SFP:1102;SCL:1;SRVR:BY1PR03MB1482;H:[IPv6:2601:2:5800:3f7:12bf:48ff:fe84:c9a0];FPR:;SPF:None;MLV:sfv;LANG:en; X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 May 2015 02:34:51.1683 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR03MB1482 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2762 Lines: 71 On Wed, 2015-05-06 at 21:26 -0500, Lu Yangbo-B47093 wrote: > Thanks. > Pls see my comments below. > > -----Original Message----- > From: Wood Scott-B07421 > Sent: Thursday, May 07, 2015 4:44 AM > To: Lu Yangbo-B47093 > Cc: linuxppc-dev@lists.ozlabs.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH] powerpc/dts: Add 1588 timer node for eTSEC > > On Wed, 2015-05-06 at 17:40 +0800, Yangbo Lu wrote: > > Add 1588 timer node in files: > > arch/powerpc/boot/dts/bsc9131rdb.dtsi > > arch/powerpc/boot/dts/bsc9132qds.dtsi > > arch/powerpc/boot/dts/p1010rdb.dtsi > > arch/powerpc/boot/dts/p1020rdb-pd.dts > > arch/powerpc/boot/dts/p1021rdb-pc.dtsi > > arch/powerpc/boot/dts/p1022ds.dtsi > > arch/powerpc/boot/dts/p1025twr.dtsi > > arch/powerpc/boot/dts/p2020rdb-pc.dtsi > > > > Signed-off-by: Yangbo Lu > > --- > > arch/powerpc/boot/dts/bsc9131rdb.dtsi | 12 ++++++++++++ > > arch/powerpc/boot/dts/bsc9132qds.dtsi | 12 ++++++++++++ > > arch/powerpc/boot/dts/p1010rdb.dtsi | 12 ++++++++++++ > > arch/powerpc/boot/dts/p1020rdb-pd.dts | 12 ++++++++++++ > > arch/powerpc/boot/dts/p1021rdb-pc.dtsi | 12 ++++++++++++ > > arch/powerpc/boot/dts/p1022ds.dtsi | 12 ++++++++++++ > > arch/powerpc/boot/dts/p1025twr.dtsi | 12 ++++++++++++ > > arch/powerpc/boot/dts/p2020rdb-pc.dtsi | 15 +++++++++------ > > 8 files changed, 93 insertions(+), 6 deletions(-) > > > > diff --git a/arch/powerpc/boot/dts/bsc9131rdb.dtsi > > b/arch/powerpc/boot/dts/bsc9131rdb.dtsi > > index 45efcba..629cc03 100644 > > --- a/arch/powerpc/boot/dts/bsc9131rdb.dtsi > > +++ b/arch/powerpc/boot/dts/bsc9131rdb.dtsi > > @@ -80,6 +80,18 @@ > > status = "disabled"; > > }; > > > > + ptp_clock@b0e00 { > > + compatible = "fsl,etsec-ptp"; > > + reg = <0xb0e00 0xb0>; > > + interrupts = <68 2 0 0 69 2 0 0>; > > + fsl,tclk-period = <5>; > > + fsl,tmr-prsc = <2>; > > + fsl,tmr-add = <0xcccccccd>; > > + fsl,tmr-fiper1 = <0x3b9ac9fb>; > > + fsl,tmr-fiper2 = <0x00018696>; > > + fsl,max-adj = <249999999>; > > Please don't use hex for numbers that make more sense as decimal. > [Lu Yangbo-B47093] The hex value is register value, I think it's better to use hex. Whether it goes into a register doesn't matter. Hex values are useful for values which are subdivided into various bitfields, or whose hex representation is simpler than decimal. I'm not familiar with the details of this hardware, but I doubt the former is the case for 0x3b9ac9fb == 9999999995 or 0x18696 == 99990. -Scott -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/