Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp446465pxb; Thu, 12 Nov 2020 07:39:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJzOGNq+xhWYiQVLZi5fCDcGh5umKTpXturvd6/hAhHuDYFvtPCVau7vr0IyOTC0MYIOhvIg X-Received: by 2002:a17:906:ca83:: with SMTP id js3mr32083232ejb.42.1605195599587; Thu, 12 Nov 2020 07:39:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605195599; cv=none; d=google.com; s=arc-20160816; b=nKxDqnkdM8SYw1x65HRofHlzJFqz9ApCW25i/ysGgZfcUY0Q22+4wUFOAi4ETh6OIq RcDo6vIx75J6WTj63ZYvDsm9C3anbyWB3JvP1UGPKzg2cUyR+0XiVBg9DO5uxKhFa/4Q oobQTRx8YjG8aSsfyFpta0/fssp3q6JxgWauaD482R8CVtqrFQJSe+5XrZw6bIt1Md7A ObSOaCFLnxz5oBmAq+cfIcdHZWLDGNOKmkEeQwYgWMalAR7dMFvKG3jq3/0PWW4hpVDX RrsPL2di/jIo8eytz2TrMeNK5u+5D82bxCXfw5cBAJH0zffwIgouYtSGQdjUwhW3hQYq /Tuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Ap5QifOWGZWTXf9tVq6kTWBhnEHtS8PgvBWGvk6A0yc=; b=IaWyBJ7o0GugYOqmcyb0aU4mMM1biGA/8ucg+rwNoK1/Lqicg5M7h98IJ1Xnb35+yA qx7PTe0UpM0FKqpnm1ps4Iuc/S0WE0cfjDlwRzFWLSnXKnmQgrVq4DcpzpexSRKWMfEo phBEw5MpWaB1WA7FH9t+cwi9mRiDF1Op9eLZNsGc+RbGQ+OGhVsQnwFqLK560DX2yjdM s9oFdDSY2GGRAKk8+ovDIv+IJ9istobtoPY0JXL1QSZiv6w1z+PirE7gIvq6nicxDcHT HF2vul4LV4LkbDFXEprbfTpI0gu5DL8HCR7S6t9H0sqtiWuhBrzzKRh9LSJegJrQkO6n Io4A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bo13si3757711ejb.463.2020.11.12.07.39.34; Thu, 12 Nov 2020 07:39:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728671AbgKLPhK (ORCPT + 99 others); Thu, 12 Nov 2020 10:37:10 -0500 Received: from mailout08.rmx.de ([94.199.90.85]:38525 "EHLO mailout08.rmx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728233AbgKLPhJ (ORCPT ); Thu, 12 Nov 2020 10:37:09 -0500 Received: from kdin01.retarus.com (kdin01.dmz1.retloc [172.19.17.48]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout08.rmx.de (Postfix) with ESMTPS id 4CX5Lp1ZwpzMs7Q; Thu, 12 Nov 2020 16:37:06 +0100 (CET) Received: from mta.arri.de (unknown [217.111.95.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by kdin01.retarus.com (Postfix) with ESMTPS id 4CX5LY3q46z2xKF; Thu, 12 Nov 2020 16:36:53 +0100 (CET) Received: from N95HX1G2.wgnetz.xx (192.168.54.59) by mta.arri.de (192.168.100.104) with Microsoft SMTP Server (TLS) id 14.3.487.0; Thu, 12 Nov 2020 16:35:51 +0100 From: Christian Eggers To: Vladimir Oltean , Jakub Kicinski , Andrew Lunn , Richard Cochran , "Rob Herring" CC: Vivien Didelot , "David S . Miller" , Kurt Kanzenbach , George McCollister , Marek Vasut , Helmut Grohne , Paul Barker , Codrin Ciubotariu , Tristram Ha , Woojung Huh , Microchip Linux Driver Support , Christian Eggers , , , Subject: [PATCH net-next v2 00/11] net: dsa: microchip: PTP support for KSZ956x Date: Thu, 12 Nov 2020 16:35:26 +0100 Message-ID: <20201112153537.22383-1-ceggers@arri.de> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [192.168.54.59] X-RMX-ID: 20201112-163653-4CX5LY3q46z2xKF-0@kdin01 X-RMX-SOURCE: 217.111.95.66 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is only little documentation for PTP available on the data sheet [1] (more or less only the register reference). Questions to the Microchip support were seldom answered comprehensively or in reasonable time. So this is more or less the result of reverse engineering. [1] http://ww1.microchip.com/downloads/en/DeviceDoc/KSZ9563R-Data-Sheet-DS00002419D.pdf Changes from RFC --> v2 ------------------------ I think that all open questions regarding the RFC version could be solved. dts: referenced to dsa.yaml dts: changed node name to "switch" in example dts: changed "ports" subnode to "ethernet-ports" ksz_common: support "ethernet-ports" subnode tag_ksz: fix usage of correction field (32 bit ns + 16 bit sub-ns) tag_ksz: use cached PTP header from device's .port_txtstamp function tag_ksz: refactored ksz9477_tstamp_to_clock() tag_ksz: pdelay_req: only subtract 2 bit seconds from the correction field tag_ksz: pdelay_resp: don't move (negative) correction to the egress tail tag ptp_classify: add ptp_onestep_p2p_move_t2_to_correction helper ksz9477_ptp: removed E2E support (as suggested by Vladimir) ksz9477_ptp: removed master/slave sysfs attributes (nacked by Richard) ksz9477_ptp: refactored ksz9477_ptp_port_txtstamp ksz9477_ptp: removed "pulse" attribute kconfig: depend on PTP_1588_CLOCK (instead of "imply")