Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp193182rwr; Wed, 26 Apr 2023 23:14:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7dH4pIzJkGAVANMBOMcUkXpnTV57Y31Cou6FfB2zfsezghjri7HWleGAvk0W0rkYjdWv8K X-Received: by 2002:a05:6a20:4321:b0:f6:7bb8:c8e5 with SMTP id h33-20020a056a20432100b000f67bb8c8e5mr670182pzk.6.1682576070725; Wed, 26 Apr 2023 23:14:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1682576070; cv=pass; d=google.com; s=arc-20160816; b=TrfEqzLgwzWmtPZfNJJR5vBnmvpHwvxthEDvas00zUCOYYkRwyc32XB8FHVqNYmGzq A7JajLGx/pIMN/K+bDgFXFvAWYLZ21JyyAluvzj3pjz5otV2bTeU6MQiaxJ8o5G0vGHi VjwnCZoFjH9OwHKKAojlncUPavTGbsS3EIEcSxZsiR9W68/MM2YQxe0AivN4W4LtWHJx 6UVvA0D30xOCgEH0XObeLg4a/FNyx4D7QOTb3jFBwj1MbLJ9GQfy4xLFND+gg1jcoLfN UGPZlLPEtrmerdupoZgwxNFjEIOHWNKaOx4V88FhFUZcCsDHSGZVFAzTTNPREhkAJjv1 VzqQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=/89t7kagvmVUH2PkZ3RsurDh1iH7jgvxPKVl7Tj7Ex8=; b=rKGXAuunpsAmb8NHkI1E7ZOZGMa3xvk2uFK9lNbOogPR+wQYjeKkLu5YGOOGi8O4lw f7NpcOSHQcxBrLimEdDWQEp0HiG/WYfw0GX+LC4QZVW1sajNsz9KRmyw3uquLyDTyK1M oYssSbtH/6zk8AUT/HquQpbd2RpjVWDa2wLjdOFBafncI239556s5qMzZjLh06sKW2Fm J8rJ8TdWnA7swBn2t73Szt1hYdThke6X18aKGHievtbknJPZm0AV/RUyPDO1qZhLN/Lt 7Y7zrME2gAvCYFcgpG41ScwqN9G00h2j0l20Z1elMfpjVR2G6aQ5TfAyU+KqWakmBRgO gWSw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibv-augsburg.de header.s=strato-dkim-0002 header.b=HqukGcd6; dkim=neutral (no key) header.i=@ibv-augsburg.de; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bm18-20020a656e92000000b0051343ab1eb5si18847127pgb.581.2023.04.26.23.14.18; Wed, 26 Apr 2023 23:14:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibv-augsburg.de header.s=strato-dkim-0002 header.b=HqukGcd6; dkim=neutral (no key) header.i=@ibv-augsburg.de; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242933AbjD0GDF (ORCPT + 99 others); Thu, 27 Apr 2023 02:03:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242672AbjD0GDC (ORCPT ); Thu, 27 Apr 2023 02:03:02 -0400 Received: from mo4-p02-ob.smtp.rzone.de (mo4-p02-ob.smtp.rzone.de [85.215.255.82]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20E163585 for ; Wed, 26 Apr 2023 23:03:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682574660; cv=none; d=strato.com; s=strato-dkim-0002; b=UhuubxIkc5Dsp4k3P3b/n/AcpMUnJ9rbdnQ0mV6XSwlEOHFnnx2b+P4mflk4E7x8gc AOehoYTmqTkMzw6DjVStMPBtGbBtHqAf4KoCbYMpFiV3Sf2KQZQwzaTzikK9vDEfYmyH /A278JUWmyxthJ2EJAWJbbbsOLG8iFEUUVZLfUGDUWtWvYe8zonGz4cc2AIl9yQM1JGz roj/S+EiNA08ET7Nw+/6xHsDK2RcUJfAsdYfcVTAE3QyZmnYu4eQPaxCoFZ2ih/JOl3J MlTffVUQxQrRFroLbgs8PJPCPyCzu4Sc8v6gOduFji1q636IyRWwC0bnczKmczU60E7v uR2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1682574660; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=/89t7kagvmVUH2PkZ3RsurDh1iH7jgvxPKVl7Tj7Ex8=; b=Z3tTuhadfiFgFGGc+YEAGgHMYc4kzu6T97vOI+a5XQBo+Borf96e6+Wam4AsRp25xJ 3tZHEpEnGaVBNwuIfj0GTyK8eEGB+ttghRvFj6OpoaijK2lAf6E53/yeR5FlmlQPKHH4 e3w+mH2Umen/cBt2euUNZpHY3sKqIf7aNP4NOH9hIxTGqPZptt0RRR5eb4ATagaINrZ1 xD44pmH7ANynoMUb/bCzFOQdTFWL+U9gcOrd8lMkP/Gh28s0t8s2tZ42FfA8cdj/jPty Z6HmhUAGAxqEuUOqRdDzWkcnVjJ8mVkR3tMnG1zH+QoLM3JLgc3TDBupxy+IGfryHsmd ckhg== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo02 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1682574660; s=strato-dkim-0002; d=ibv-augsburg.de; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=/89t7kagvmVUH2PkZ3RsurDh1iH7jgvxPKVl7Tj7Ex8=; b=HqukGcd64cDnoBPVC4+dLIA3AEpSTQcDsG6aEsWspO3tAq9tqo31zfGApwucz3Waxm O34iM2JZeYpE1kWzUolPABs9LfYKER4dLmN2NUYjwduBxlRd1+5ie1Sa/D5X3mI05kBg j8tkOGCBL6ef4C8msmoAxfD2ZDILVlN2uoWqTBLGenZ4fn/dT3/j8pdwQBae48WUmnmH b+gNdnEDVcqlVTxZ6icr32tcFXvvcXnZUZqChOYwVuOFOCaKHqtsa4GmrTfr2rixVvgD LMygaFQ6o+OSOhmK5XmuaG7kjVQmsy4OQS8GSJOIH2JSVe1wOBDq+eYEKMccBe8WL7/1 rGEA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1682574660; s=strato-dkim-0003; d=ibv-augsburg.de; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=/89t7kagvmVUH2PkZ3RsurDh1iH7jgvxPKVl7Tj7Ex8=; b=jD0YsMM0J5MLq9VDYVcJpnql7ape2cXTqxrySp4I2Mhg+Al4ua2paXfQU1JfpdWRUB nhGZxgPpptJR1OB/pGCA== X-RZG-AUTH: ":KGMJfE6heLGk8b3w7Oa1fDtXwBjeDczIOHPRx8yNRKhFG/cxcP9dNdI9SxioDT8RvZMqtMfbyXFLOT+2odkF/80=" Received: from localhost.localdomain by smtp.strato.de (RZmta 49.4.0 DYNA|AUTH) with ESMTPSA id d6376fz3R5p0NqM (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Thu, 27 Apr 2023 07:51:00 +0200 (CEST) From: Dominic Rath To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, tjoseph@cadence.com Cc: bhelgaas@google.com, lpieralisi@kernel.org, nm@ti.com, vigneshr@ti.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, christian.gmeiner@gmail.com, bahle@ibv-augsburg.de, Dominic Rath Subject: [PATCH v2 1/3] dt-bindings: phy: cadence-torrent: Add latency properties Date: Thu, 27 Apr 2023 07:50:30 +0200 Message-Id: <20230427055032.85015-2-rath@ibv-augsburg.de> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20230427055032.85015-1-rath@ibv-augsburg.de> References: <20230427055032.85015-1-rath@ibv-augsburg.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alexander Bahle Add "tx-phy-latency-ps" and "rx-phy-latency-ps" DT bindings for setting the PCIe PHY latencies. The properties expect a list of uint32 PHY latencies in picoseconds for every supported speed starting at PCIe Gen1, e.g.: tx-phy-latency-ps = <100000 200000>; /* Gen1: 100ns, Gen2: 200ns */ rx-phy-latency-ps = <150000 250000>; /* Gen1: 150ns, Gen2: 250ns */ Signed-off-by: Alexander Bahle Signed-off-by: Dominic Rath --- .../bindings/phy/phy-cadence-torrent.yaml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml b/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml index 2ad1faadda2a..93228a304395 100644 --- a/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml +++ b/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml @@ -126,6 +126,24 @@ patternProperties: enum: [2160, 2430, 2700, 3240, 4320, 5400, 8100] default: 8100 + tx-phy-latency-ps: + description: + The PHY latencies for the TX direction applied to PCIe PTM timestamps. Most + PCIe PHYs have asynchronous latencies for their RX and TX paths. To obtain + accurate PTM timestamps, the PCIe PTM specification requires that the time + at which the first serial bit is present on the serial lines be taken. + Should contain picosecond latency values for each supported speed, + starting with Gen1 latency. + + rx-phy-latency-ps: + description: + The PHY latencies for the RX direction applied to the PTM timestamps. Most + PCIe PHYs have asynchronous latencies for their RX and TX paths. To obtain + accurate PTM timestamps, the PCIe PTM specification requires that the time + at which the first serial bit is present on the serial lines be taken. + Should contain picosecond latency values for each supported speed, + starting with Gen1 latency. + required: - reg - resets @@ -203,6 +221,8 @@ examples: cdns,phy-type = ; cdns,num-lanes = <2>; cdns,ssc-mode = ; + tx-phy-latency-ps = <138800 69400>; + rx-phy-latency-ps = <185200 92600>; }; phy@2 { -- 2.36.0