public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH V1] schemas: pci: bridge: Document PCI L0s & L1 entry delay and nfts
@ 2025-01-06  9:33 Krishna Chaitanya Chundru
  2025-01-06 15:07 ` Rob Herring
  2025-01-06 23:32 ` Bjorn Helgaas
  0 siblings, 2 replies; 8+ messages in thread
From: Krishna Chaitanya Chundru @ 2025-01-06  9:33 UTC (permalink / raw)
  To: andersson, robh, dmitry.baryshkov, manivannan.sadhasivam, krzk,
	helgaas
  Cc: linux-arm-msm, devicetree, lpieralisi, kw, conor+dt, linux-pci,
	linux-kernel, devicetree-spec, quic_vbadigan,
	Krishna Chaitanya Chundru

Some controllers and endpoints provide provision to program the entry
delays of L0s & L1 which will allow the link to enter L0s & L1 more
aggressively to save power.

As per PCIe spec 6 sec 4.2.5.6, the number of Fast Training Sequence (FTS)
can be programmed by the controllers or endpoints that is used for bit and
Symbol lock when transitioning from L0s to L0 based upon the PCIe data rate
FTS value can vary. So define a array for each data rate for nfts.

These values needs to be programmed before link training.

Signed-off-by: Krishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com>
---
- This change was suggested in this patch: https://lore.kernel.org/all/20241211060000.3vn3iumouggjcbva@thinkpad/
---
 dtschema/schemas/pci/pci-bus-common.yaml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/dtschema/schemas/pci/pci-bus-common.yaml b/dtschema/schemas/pci/pci-bus-common.yaml
index 94b648f..f0655ba 100644
--- a/dtschema/schemas/pci/pci-bus-common.yaml
+++ b/dtschema/schemas/pci/pci-bus-common.yaml
@@ -128,6 +128,16 @@ properties:
     $ref: /schemas/types.yaml#/definitions/uint32
     enum: [ 1, 2, 4, 8, 16, 32 ]
 
+  nfts:
+    description:
+      Number of Fast Training Sequence (FTS) used during L0s to L0 exit for bit
+      and Symbol lock.
+    $ref: /schemas/types.yaml#/definitions/uint32-array
+    minItems: 1
+    maxItems: 5
+    items:
+      maximum: 255
+
   reset-gpios:
     description: GPIO controlled connection to PERST# signal
     maxItems: 1
@@ -150,6 +160,12 @@ properties:
     description: Disables ASPM L0s capability
     type: boolean
 
+  aspm-l0s-entry-delay-ns:
+    description: Aspm l0s entry delay.
+
+  aspm-l1-entry-delay-ns:
+    description: Aspm l1 entry delay.
+
   vpcie12v-supply:
     description: 12v regulator phandle for the slot
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-01-08  2:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-06  9:33 [PATCH V1] schemas: pci: bridge: Document PCI L0s & L1 entry delay and nfts Krishna Chaitanya Chundru
2025-01-06 15:07 ` Rob Herring
2025-01-07 14:19   ` Krishna Chaitanya Chundru
2025-01-07 20:42     ` Bjorn Helgaas
2025-01-08  2:42       ` Krishna Chaitanya Chundru
2025-01-06 23:32 ` Bjorn Helgaas
2025-01-07 14:21   ` Krishna Chaitanya Chundru
2025-01-07 14:22   ` Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox