Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752858AbbG2Hv7 (ORCPT ); Wed, 29 Jul 2015 03:51:59 -0400 Received: from mail-bl2on0139.outbound.protection.outlook.com ([65.55.169.139]:14794 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750860AbbG2Hv5 (ORCPT ); Wed, 29 Jul 2015 03:51:57 -0400 X-Greylist: delayed 1112 seconds by postgrey-1.27 at vger.kernel.org; Wed, 29 Jul 2015 03:51:57 EDT Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; From: Yangbo Lu To: , , CC: Yangbo Lu Subject: [PATCH v3] powerpc/dts: Add and fix 1588 timer node for eTSEC Date: Wed, 29 Jul 2015 15:12:38 +0800 Message-ID: <1438153958-1400-1-git-send-email-yangbo.lu@freescale.com> X-Mailer: git-send-email 2.1.0.27.g96db324 X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11FD047;1:EynEqOs5QbzOiD4T4ok2w5YJ1OCnypArY/FLPX4nzSc3Dodpxzjvo2ZubT5+QzHTdUDv94aNAcCG5d6vRkdJ1mCyUdIbMCPP/vnm1SUrtks5Es8MjUWapYBhvTngs5efxn6D7Esetzp9ulXfVHnwh+0ByMVY1P3kCnlCICIYLJhDytusf0QLvLc62q2PAGIXXZLwqTI8h4NaZkZ3jRvUXsbZnXvnbvyUIsF6+uNW0DeZPCMgyoKMFDhS5JEUkQmQE6dS1m9gzkqfLFPEOiCPWucbC3oesAKkWpFRllUfOo9WtLQYmjMjGSVmqVpX/FUU3ZMFzrjwDXRwwQY2YYf1Rg== X-Forefront-Antispam-Report: CIP:192.88.168.50;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(2980300002)(339900001)(199003)(189002)(86362001)(87936001)(575784001)(4001450100002)(106466001)(85426001)(105606002)(2201001)(46102003)(48376002)(19580395003)(19580405001)(6806004)(47776003)(50986999)(36756003)(77096005)(104016003)(33646002)(92566002)(189998001)(62966003)(77156002)(5001960100002)(107886002)(5001920100001)(229853001)(2101003)(4001430100001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM2PR0301MB1199;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;MLV:sfv;A:1;MX:1;LANG:en; MIME-Version: 1.0 Content-Type: text/plain X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB1199;2:N97fn6EoxYyIkOFBajW5+rm+JvnvSb8Nk7oPvJq1HwfAyAQXlQ4GLJJfYoEraB96KJrTbyYqatbelDGCbtgLsOmnba6Z9HBDOewyIsADUTzstpQtip0JSTHCAa0zfAtxDA/GqUrpz+QcfKpw6Vp8uJOnikqDP+TgKORGd69eKOw=;3:b2EPp81IvBqASuANtp4hAI3edXEnVbJn7P3n6GcgGIJ6L4QfhJy2XrP39c5o3dEOY1epP2h+4vW0jT8Vbvg2ePsgAUjATeB2Zq06pW4L8YXxHhy8zyBKyhzwTSGEAnS5oQq6k6kz0HySGnLfEa3nTWmbwE3+a9qeeBrDT4zcY5PX8yCpfhO8VFrPf39cdb3DXIq67/n4QMHL5Ga3dRzOdPjfP0FUAlHLhiGHxx8Vnoc=;25:jWNKcTsWzEzKO1fnh4PiQgy+e5+bcHgaRqunzF7SjOkbIphulJOzEQU3gLIbbIH0FE248pFhD6QUzRFVvbFhS894CakSi2IZettgcyU1ojn0+NPslceBMBMuAE1LRlzEvK3pnHKCtcFeV1BvlCAhCsyUBOIE+ocVyZqfXs4fa+G/EB+zqACkQBYGRrScuFIN/WbY0HVyU+ltnyfZvSBo9L2JPo9V03nISR2jPeI2mRcoqBZ0f0Hn3RD4PcDoUpg2xW0OiGeOoY/q+IEwfKlkMQ== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB1199;UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB0911; X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB1199;20:CCycpUGA++4z/GwzMD054SOtMB4uTD/UeuWpAcNMxmFjOpND24U52bOWV/vjWO4z6JEuAZBuw3vAfBKiIecn+m6C50IeCNjOL5P2XZkhgB+cTbODzdtryCPOMy9g/UJS132GPnfaTixaW4TQGRIIupTNZzbqpC1DdHP4XOvFYxB19PrVYHnQQwk1nJ1DqhzzweskVtd3VTAop4NJ9asW76krw84QBOUn0nJh0BxETUEV9I2WOHK48opHN+yNRjeY8qgEtrFNfpvAMoDfWLpKHzEIef3DwDzj5/qnFadKXPRfctNE5sHYXEmVEyMf5DDoKmaFu/z8LKBF/BjbGG9mi+JT77yIyp2sKV+WYh+Hse8=;4:edIvO8+vm0Fqc1yalz5b/vLYSJDZEvPDeuLFDKxlYdXEErS9fcf0SkFRMJsnweZdln+kZfUlmrev+wcr7MZw8FXgf9p9qV3Uq/L0+uMVp+HwkxxXOz/RfRQQa+ak1FJ5oCd6gJPbshmNRkiDd0a7ck5Q+j2Yf4Kl1hxaSD4lAU/RGllVdbrb5lEIDfXByMy/wlaydFMgLOVlZj1g3p364fs1CnDh1uZXniYTGCBG9yUrEevWrU/HezgxV74tF3H1rVDb8sbwDMdtYHSi6VSErDFa0Q4Bk2fo6uBOHN8cMbU= 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:DM2PR0301MB1199;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB1199; X-Forefront-PRVS: 0652EA5565 X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB1199;23:LjuooTnOWsLOSMIpV0dRWrItRFf5ifwgEGxftVOtFlp/6RBj2l+qFFF9tQrPOOgfUc0cMRIMjGJeHMLZ267jSjYkcwVjY+QB4FA5s8UWT2NGUTpnWnTsP4iy9IYoNxOhbv0kZi95by9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3UQ/CuKs2faUEHwQLumsNo2qk=;20:XHOep1jjJoVMoOINs/mVP2rrWyb1bJBG+zW0bY5D2SDM5W/slw/iJT5XWbuiWi/8czj3SLG2rsEzNOQwUJElaQ== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jul 2015 07:17:51.4634 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d;Ip=[192.88.168.50];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0301MB1199 X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB0911;2:GIXFNHQsxZKQyAIuQdpm4vh1NxXPz/bjWoPYBThVI1GbWXlBbh3PQiW+ei1DkDKN8iIj/lY0gtg2Z9vW7+GWXoMxP8JomT9shbKkvVLgJkFMawJ4AZNQ51Uvi5NOt0c5fSNrFe/2wHZLr1oC2UuAFGRKzzzTYUQe0r3tzaOV4Y0=;3:2WyvWqaJn94xo0rYRh/vhxh9cOLrm0ia4guS9sJk5VBtz/hBOFB1qXhwA3JVcV+GIpfqG64zXVqn/M/1LifQQMW2n009AgfnA8APvFkJi+gnVs1e2BuarEQfudwSroHbsZpOT8OaWO+IOBjLN560puThLTxxLeu2h5vcKgXRO0N8biV50NI2hrRbYBHXfReIxoSdZDfw9ARmJxhQ7RCvlAis07104uPjFi4Rw3bzHLo=;25:3KBnosFqBOk15F+98Vy3JIQIRpcAevHrKgSDFyO6RZbN7yFN/2adqqO6FWl91PIlprek4cQiSwXxZ9z4m/lwJXw06J2btVPjxW9CCcSKcNXpUjxC9qVVHX9MoFiTjjcOdRoycTraTNPm4IfUPpHBx10wTbPcDrMT5p19WJMiZp8brdUwSqTfgUJ66HoFHtMpBxm/JYFn3EnLSJMj7d/mFLJaRe7sW+mLqj3ZunAgi/hY7i0kSoS3d2x5wplI92+Pq/iNqJFWxF3uAo7+5hgGFA==;23:hvLG0NYLRzXWpX7g2wd+QdNnjsHnP5IR+vrurNO/KEwPsj5IbfdtL/U0+4AWGm+vbw6Y6NA2Rf+nVhORO+QqduDrgtRJSisbAU/JVo54pmkyJCiylYcmyV+SkPbzakyNT8Bwv6IG/Pzk2e9I1qsvVsf+BXPM0ZYBDvEuUpzm44igFPoLThrIETrrBTvHUXioIas1UdjRxrcqtE0a/f4XUiH0JrZTxTs17eclC2b/NOk/xr/Zs668V2sgxFNjbC46 X-OriginatorOrg: freescale.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 6543 Lines: 225 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 For P2020RDB-PC, registers' values should be calculated based on default 1588 reference clock(300MHz) not 250MHz, and fix this in file: arch/powerpc/boot/dts/p2020rdb-pc.dtsi Signed-off-by: Yangbo Lu --- Changes for v3: - Changed 'tmr-add' to hex value - Modified commit message Changes for v2: - Changed hex value to decimal value in dts - Modified commit message - Modified 1588 node in p2020rdb-pc.dtsi --- 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 | 12 ++++++------ 8 files changed, 90 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/boot/dts/bsc9131rdb.dtsi b/arch/powerpc/boot/dts/bsc9131rdb.dtsi index 45efcba..f4d96d2 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 = <999999995>; + fsl,tmr-fiper2 = <99990>; + fsl,max-adj = <249999999>; + }; + enet0: ethernet@b0000 { phy-handle = <&phy0>; phy-connection-type = "rgmii-id"; diff --git a/arch/powerpc/boot/dts/bsc9132qds.dtsi b/arch/powerpc/boot/dts/bsc9132qds.dtsi index af8e888..7a13bf2 100644 --- a/arch/powerpc/boot/dts/bsc9132qds.dtsi +++ b/arch/powerpc/boot/dts/bsc9132qds.dtsi @@ -87,6 +87,18 @@ }; }; + 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 = <999999995>; + fsl,tmr-fiper2 = <99990>; + fsl,max-adj = <249999999>; + }; + enet0: ethernet@b0000 { phy-handle = <&phy0>; tbi-handle = <&tbi0>; diff --git a/arch/powerpc/boot/dts/p1010rdb.dtsi b/arch/powerpc/boot/dts/p1010rdb.dtsi index ea534ef..0f0ced6 100644 --- a/arch/powerpc/boot/dts/p1010rdb.dtsi +++ b/arch/powerpc/boot/dts/p1010rdb.dtsi @@ -186,6 +186,18 @@ }; }; + ptp_clock@b0e00 { + compatible = "fsl,etsec-ptp"; + reg = <0xb0e00 0xb0>; + interrupts = <68 2 0 0 69 2 0 0>; + fsl,tclk-period = <10>; + fsl,tmr-prsc = <2>; + fsl,tmr-add = <0x80000016>; + fsl,tmr-fiper1 = <999999990>; + fsl,tmr-fiper2 = <99990>; + fsl,max-adj = <199999999>; + }; + enet0: ethernet@b0000 { phy-handle = <&phy0>; phy-connection-type = "rgmii-id"; diff --git a/arch/powerpc/boot/dts/p1020rdb-pd.dts b/arch/powerpc/boot/dts/p1020rdb-pd.dts index 987017e..c7c6416 100644 --- a/arch/powerpc/boot/dts/p1020rdb-pd.dts +++ b/arch/powerpc/boot/dts/p1020rdb-pd.dts @@ -225,6 +225,18 @@ }; }; + ptp_clock@b0e00 { + compatible = "fsl,etsec-ptp"; + reg = <0xb0e00 0xb0>; + interrupts = <68 2 0 0 69 2 0 0>; + fsl,tclk-period = <10>; + fsl,tmr-prsc = <2>; + fsl,tmr-add = <0x80000016>; + fsl,tmr-fiper1 = <999999990>; + fsl,tmr-fiper2 = <99990>; + fsl,max-adj = <199999999>; + }; + enet0: ethernet@b0000 { fixed-link = <1 1 1000 0 0>; phy-connection-type = "rgmii-id"; diff --git a/arch/powerpc/boot/dts/p1021rdb-pc.dtsi b/arch/powerpc/boot/dts/p1021rdb-pc.dtsi index d6274c5..e8a0f95 100644 --- a/arch/powerpc/boot/dts/p1021rdb-pc.dtsi +++ b/arch/powerpc/boot/dts/p1021rdb-pc.dtsi @@ -224,6 +224,18 @@ }; }; + ptp_clock@b0e00 { + compatible = "fsl,etsec-ptp"; + reg = <0xb0e00 0xb0>; + interrupts = <68 2 0 0 69 2 0 0>; + fsl,tclk-period = <10>; + fsl,tmr-prsc = <2>; + fsl,tmr-add = <0x80000016>; + fsl,tmr-fiper1 = <999999990>; + fsl,tmr-fiper2 = <99990>; + fsl,max-adj = <199999999>; + }; + enet0: ethernet@b0000 { fixed-link = <1 1 1000 0 0>; phy-connection-type = "rgmii-id"; diff --git a/arch/powerpc/boot/dts/p1022ds.dtsi b/arch/powerpc/boot/dts/p1022ds.dtsi index 957e0dc..149da0f 100644 --- a/arch/powerpc/boot/dts/p1022ds.dtsi +++ b/arch/powerpc/boot/dts/p1022ds.dtsi @@ -215,6 +215,18 @@ }; }; + 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 = <0xc01ebd3d>; + fsl,tmr-fiper1 = <999999995>; + fsl,tmr-fiper2 = <99990>; + fsl,max-adj = <266499999>; + }; + ethernet@b0000 { phy-handle = <&phy0>; phy-connection-type = "rgmii-id"; diff --git a/arch/powerpc/boot/dts/p1025twr.dtsi b/arch/powerpc/boot/dts/p1025twr.dtsi index 8453501..08816fb 100644 --- a/arch/powerpc/boot/dts/p1025twr.dtsi +++ b/arch/powerpc/boot/dts/p1025twr.dtsi @@ -138,6 +138,18 @@ }; }; + ptp_clock@b0e00 { + compatible = "fsl,etsec-ptp"; + reg = <0xb0e00 0xb0>; + interrupts = <68 2 0 0 69 2 0 0>; + fsl,tclk-period = <10>; + fsl,tmr-prsc = <2>; + fsl,tmr-add = <0xc0000021>; + fsl,tmr-fiper1 = <999999990>; + fsl,tmr-fiper2 = <99990>; + fsl,max-adj = <133333332>; + }; + enet0: ethernet@b0000 { phy-handle = <&phy0>; phy-connection-type = "rgmii-id"; diff --git a/arch/powerpc/boot/dts/p2020rdb-pc.dtsi b/arch/powerpc/boot/dts/p2020rdb-pc.dtsi index c21d1c7..ad2e242 100644 --- a/arch/powerpc/boot/dts/p2020rdb-pc.dtsi +++ b/arch/powerpc/boot/dts/p2020rdb-pc.dtsi @@ -215,12 +215,12 @@ }; 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>; + fsl,tclk-period = <5>; + fsl,tmr-prsc = <2>; + fsl,tmr-add = <0xaaaaaaab>; + fsl,tmr-fiper1 = <999999995>; + fsl,tmr-fiper2 = <99990>; + fsl,max-adj = <299999999>; }; enet0: ethernet@24000 { -- 2.1.0.27.g96db324 -- 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/