From patchwork Wed Jan 13 07:48:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wojciech Dubowik X-Patchwork-Id: 566836 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 21B6F14031E for ; Wed, 13 Jan 2016 18:49:11 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id A5A1C28B980; Wed, 13 Jan 2016 08:47:53 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 3780828AD38 for ; Wed, 13 Jan 2016 08:47:47 +0100 (CET) X-policyd-weight: using cached result; rate:hard: -7.6 Received: from mail.neratec.com (mail.neratec.com [46.140.151.2]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Wed, 13 Jan 2016 08:47:47 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.neratec.com (Postfix) with ESMTP id 91B4A908786; Wed, 13 Jan 2016 08:48:21 +0100 (CET) Received: from mail.neratec.com ([127.0.0.1]) by localhost (mail.neratec.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id ZxfhmUZQgh0o; Wed, 13 Jan 2016 08:48:21 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.neratec.com (Postfix) with ESMTP id 7631F90879D; Wed, 13 Jan 2016 08:48:21 +0100 (CET) X-Virus-Scanned: amavisd-new at neratec.com Received: from mail.neratec.com ([127.0.0.1]) by localhost (mail.neratec.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ON4HUi7vlb6e; Wed, 13 Jan 2016 08:48:21 +0100 (CET) Received: from CHB500181.neratec.local (CHB500181.neratec.local [192.168.11.68]) by mail.neratec.com (Postfix) with ESMTPSA id 5D7C7908786; Wed, 13 Jan 2016 08:48:21 +0100 (CET) From: Wojciech Dubowik To: openwrt-devel@lists.openwrt.org Date: Wed, 13 Jan 2016 08:48:15 +0100 Message-Id: <1452671295-6023-1-git-send-email-Wojciech.Dubowik@neratec.com> X-Mailer: git-send-email 1.9.1 Subject: [OpenWrt-Devel] [PATCH] mpc85xx: Add PTP node for TL-WD4900 in device tree X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" PTP requires at least one timer to be 1PPS so describe it. For testing, load kernel module gianfar_ptp and use ptp4l from linuxptp. Copied from FSL P1010RDB reference design. Signed-off-by: Wojciech Dubowik --- .../mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts index 0d79dc0..2325006 100644 --- a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts +++ b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts @@ -145,6 +145,19 @@ can1: can@1d000 { status = "disabled"; }; + + ptp_clock@b0e00 { + compatible = "fsl,etsec-ptp"; + reg = <0xb0e00 0xb0>; + interrupts = <68 2 0 0 69 2 0 0 70 2 0 0>; + fsl,cksel = <1>; + fsl,tclk-period = <5>; + fsl,tmr-prsc = <2>; + fsl,tmr-add = <0xcccccccd>; + fsl,tmr-fiper1 = <0x3b9ac9fb>; /* 1PPS */ + fsl,tmr-fiper2 = <0x00018696>; + fsl,max-adj = <249999999>; + }; }; pci0: pcie@ffe09000 {