From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932745AbcK1XE6 (ORCPT ); Mon, 28 Nov 2016 18:04:58 -0500 Received: from fllnx210.ext.ti.com ([198.47.19.17]:32043 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756030AbcK1XEd (ORCPT ); Mon, 28 Nov 2016 18:04:33 -0500 From: Grygorii Strashko To: "David S. Miller" , , Mugunthan V N , Richard Cochran CC: Sekhar Nori , , , Rob Herring , , Murali Karicheri , Wingman Kwok , Grygorii Strashko Subject: [PATCH 0/6] net: ethernet: ti: cpts: update and enable support on keystone 2 socs Date: Mon, 28 Nov 2016 17:04:22 -0600 Message-ID: <20161128230428.6872-1-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.10.1 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Time Synchronization (CPTS) submodule which is present on KeyStone 66AK2HK/E/L/Gx 1G Switch Subsystem provides the same basic functionality as OMAP CPSW CPTS, but with few additional features: - CPTS rftclk selection (reg CPTS_RFTCLK_SEL). This feature is declared to be supported on am437x SoCs also. - CPTS HW_TS_PUSH events which can be generated by external low frequency time stamp channels (66AK2E/L/Gx, am437x) - one Time Stamp Compare (TS_COMP) output which is reused for PTP PPS feature implementation (66AK2E/L/Gx). Hence, This series enables basic CPTS support on Keystone 2 SoCs by resuing current CPSW CPTS driver. Links on docs: 66AK2H/kx http://www.ti.com/lit/pdf/sprugv9 66AK2E/Lx http://www.ti.com/lit/pdf/spruhz3 66AK2Gx http://www.ti.com/lit/pdf/spruhy8 Note. This series based on top of preparation series "[PATCH v2 00/13] net: ethernet: ti: cpts: update and fixes" Tested on am437x-idk, am57xx-evm, 66AK2HK, 66AK2E, 66AK2G Tests: server: ptp4l -E -2 -H -i eth0 -l 6 -m -q -p /dev/ptp0 client: ptp4l -E -2 -H -i eth0 -l 6 -m -q -p /dev/ptp0 -s testptp -g && sleep X && testptp -g testptp -c testptp -g testptp -s testptp -k 25 testptp -e 3 testptp -P 1 && .ppstest /dev/pps0 Grygorii Strashko (4): net: ethernet: ti: cpts: add support for ext rftclk selection net: ethernet: ti: cpts: add support of cpts HW_TS_PUSH net: ethernet: ti: cpts: add ptp pps support ARM: dts: keystone: enable time synchronization (cpts) submodule Murali Karicheri (1): ARM: keystone: dts: fix netcp clocks and add names WingMan Kwok (1): net: ethernet: ti: netcp: add support of cpts Documentation/devicetree/bindings/net/cpsw.txt | 4 + .../devicetree/bindings/net/keystone-netcp.txt | 25 ++ arch/arm/boot/dts/keystone-k2e-netcp.dtsi | 6 +- arch/arm/boot/dts/keystone-k2hk-netcp.dtsi | 4 +- arch/arm/boot/dts/keystone-k2l-netcp.dtsi | 6 +- drivers/net/ethernet/ti/Kconfig | 7 +- drivers/net/ethernet/ti/cpts.c | 343 +++++++++++++++- drivers/net/ethernet/ti/cpts.h | 28 +- drivers/net/ethernet/ti/netcp.h | 2 +- drivers/net/ethernet/ti/netcp_core.c | 18 +- drivers/net/ethernet/ti/netcp_ethss.c | 437 ++++++++++++++++++++- 11 files changed, 853 insertions(+), 27 deletions(-) -- 2.10.1 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grygorii Strashko Subject: [PATCH 0/6] net: ethernet: ti: cpts: update and enable support on keystone 2 socs Date: Mon, 28 Nov 2016 17:04:22 -0600 Message-ID: <20161128230428.6872-1-grygorii.strashko@ti.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Sender: linux-kernel-owner@vger.kernel.org To: "David S. Miller" , netdev@vger.kernel.org, Mugunthan V N , Richard Cochran Cc: Sekhar Nori , linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org, Murali Karicheri , Wingman Kwok , Grygorii Strashko List-Id: devicetree@vger.kernel.org Time Synchronization (CPTS) submodule which is present on KeyStone 66AK2HK/E/L/Gx 1G Switch Subsystem provides the same basic functionality as OMAP CPSW CPTS, but with few additional features: - CPTS rftclk selection (reg CPTS_RFTCLK_SEL). This feature is declared to be supported on am437x SoCs also. - CPTS HW_TS_PUSH events which can be generated by external low frequency time stamp channels (66AK2E/L/Gx, am437x) - one Time Stamp Compare (TS_COMP) output which is reused for PTP PPS feature implementation (66AK2E/L/Gx). Hence, This series enables basic CPTS support on Keystone 2 SoCs by resuing current CPSW CPTS driver. Links on docs: 66AK2H/kx http://www.ti.com/lit/pdf/sprugv9 66AK2E/Lx http://www.ti.com/lit/pdf/spruhz3 66AK2Gx http://www.ti.com/lit/pdf/spruhy8 Note. This series based on top of preparation series "[PATCH v2 00/13] net: ethernet: ti: cpts: update and fixes" Tested on am437x-idk, am57xx-evm, 66AK2HK, 66AK2E, 66AK2G Tests: server: ptp4l -E -2 -H -i eth0 -l 6 -m -q -p /dev/ptp0 client: ptp4l -E -2 -H -i eth0 -l 6 -m -q -p /dev/ptp0 -s testptp -g && sleep X && testptp -g testptp -c testptp -g testptp -s testptp -k 25 testptp -e 3 testptp -P 1 && .ppstest /dev/pps0 Grygorii Strashko (4): net: ethernet: ti: cpts: add support for ext rftclk selection net: ethernet: ti: cpts: add support of cpts HW_TS_PUSH net: ethernet: ti: cpts: add ptp pps support ARM: dts: keystone: enable time synchronization (cpts) submodule Murali Karicheri (1): ARM: keystone: dts: fix netcp clocks and add names WingMan Kwok (1): net: ethernet: ti: netcp: add support of cpts Documentation/devicetree/bindings/net/cpsw.txt | 4 + .../devicetree/bindings/net/keystone-netcp.txt | 25 ++ arch/arm/boot/dts/keystone-k2e-netcp.dtsi | 6 +- arch/arm/boot/dts/keystone-k2hk-netcp.dtsi | 4 +- arch/arm/boot/dts/keystone-k2l-netcp.dtsi | 6 +- drivers/net/ethernet/ti/Kconfig | 7 +- drivers/net/ethernet/ti/cpts.c | 343 +++++++++++++++- drivers/net/ethernet/ti/cpts.h | 28 +- drivers/net/ethernet/ti/netcp.h | 2 +- drivers/net/ethernet/ti/netcp_core.c | 18 +- drivers/net/ethernet/ti/netcp_ethss.c | 437 ++++++++++++++++++++- 11 files changed, 853 insertions(+), 27 deletions(-) -- 2.10.1