Linux PCI subsystem development
 help / color / mirror / Atom feed
From: Niklas Cassel <cassel@kernel.org>
To: Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>
Cc: linux-pci@vger.kernel.org, devicetree@vger.kernel.org,
	"Bjorn Helgaas" <bhelgaas@google.com>,
	"Manivannan Sadhasivam" <mani@kernel.org>,
	"Krzysztof Wilczyński" <kwilczynski@kernel.org>,
	"Damien Le Moal" <dlemoal@kernel.org>,
	"Vincent Guittot" <vincent.guittot@linaro.org>,
	"Marek Vasut" <marek.vasut+renesas@mailbox.org>,
	"Koichiro Den" <den@valinux.co.jp>,
	"Niklas Cassel" <cassel@kernel.org>
Subject: [RFC PATCH v2 1/3] schemas: pci: bridge: Document the REFCLK supplied to the Link
Date: Mon, 30 Nov 2026 23:52:56 +0100	[thread overview]
Message-ID: <20261130225254.204664-6-cassel@kernel.org> (raw)
In-Reply-To: <20261130225254.204664-5-cassel@kernel.org>

Several boards describe the reference clock (REFCLK) that the platform
supplies to a slot, or to a device soldered down on the board, using a
clocks property in the Root Port node, e.g. the R-Car Sparrow Hawk,
Salvator-X(S), ULCB-KF and Geist boards. The Linux PCI slot power
control driver enables this clock when powering on the slot.

Document the property in the PCI-PCI bridge schema, since the REFCLK is
supplied to the Link of a Downstream Port, not to the host bridge. The
spread spectrum clocking (SSC) configuration of the REFCLK can then be
described using the standard assigned-clock-sscs property.

Signed-off-by: Niklas Cassel <cassel@kernel.org>
---
 dtschema/schemas/pci/pci-pci-bridge.yaml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/dtschema/schemas/pci/pci-pci-bridge.yaml b/dtschema/schemas/pci/pci-pci-bridge.yaml
index 39a53eb..38552a6 100644
--- a/dtschema/schemas/pci/pci-pci-bridge.yaml
+++ b/dtschema/schemas/pci/pci-pci-bridge.yaml
@@ -28,6 +28,15 @@ properties:
     contains:
       const: pciclass,0604
 
+  clocks:
+    description:
+      The reference clock (REFCLK) that the platform supplies to the Link of
+      this Downstream Port, e.g. the REFCLK of a slot or of a connector, or the
+      REFCLK input of a device soldered down on the board. The spread spectrum
+      clocking (SSC) configuration of this clock is described by the
+      assigned-clocks and assigned-clock-sscs properties.
+    maxItems: 1
+
   port:
     $ref: /schemas/graph.yaml#/properties/port
 
-- 
2.56.1


  reply	other threads:[~2026-11-30 22:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 22:52 [RFC PATCH v2 0/3] PCI: Describe the reference clock architecture of a Link Niklas Cassel
2026-11-30 22:52 ` Niklas Cassel [this message]
2026-11-30 22:52 ` [RFC PATCH v2 2/3] schemas: pci-bus-common: Add 'refclk-mode' property Niklas Cassel
2026-11-30 22:52 ` [RFC PATCH v2 3/3] dt-bindings: PCI: pci-ep: Add refclk-mode property Niklas Cassel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261130225254.204664-6-cassel@kernel.org \
    --to=cassel@kernel.org \
    --cc=bhelgaas@google.com \
    --cc=conor+dt@kernel.org \
    --cc=den@valinux.co.jp \
    --cc=devicetree@vger.kernel.org \
    --cc=dlemoal@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=kwilczynski@kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=mani@kernel.org \
    --cc=marek.vasut+renesas@mailbox.org \
    --cc=robh@kernel.org \
    --cc=vincent.guittot@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox