Skip to contentSkip to conversation

schemas: pci: Extend the meaning of 'linux,pci-probe-only'

PATCH Superseded Vidya Sagar 1 participant 1 message Feb 23, 2024

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 schemas: pci: Extend the meaning of 'linux,pci-probe-only'

Extend the meaning of 'linux,pci-probe-only' to cover the cases where it is applicable only to a specific PCI host bridge if defined in a PCI node instead of chosen node. Add the documentation for the same in schemas/pci/pci-host-bridge.yaml

---
V2:
* Addressed Bjorn's review comments

 dtschema/schemas/chosen.yaml              | 7 +++++--
 dtschema/schemas/pci/pci-host-bridge.yaml | 8 ++++++++
 2 files changed, 13 insertions(+), 2 deletions(-)
dtschema/schemas/chosen.yaml +5 -2
index 6d5c3f1..f806646 100644
@@ -142,8 +142,11 @@ properties:
     enum: [ 0, 1 ]
     description:
       Optional property which takes a single-cell argument. If '0', then Linux
-      will assign devices in its usual manner, otherwise it will not try to
-      assign devices and instead use them as they are configured already.
+      will reassign BARs and bridge windows in its usual manner, otherwise it will
+      not try to reassign BARs and bridge windows, instead use them as they are
+      configured already by the platform firmware.
+      NOTE:- To restrict the applicability of this property to a specific PCI
+             host bridge, please refer to /schemas/pci/pci-host-bridge.yaml
 
   stdout-path:
     $ref: types.yaml#/definitions/string
dtschema/schemas/pci/pci-host-bridge.yaml +8 -0
index fbbb829..e977520 100644
@@ -31,6 +31,14 @@ properties:
       number for each host bridge in the system must be unique.
     $ref: /schemas/types.yaml#/definitions/uint32
 
+  linux,pci-probe-only:
+    description: If present, Linux will not try to reassign BARs and bridge windows,
+      instead use them as they are configured already by the platform firmware for
+      this particular host bridge.
+      NOTE:- If defined in chosen node, this property has system wide applicability.
+             Please refer to /schemas/chosen.yaml for more info.
+    type: boolean
+
   msi-map:
     $ref: /schemas/types.yaml#/definitions/uint32-matrix
     items:
Signature · 1 line
2.25.1