Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752016AbbEFUoS (ORCPT ); Wed, 6 May 2015 16:44:18 -0400 Received: from mail-by2on0140.outbound.protection.outlook.com ([207.46.100.140]:27667 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751069AbbEFUoQ (ORCPT ); Wed, 6 May 2015 16:44:16 -0400 Authentication-Results: freescale.com; dkim=none (message not signed) header.d=none; Message-ID: <1430945040.16357.293.camel@freescale.com> Subject: Re: [PATCH] powerpc/dts: Add 1588 timer node for eTSEC From: Scott Wood To: Yangbo Lu CC: , Date: Wed, 6 May 2015 15:44:00 -0500 In-Reply-To: <1430905256-4930-1-git-send-email-yangbo.lu@freescale.com> References: <1430905256-4930-1-git-send-email-yangbo.lu@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: BN3PR0401CA0019.namprd04.prod.outlook.com (25.162.159.157) To CY1PR03MB1486.namprd03.prod.outlook.com (25.163.17.16) X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB1486; 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:CY1PR03MB1486;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB1486; X-Forefront-PRVS: 0568F32D91 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6009001)(54534003)(24454002)(377424004)(51704005)(5001960100002)(110136002)(77156002)(86362001)(575784001)(46102003)(5820100001)(87976001)(122386002)(50226001)(189998001)(40100003)(62966003)(19580395003)(19580405001)(42186005)(92566002)(50986999)(76176999)(2950100001)(103116003)(33646002)(23676002)(47776003)(36756003)(50466002)(3826002)(4001450100001);DIR:OUT;SFP:1102;SCL:1;SRVR:CY1PR03MB1486;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: 06 May 2015 20:44:12.7054 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB1486 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3004 Lines: 84 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. > --- a/arch/powerpc/boot/dts/p2020rdb-pc.dtsi > +++ b/arch/powerpc/boot/dts/p2020rdb-pc.dtsi > @@ -215,12 +215,15 @@ > }; > > ptp_clock@24e00 { > - fsl,tclk-period = <5>; > - fsl,tmr-prsc = <200>; > - fsl,tmr-add = <0xCCCCCCCD>; > - fsl,tmr-fiper1 = <0x3B9AC9FB>; > - fsl,tmr-fiper2 = <0x0001869B>; > - fsl,max-adj = <249999999>; > + compatible = "fsl,etsec-ptp"; > + reg = <0x24e00 0xb0>; > + interrupts = <68 2 0 0 69 2 0 0>; > + fsl,tclk-period = <5>; > + fsl,tmr-prsc = <2>; > + fsl,tmr-add = <0xaaaaaaab>; > + fsl,tmr-fiper1 = <0x3b9ac9fb>; > + fsl,tmr-fiper2 = <0x00018696>; > + fsl,max-adj = <299999999>; > }; This isn't adding a node -- it's changing values. If the old ones were wrong, explain that in the changelog. Also, p2020si-post.dtsi already adds interrupts to this node (and it contains one more interrupt than the above), and it includes pq3-etsec1-timer-0.dtsi which contains the compatible and reg (and interrupts with two specifiers). Probably all of these should be using pq3-etsec1-timer-0.dtsi and only specifying the board-specific values. -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/