Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp212084rwr; Wed, 26 Apr 2023 23:36:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5p5z9WWQP9uL3VKweyn21qIIS48BVzCCSlRip9OswMvolrGFhoWnn8I4zJyLRhH8dod2uU X-Received: by 2002:a17:902:ea04:b0:1a9:9ace:3e84 with SMTP id s4-20020a170902ea0400b001a99ace3e84mr712670plg.1.1682577402825; Wed, 26 Apr 2023 23:36:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1682577402; cv=pass; d=google.com; s=arc-20160816; b=wLFKbkYCSCqqAn8Q9aP5IVfH6Q/FgA3ExVcYd26vPiaHsuqWmieeoEevfpXmAHULns 8ypyzQcIm4ovL9/erqX9a5l3UA0svlpAwYMKitqUnr9cQkhQva0qC1/Uaq8q0LGH7ndn xAhuvLRj8xOU1lAliWcVWcs+BoghyphCiaUocfNvN2E6l/ICf3cbLPZjexQNVt156/T9 O4PS72bE9mOO9upWruiE1s1FmFEkhqdcHipnBWsNrq0h+MCO3qsMtFaeInsgzThFJmkV i8+VHtFDgh5yzcfVHCWp9Im+Yu7DKJ3c8wErbKCiP/FTHtI6OibKaIOkuGUlp57ewbZO jiMg== 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 :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=0RdX+7xAWsp826jhstTm3kG2Y6PBNziZpbmEFFXWF3Y=; b=FRt3MUKiLphaUVU47gcKkGJzQQaLoV3cpRHulWAT9qzuq552LYgWYIhwmT0Bqvl8Gi tOKU3vYwVetdEEZ9+0kpFpRHUsGNZgDW07qa1IHvEGNrJ3Cw0JsBt1ZQ4PqCp0p9AOMv lQDFs9tBc/o2I+Isuslynnvw3nhof1wdvCp77k1JTns9Zg4/t/CxYEflGvfeKCuB9rfk XqKckm0BWlyo94JJbxaf3TpIC9eNnveS8RKW0FJn9wC9qIw6ao9+7W2Y7x5C4TJ6qeCc JMhkc8kvL3xVkJF0z/9FPDxSJiOjPJbMYldvdICED8hYaAUGODeuNufJJ9+3AVgvfaNc +DiA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibv-augsburg.de header.s=strato-dkim-0002 header.b=tZqtGHpa; 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 h6-20020a170902680600b001a69eff58f9si18073020plk.235.2023.04.26.23.36.27; Wed, 26 Apr 2023 23:36:42 -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=tZqtGHpa; 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 S242924AbjD0GDD (ORCPT + 99 others); Thu, 27 Apr 2023 02:03:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242131AbjD0GDB (ORCPT ); Thu, 27 Apr 2023 02:03:01 -0400 X-Greylist: delayed 362 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 26 Apr 2023 23:03:00 PDT Received: from mo4-p01-ob.smtp.rzone.de (mo4-p01-ob.smtp.rzone.de [81.169.146.166]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BFD42718 for ; Wed, 26 Apr 2023 23:02:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682574657; cv=none; d=strato.com; s=strato-dkim-0002; b=a9wMPiyLwLZIZyJNVcCPMTW1DGrzOvwMTVs1TVeG+WUZboU6R9Vvqi/ZEx5l1MA9FY kshrK/bVt+3uHU5PTzTckUCP8zoH1Elmi+czlJ0XAXv0L+dfortRo2TTHktSn9vwZ2Vv sRifZy0OhTVshwgDFLfhgt+4Lh2JqHojPeE1pPrycdcu15jf9eWtuS0RyAFtq7FeI+Ky ty3kerOI0BwmlMxePzISZ35DcLse83w5HQQVqxf/66mOifYynDUjHrVp5DYpo23Otx68 Aa6a07MipXOD4C1EgyMwUALv+Kr5Rue1i2wxS+w8SaHIoMUQ1TlqYS7H2pnyUSolNSFH Rg6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1682574657; s=strato-dkim-0002; d=strato.com; h=Message-Id:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=0RdX+7xAWsp826jhstTm3kG2Y6PBNziZpbmEFFXWF3Y=; b=jhbOqiCi4JgSXuKRRplcslsdWuzukr25w8SXYsjyyp8GI2thbt74L28YGxF9tXmY7w XOTx29lmiOamh0R4gGKkjZkbq9Vg/eNTkt9jPOkIEjhY16ZMYOUybQEKidyeP1bLWPH+ b3qlCrNjZGdEvpTxD/F9BfbvG54IgDAHegWws+Vr45vu7K10cgfvyn7r10WidG2MA+Zk HoFmhXe3Sc+S/vY52mYq21Tl0ZsLzo/VmQJoX3kZc1ZJ4jTCz15kK4WbTBTdDDj6HZgr nTf0ekY+DHyiGf3y6vciqZkY1B2lAGWslxnjrQw563/NIIWRf+YV5XNqWjffU+cKMrje ctow== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo01 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1682574657; s=strato-dkim-0002; d=ibv-augsburg.de; h=Message-Id:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=0RdX+7xAWsp826jhstTm3kG2Y6PBNziZpbmEFFXWF3Y=; b=tZqtGHpaoTL/yO8uE9qhFTHngpEet9QwIKKkWnr+3sbrQ8ihg630FkyDp4clPGD5DL gBzgu/OJYPuvCMZf4LXAcSmhlU3Ve/09u/qyjLDH80mUXlnukYWVk/MRSp3x1qswpc5V MJw7YNQBcPgcmQHT6BLpUyDZUxUo57AKE9m9pV49E29LvVN5BIqUdhENu2M8oOR7x6/V IsplirYexhILnB448FHojCOGxiCN8pVx8TqZNSz2mMmyQmhgEyJz2bIM9W9jVsYmbEIo 39ZcCxvv9UxRwFBn4q+W05l7nGoiIqW1JjHRrMqKIPHMyr2z+5kigDcHFC8YFk0H1nWh asGQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1682574657; s=strato-dkim-0003; d=ibv-augsburg.de; h=Message-Id:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=0RdX+7xAWsp826jhstTm3kG2Y6PBNziZpbmEFFXWF3Y=; b=xKYautB97pS4GwqEPdS2wUVQ3RB2/vtTGR3gy9FXSQgXJkpz+xLw+JtIJdrepABDQW C7YCnA7UHx5pcOzLt3DA== X-RZG-AUTH: ":KGMJfE6heLGk8b3w7Oa1fDtXwBjeDczIOHPRx8yNRKhFG/cxcP9dNdI9SxioDT8RvZMqtMfbyXFLOT+2odkF/80=" Received: from localhost.localdomain by smtp.strato.de (RZmta 49.4.0 DYNA|AUTH) with ESMTPSA id d6376fz3R5ouNqL (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Thu, 27 Apr 2023 07:50:56 +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 0/3] Cadence PCIe PHY latency for PTM Date: Thu, 27 Apr 2023 07:50:29 +0200 Message-Id: <20230427055032.85015-1-rath@ibv-augsburg.de> X-Mailer: git-send-email 2.36.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 Hello Everyone, this series adds PHY latency properties to the Cadence PCIe driver to improve PTM accuracy, and configures the necessary values for TI's AM64x processors. These latencies are implementation specific and need to be configured in the PCIe IP core's registers to allow the PCIe controller to exactly determine the RX/TX timestamps for PCIe PTM messages. TI doesn't document these values in the datasheet or reference manual as of now, but provided the necessary data via TI's E2E forums (see PATCH 3/3). Changes from v1 to v2: - move latency property to PHY instead of PCIe controller - drop vendor prefix from property name - rephrase commit message regarding optional properties - emit an info message instead of a warning in case an optional property is missing Best Regards, Dominic Alexander Bahle (3): dt-bindings: phy: cadence-torrent: Add latency properties PCI: cadence: Use DT bindings to set PHY latencies arm64: dts: ti: k3-am64: Add PCIe PHY latency DT binding .../bindings/phy/phy-cadence-torrent.yaml | 20 ++++ arch/arm64/boot/dts/ti/k3-am642-evm.dts | 2 + .../pci/controller/cadence/pcie-cadence-ep.c | 2 + .../controller/cadence/pcie-cadence-host.c | 1 + drivers/pci/controller/cadence/pcie-cadence.c | 92 +++++++++++++++++++ drivers/pci/controller/cadence/pcie-cadence.h | 23 +++++ 6 files changed, 140 insertions(+) base-commit: 0cfd8703e7da687924371e9bc77a025bdeba9637 -- 2.36.0