On Sat, Apr 19, 2025 at 10:49:24AM +0530, Krishna Chaitanya Chundru wrote: > Move the phy, phy-names, wake-gpio's to the pcie root port node instead of > the bridge node, as agreed upon in multiple places one instance is[1]. s/instead of the bridge node/from host bridge node/g > > Update the qcom,pcie-common.yaml to include the phy, phy-names, and > wake-gpios properties in the root port node. There is already reset-gpios > defined for PERST# in pci-bus-common.yaml, start using that property > instead of perst-gpio. > > For backward compatibility, do not remove any existing properties in the > bridge node. ... Hence mark them as 'deprecated'. > > [1] https://lore.kernel.org/linux-pci/20241211192014.GA3302752@bhelgaas/ > > Signed-off-by: Krishna Chaitanya Chundru <krishna.chundru@xxxxxxxxxxxxxxxx> > --- > .../devicetree/bindings/pci/qcom,pcie-common.yaml | 36 ++++++++++++++++++++-- > .../devicetree/bindings/pci/qcom,pcie-sc7280.yaml | 16 +++++++--- > 2 files changed, 46 insertions(+), 6 deletions(-) > > diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie-common.yaml b/Documentation/devicetree/bindings/pci/qcom,pcie-common.yaml > index 0480c58f7d998adbac4c6de20cdaec945b3bab21..e5f60faa18ad68a29900a66fbfcba3d4f8e88e7b 100644 > --- a/Documentation/devicetree/bindings/pci/qcom,pcie-common.yaml > +++ b/Documentation/devicetree/bindings/pci/qcom,pcie-common.yaml > @@ -51,10 +51,18 @@ properties: > > phys: > maxItems: 1 > + deprecated: true > + description: > + This property is deprecated, instead of referencing this property from > + the controller node, use the property from the PCIe root port node. s/controller/host bridge Here and below. > > phy-names: > items: > - const: pciephy > + deprecated: true > + description: > + Phandle to the register map node. This property is deprecated, and not > + required to add in the root port also, as the root port has only one phy. > > power-domains: > maxItems: 1 > @@ -71,12 +79,18 @@ properties: > maxItems: 12 > > perst-gpios: > - description: GPIO controlled connection to PERST# signal > + description: GPIO controlled connection to PERST# signal. This property is > + deprecated, instead of referencing this property from the controller node, > + use the reset-gpios property from the root port node. > maxItems: 1 > + deprecated: true > > wake-gpios: > - description: GPIO controlled connection to WAKE# signal > + description: GPIO controlled connection to WAKE# signal. This property is > + deprecated, instead of referencing this property from the controller node, > + use the property from the PCIe root port node. > maxItems: 1 > + deprecated: true > > vddpe-3v3-supply: > description: PCIe endpoint power supply > @@ -85,6 +99,24 @@ properties: > opp-table: > type: object > > +patternProperties: > + "^pcie@": > + type: object > + $ref: /schemas/pci/pci-pci-bridge.yaml# > + > + properties: > + reg: > + maxItems: 1 > + > + phys: > + maxItems: 1 > + > + wake-gpios: > + description: GPIO controlled connection to WAKE# signal > + maxItems: 1 Shouldn't 'wake-gpios' be part of the pci-bus-common.yaml? - Mani -- மணிவண்ணன் சதாசிவம்