Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752038AbcLEOtd (ORCPT ); Mon, 5 Dec 2016 09:49:33 -0500 Received: from mail-oi0-f65.google.com ([209.85.218.65]:33350 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751847AbcLEOtb (ORCPT ); Mon, 5 Dec 2016 09:49:31 -0500 Date: Mon, 5 Dec 2016 08:49:18 -0600 From: Rob Herring To: Grygorii Strashko Cc: "David S. Miller" , netdev@vger.kernel.org, Mugunthan V N , Richard Cochran , Sekhar Nori , linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, Murali Karicheri , Wingman Kwok Subject: Re: [PATCH 1/6] net: ethernet: ti: netcp: add support of cpts Message-ID: <20161205144918.oj4jpj65aha3x5gf@rob-hp-laptop> References: <20161128230428.6872-1-grygorii.strashko@ti.com> <20161128230428.6872-2-grygorii.strashko@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161128230428.6872-2-grygorii.strashko@ti.com> User-Agent: Mutt/1.6.2-neo (2016-08-21) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1685 Lines: 43 On Mon, Nov 28, 2016 at 05:04:23PM -0600, Grygorii Strashko wrote: > From: WingMan Kwok > > This patch adds support of the cpts device found in the > gbe and 10gbe ethernet switches on the keystone 2 SoCs > (66AK2E/L/Hx, 66AK2Gx). > > Signed-off-by: WingMan Kwok > Signed-off-by: Grygorii Strashko > --- > .../devicetree/bindings/net/keystone-netcp.txt | 9 + > drivers/net/ethernet/ti/Kconfig | 7 +- > drivers/net/ethernet/ti/netcp.h | 2 +- > drivers/net/ethernet/ti/netcp_core.c | 18 +- > drivers/net/ethernet/ti/netcp_ethss.c | 437 ++++++++++++++++++++- > 5 files changed, 459 insertions(+), 14 deletions(-) > > diff --git a/Documentation/devicetree/bindings/net/keystone-netcp.txt b/Documentation/devicetree/bindings/net/keystone-netcp.txt > index 04ba1dc..c37b54e 100644 > --- a/Documentation/devicetree/bindings/net/keystone-netcp.txt > +++ b/Documentation/devicetree/bindings/net/keystone-netcp.txt > @@ -113,6 +113,15 @@ Optional properties: > will only initialize these ports and attach PHY > driver to them if needed. > > + Properties related to cpts configurations. > + - cpts_clock_mult/cpts_clock_shift: Needs vendor prefix. Don't use '_'. > + used for converting time counter cycles to ns as in > + > + ns = (cycles * clock_mult) >> _shift > + > + Defaults: clock_mult, clock_shift = calculated from > + CPTS refclk What does this mean? > + > NetCP interface properties: Interface specification for NetCP sub-modules. > Required properties: > - rx-channel: the navigator packet dma channel name for rx.