dt-bindings: PCI: cdns,cdns-pcie-host: drop redundant msi-parent and pci-bus.yaml
Subsystems (26)
PATCH v3 1/4 dt-bindings: PCI: cdns,cdns-pcie-host: drop redundant msi-parent and pci-bus.yaml
The binding reference common cdns-pcie-host.yaml, which already defines msi-parent and has a reference to pci-bus.yaml schema. Drop redundant pieces here to make it a bit smaller.
---
Changes in v3:
1. None
Changes in v2:
1. Add tags.
--- Documentation/devicetree/bindings/pci/cdns,cdns-pcie-host.yaml | 3 --- 1 file changed, 3 deletions(-)
Documentation/devicetree/bindings/pci/cdns,cdns-pcie-host.yaml +0 -3
@@ -10,7 +10,6 @@ maintainers: - Tom Joseph <[email protected]> allOf: - - $ref: /schemas/pci/pci-bus.yaml# - $ref: cdns-pcie-host.yaml# properties:
@@ -25,8 +24,6 @@ properties: - const: reg - const: cfg - msi-parent: true - required: - reg - reg-names
Signature · 1 line
2.34.1
PATCH v3 2/4 dt-bindings: PCI: mediatek,mt7621: add missing child node reg
MT7621 PCI host bridge has children which are PCI root ports. The children have "reg" property, but do not explicitly define it. Instead they rely on pci-bus.yaml schema, but that one has "reg" without any constraints.
Define the "reg" for the children, so the binding will be more specific and later will allow dropping reference to deprecated pci-bus.yaml schema.
---
Changes in v3:
1. Correct commit msg (root port).
Changes in v2:
1. Add tags.
--- .../devicetree/bindings/pci/mediatek,mt7621-pcie.yaml | 3 +++ 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/pci/mediatek,mt7621-pcie.yaml +3 -0
@@ -36,6 +36,9 @@ patternProperties: $ref: /schemas/pci/pci-bus.yaml# properties: + reg: + maxItems: 1 + resets: maxItems: 1
Signature · 1 line
2.34.1
Re: [PATCH v3 2/4] dt-bindings: PCI: mediatek,mt7621: add missing child node reg
Il 13/04/24 17:16, Krzysztof Kozlowski ha scritto:
Quoted 5 lines
MT7621 PCI host bridge has children which are PCI root ports. The children have "reg" property, but do not explicitly define it. Instead they rely on
pci-bus.yamlschema, but that one has "reg" without any constraints.
Quoted 8 lines
Define the "reg" for the children, so the binding will be more specific and later will allow dropping reference to deprecated
pci-bus.yamlschema.Acked-by Rob Herring <[email protected]>Signed-off-by Krzysztof Kozlowski <[email protected]>
PATCH v3 3/4 dt-bindings: PCI: host-bridges: switch from deprecated pci-bus.yaml
In reply to Krzysztof Kozlowskidtschema package with core schemas deprecated pci-bus.yaml schema in favor of pci-host-bridge.yaml. Update all bindings to use the latter one.
The difference between pci-bus.yaml and pci-host-bridge.yaml is only in lack of "reg" property defined by the latter, which should not have any effect here, because all these bindings define the "reg".
The change is therefore quite trivial, however it requires dtschema package v2024.02 or newer.
---
Changes in v3:
1. None
Changes in v2:
1. Add tags.
2. Split mediatek,mt7621-pcie to separate patch as it uses pci-pci-bridge schema.
--- Documentation/devicetree/bindings/pci/amlogic,axg-pcie.yaml | 2 +- Documentation/devicetree/bindings/pci/apple,pcie.yaml | 2 +- Documentation/devicetree/bindings/pci/brcm,iproc-pcie.yaml | 2 +- Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml | 2 +- Documentation/devicetree/bindings/pci/cdns-pcie-host.yaml | 2 +- Documentation/devicetree/bindings/pci/faraday,ftpci100.yaml | 2 +- Documentation/devicetree/bindings/pci/host-generic-pci.yaml | 2 +- Documentation/devicetree/bindings/pci/intel,ixp4xx-pci.yaml | 2 +- Documentation/devicetree/bindings/pci/intel,keembay-pcie.yaml | 2 +- Documentation/devicetree/bindings/pci/loongson.yaml | 2 +- Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml | 2 +- Documentation/devicetree/bindings/pci/microchip,pcie-host.yaml | 2 +- Documentation/devicetree/bindings/pci/qcom,pcie-common.yaml | 2 +- Documentation/devicetree/bindings/pci/qcom,pcie.yaml | 2 +- Documentation/devicetree/bindings/pci/rcar-pci-host.yaml | 2 +- .../devicetree/bindings/pci/renesas,pci-rcar-gen2.yaml | 2 +- Documentation/devicetree/bindings/pci/rockchip,rk3399-pcie.yaml | 2 +- Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml | 2 +- Documentation/devicetree/bindings/pci/ti,am65-pci-host.yaml | 2 +- Documentation/devicetree/bindings/pci/versatile.yaml | 2 +- Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml | 2 +- Documentation/devicetree/bindings/pci/xlnx,axi-pcie-host.yaml | 2 +- Documentation/devicetree/bindings/pci/xlnx,nwl-pcie.yaml | 2 +- Documentation/devicetree/bindings/pci/xlnx,xdma-host.yaml | 2 +- 24 files changed, 24 insertions(+), 24 deletions(-)
Documentation/devicetree/bindings/pci/amlogic,axg-pcie.yaml +1 -1
@@ -13,7 +13,7 @@ description: Amlogic Meson PCIe host controller is based on the Synopsys DesignWare PCI core. allOf: - - $ref: /schemas/pci/pci-bus.yaml# + - $ref: /schemas/pci/pci-host-bridge.yaml# - $ref: /schemas/pci/snps,dw-pcie-common.yaml# # We need a select here so we don't match all nodes with 'snps,dw-pcie'
Documentation/devicetree/bindings/pci/apple,pcie.yaml +1 -1
@@ -85,7 +85,7 @@ required: unevaluatedProperties: false allOf: - - $ref: /schemas/pci/pci-bus.yaml# + - $ref: /schemas/pci/pci-host-bridge.yaml# - $ref: /schemas/interrupt-controller/msi-controller.yaml# - if: properties:
Documentation/devicetree/bindings/pci/brcm,iproc-pcie.yaml +1 -1
@@ -11,7 +11,7 @@ maintainers: - Scott Branden <[email protected]> allOf: - - $ref: /schemas/pci/pci-bus.yaml# + - $ref: /schemas/pci/pci-host-bridge.yaml# properties: compatible:
Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml +1 -1
@@ -108,7 +108,7 @@ required: - msi-controller allOf: - - $ref: /schemas/pci/pci-bus.yaml# + - $ref: /schemas/pci/pci-host-bridge.yaml# - $ref: /schemas/interrupt-controller/msi-controller.yaml# - if: properties:
Documentation/devicetree/bindings/pci/cdns-pcie-host.yaml +1 -1
@@ -10,7 +10,7 @@ maintainers: - Tom Joseph <[email protected]> allOf: - - $ref: /schemas/pci/pci-bus.yaml# + - $ref: /schemas/pci/pci-host-bridge.yaml# - $ref: cdns-pcie.yaml# properties:
Documentation/devicetree/bindings/pci/faraday,ftpci100.yaml +1 -1
@@ -51,7 +51,7 @@ description: | <0x6000 0 0 4 &pci_intc 2>; allOf: - - $ref: /schemas/pci/pci-bus.yaml# + - $ref: /schemas/pci/pci-host-bridge.yaml# properties: compatible:
Documentation/devicetree/bindings/pci/host-generic-pci.yaml +1 -1
@@ -116,7 +116,7 @@ required: - ranges allOf: - - $ref: /schemas/pci/pci-bus.yaml# + - $ref: /schemas/pci/pci-host-bridge.yaml# - if: properties: compatible:
Documentation/devicetree/bindings/pci/intel,ixp4xx-pci.yaml +1 -1
@@ -12,7 +12,7 @@ maintainers: description: PCI host controller found in the Intel IXP4xx SoC series. allOf: - - $ref: /schemas/pci/pci-bus.yaml# + - $ref: /schemas/pci/pci-host-bridge.yaml# properties: compatible:
Documentation/devicetree/bindings/pci/intel,keembay-pcie.yaml +1 -1
@@ -11,7 +11,7 @@ maintainers: - Srikanth Thokala <[email protected]> allOf: - - $ref: /schemas/pci/pci-bus.yaml# + - $ref: /schemas/pci/pci-host-bridge.yaml# properties: compatible:
Documentation/devicetree/bindings/pci/loongson.yaml +1 -1
@@ -13,7 +13,7 @@ description: |+ PCI host controller found on Loongson PCHs and SoCs. allOf: - - $ref: /schemas/pci/pci-bus.yaml# + - $ref: /schemas/pci/pci-host-bridge.yaml# properties: compatible:
Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml +1 -1
@@ -140,7 +140,7 @@ required: - interrupt-controller allOf: - - $ref: /schemas/pci/pci-bus.yaml# + - $ref: /schemas/pci/pci-host-bridge.yaml# - if: properties: compatible:
Documentation/devicetree/bindings/pci/microchip,pcie-host.yaml +1 -1
@@ -10,7 +10,7 @@ maintainers: - Daire McNamara <[email protected]> allOf: - - $ref: /schemas/pci/pci-bus.yaml# + - $ref: /schemas/pci/pci-host-bridge.yaml# - $ref: /schemas/interrupt-controller/msi-controller.yaml# properties:
Documentation/devicetree/bindings/pci/qcom,pcie-common.yaml +1 -1
@@ -95,6 +95,6 @@ anyOf: - msi-map allOf: - - $ref: /schemas/pci/pci-bus.yaml# + - $ref: /schemas/pci/pci-host-bridge.yaml# additionalProperties: true
Documentation/devicetree/bindings/pci/qcom,pcie.yaml +1 -1
@@ -130,7 +130,7 @@ anyOf: - msi-map allOf: - - $ref: /schemas/pci/pci-bus.yaml# + - $ref: /schemas/pci/pci-host-bridge.yaml# - if: properties: compatible:
Documentation/devicetree/bindings/pci/rcar-pci-host.yaml +1 -1
@@ -12,7 +12,7 @@ maintainers: - Yoshihiro Shimoda <[email protected]> allOf: - - $ref: pci-bus.yaml# + - $ref: /schemas/pci/pci-host-bridge.yaml# properties: compatible:
Documentation/devicetree/bindings/pci/renesas,pci-rcar-gen2.yaml +1 -1
@@ -110,7 +110,7 @@ required: - "#interrupt-cells" allOf: - - $ref: /schemas/pci/pci-bus.yaml# + - $ref: /schemas/pci/pci-host-bridge.yaml# - if: properties:
Documentation/devicetree/bindings/pci/rockchip,rk3399-pcie.yaml +1 -1
@@ -10,7 +10,7 @@ maintainers: - Shawn Lin <[email protected]> allOf: - - $ref: /schemas/pci/pci-bus.yaml# + - $ref: /schemas/pci/pci-host-bridge.yaml# - $ref: rockchip,rk3399-pcie-common.yaml# properties:
Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml +1 -1
@@ -23,7 +23,7 @@ select: - compatible allOf: - - $ref: /schemas/pci/pci-bus.yaml# + - $ref: /schemas/pci/pci-host-bridge.yaml# - $ref: /schemas/pci/snps,dw-pcie-common.yaml# - if: not:
Documentation/devicetree/bindings/pci/ti,am65-pci-host.yaml +1 -1
@@ -11,7 +11,7 @@ maintainers: - Kishon Vijay Abraham I <[email protected]> allOf: - - $ref: /schemas/pci/pci-bus.yaml# + - $ref: /schemas/pci/pci-host-bridge.yaml# properties: compatible:
Documentation/devicetree/bindings/pci/versatile.yaml +1 -1
@@ -13,7 +13,7 @@ description: |+ PCI host controller found on the ARM Versatile PB board's FPGA. allOf: - - $ref: /schemas/pci/pci-bus.yaml# + - $ref: /schemas/pci/pci-host-bridge.yaml# properties: compatible:
Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml +1 -1
@@ -10,7 +10,7 @@ maintainers: - Bharat Kumar Gogada <[email protected]> allOf: - - $ref: /schemas/pci/pci-bus.yaml# + - $ref: /schemas/pci/pci-host-bridge.yaml# properties: compatible:
Documentation/devicetree/bindings/pci/xlnx,axi-pcie-host.yaml +1 -1
@@ -10,7 +10,7 @@ maintainers: - Thippeswamy Havalige <[email protected]> allOf: - - $ref: /schemas/pci/pci-bus.yaml# + - $ref: /schemas/pci/pci-host-bridge.yaml# properties: compatible:
Documentation/devicetree/bindings/pci/xlnx,nwl-pcie.yaml +1 -1
@@ -10,7 +10,7 @@ maintainers: - Thippeswamy Havalige <[email protected]> allOf: - - $ref: /schemas/pci/pci-bus.yaml# + - $ref: /schemas/pci/pci-host-bridge.yaml# - $ref: /schemas/interrupt-controller/msi-controller.yaml# properties:
Documentation/devicetree/bindings/pci/xlnx,xdma-host.yaml +1 -1
@@ -10,7 +10,7 @@ maintainers: - Thippeswamy Havalige <[email protected]> allOf: - - $ref: /schemas/pci/pci-bus.yaml# + - $ref: /schemas/pci/pci-host-bridge.yaml# properties: compatible:
Signature · 1 line
2.34.1
Re: [PATCH v3 3/4] dt-bindings: PCI: host-bridges: switch from deprecated pci-bus.yaml
Il 13/04/24 17:16, Krzysztof Kozlowski ha scritto:
Quoted 8 lines
dtschema package with core schemas deprecated
pci-bus.yamlschema in favor ofpci-host-bridge.yaml. Update all bindings to use the latter one.The difference between
pci-bus.yamlandpci-host-bridge.yamlis only in lack of "reg" property defined by the latter, which should not have any effect here, because all these bindings define the "reg".
Quoted 7 lines
The change is therefore quite trivial, however it requires dtschema package v2024.02 or newer.
Reviewed-by Geert Uytterhoeven <[email protected]> # RenesasSigned-off-by Krzysztof Kozlowski <[email protected]>
Re: [PATCH v3 3/4] dt-bindings: PCI: host-bridges: switch from deprecated pci-bus.yaml
In reply to Krzysztof KozlowskiQuoted 42 lines · Krzysztof Kozlowski
dtschema package with core schemas deprecated
pci-bus.yamlschema in favor ofpci-host-bridge.yaml. Update all bindings to use the latter one.The difference between
pci-bus.yamlandpci-host-bridge.yamlis only in lack of "reg" property defined by the latter, which should not have any effect here, because all these bindings define the "reg".The change is therefore quite trivial, however it requires dtschema package v2024.02 or newer.
Reviewed-by Geert Uytterhoeven <[email protected]> # RenesasSigned-off-by Krzysztof Kozlowski <[email protected]>---
Changes in v3:
1. NoneChanges in v2:
1. Add tags.
2. Split mediatek,mt7621-pcie to separate patch as it uses pci-pci-bridge schema.--- Documentation/devicetree/bindings/pci/amlogic,axg-pcie.yaml | 2 +- Documentation/devicetree/bindings/pci/apple,pcie.yaml | 2 +- Documentation/devicetree/bindings/pci/brcm,iproc-pcie.yaml | 2 +- Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml | 2 +- Documentation/devicetree/bindings/pci/cdns-pcie-host.yaml | 2 +- Documentation/devicetree/bindings/pci/faraday,ftpci100.yaml | 2 +- Documentation/devicetree/bindings/pci/host-generic-pci.yaml | 2 +- Documentation/devicetree/bindings/pci/intel,ixp4xx-pci.yaml | 2 +- Documentation/devicetree/bindings/pci/intel,keembay-pcie.yaml | 2 +- Documentation/devicetree/bindings/pci/loongson.yaml | 2 +- Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml | 2 +- Documentation/devicetree/bindings/pci/microchip,pcie-host.yaml | 2 +- Documentation/devicetree/bindings/pci/qcom,pcie-common.yaml | 2 +- Documentation/devicetree/bindings/pci/qcom,pcie.yaml | 2 +- Documentation/devicetree/bindings/pci/rcar-pci-host.yaml | 2 +- .../devicetree/bindings/pci/renesas,pci-rcar-gen2.yaml | 2 +- Documentation/devicetree/bindings/pci/rockchip,rk3399-pcie.yaml | 2 +-
Quoted 9 lines
Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml | 2 +- Documentation/devicetree/bindings/pci/ti,am65-pci-host.yaml | 2 +- Documentation/devicetree/bindings/pci/versatile.yaml | 2 +- Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml | 2 +- Documentation/devicetree/bindings/pci/xlnx,axi-pcie-host.yaml | 2 +- Documentation/devicetree/bindings/pci/xlnx,nwl-pcie.yaml | 2 +- Documentation/devicetree/bindings/pci/xlnx,xdma-host.yaml | 2 +- 24 files changed, 24 insertions(+), 24 deletions(-)
PATCH v3 4/4 dt-bindings: PCI: mediatek,mt7621-pcie: switch from deprecated pci-bus.yaml
In reply to Krzysztof Kozlowskidtschema package with core schemas deprecated pci-bus.yaml schema in favor of individual schemas per host, device and pci-pci.
Switch Mediatek MT7621 PCIe host bridge binding to this new schema.
This requires dtschema package newer than v2024.02 to work fully. v2024.02 will partially work: with a warning.
---
Important: This depends on change recently merged to dtschema, however no release was yet made with mentioned change.
Therefore this patch probably should wait a bit. Previous patches do not depend anyhow on future release, so they can be taken as is.
Changes in v3:
1. None
Changes in v2:
1. New patch
2. Split mediatek,mt7621-pcie to separate patch as it uses pci-pci-bridge schema.
--- .../devicetree/bindings/pci/mediatek,mt7621-pcie.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/pci/mediatek,mt7621-pcie.yaml +2 -2
@@ -14,7 +14,7 @@ description: |+ with 3 Root Ports. Each Root Port supports a Gen1 1-lane Link allOf: - - $ref: /schemas/pci/pci-bus.yaml# + - $ref: /schemas/pci/pci-host-bridge.yaml# properties: compatible:
@@ -33,7 +33,7 @@ properties: patternProperties: '^pcie@[0-2],0$': type: object - $ref: /schemas/pci/pci-bus.yaml# + $ref: /schemas/pci/pci-pci-bridge.yaml# properties: reg:
Signature · 1 line
2.34.1
Re: [PATCH v3 4/4] dt-bindings: PCI: mediatek,mt7621-pcie: switch from deprecated pci-bus.yaml
Hi Krzysztof,
Quoted 9 lines · Krzysztof Kozlowski
dtschema package with core schemas deprecated
pci-bus.yamlschema in favor of individual schemas per host, device and pci-pci.Switch Mediatek MT7621 PCIe host bridge binding to this new schema.
This requires dtschema package newer than v2024.02 to work fully. v2024.02 will partially work: with a warning.
Quoted 8 lines
Signed-off-by Krzysztof Kozlowski <[email protected]>---
Important: This depends on change recently merged to dtschema, however no release was yet made with mentioned change.
Therefore this patch probably should wait a bit. Previous patches do not depend anyhow on future release, so they can be taken as is.
Does this mean that we should set DT_SCHEMA_MIN_VERSION to 2024.02 in Documentation/devicetree/bindings/Makefile then before merging this patch?
Quoted 11 lines
Changes in v3:
1. NoneChanges in v2:
1. New patch
2. Split mediatek,mt7621-pcie to separate patch as it uses pci-pci-bridge schema.--- .../devicetree/bindings/pci/mediatek,mt7621-pcie.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Thanks,
Sergio Paracuellos
Re: [PATCH v3 4/4] dt-bindings: PCI: mediatek,mt7621-pcie: switch from deprecated pci-bus.yaml
Quoted 17 lines · Sergio Paracuellos
Hi Krzysztof,
Quoted 13 lines · Krzysztof Kozlowski
dtschema package with core schemas deprecated
pci-bus.yamlschema in favor of individual schemas per host, device and pci-pci.Switch Mediatek MT7621 PCIe host bridge binding to this new schema.
This requires dtschema package newer than v2024.02 to work fully. v2024.02 will partially work: with a warning.
Signed-off-by Krzysztof Kozlowski <[email protected]>---
Quoted 8 lines
Quoted 4 lines
Important: This depends on change recently merged to dtschema, however no release was yet made with mentioned change.
Therefore this patch probably should wait a bit. Previous patches do not depend anyhow on future release, so they can be taken as is.Does this mean that we should set
DT_SCHEMA_MIN_VERSIONto 2024.02 inDocumentation/devicetree/bindings/Makefilethen before merging this patch?
For the previous changes: yes. For this one: we need newer... Best regards,
Krzysztof
Re: [PATCH v3 4/4] dt-bindings: PCI: mediatek,mt7621-pcie: switch from deprecated pci-bus.yaml
In reply to Krzysztof KozlowskiIl 13/04/24 17:16, Krzysztof Kozlowski ha scritto:
Quoted 10 lines
dtschema package with core schemas deprecated
pci-bus.yamlschema in favor of individual schemas per host, device and pci-pci.Switch Mediatek MT7621 PCIe host bridge binding to this new schema.
This requires dtschema package newer than v2024.02 to work fully. v2024.02 will partially work: with a warning.
Signed-off-by Krzysztof Kozlowski <[email protected]>
Krzysztof Wilczyński
AppliedHello,
Quoted 3 lines
The binding reference common
cdns-pcie-host.yaml, which already defines msi-parent and has a reference topci-bus.yamlschema. Drop redundant pieces here to make it a bit smaller.
Applied to dt-bindings, thank you!
[01/04] dt-bindings: PCI: cdns,cdns-pcie-host: Drop redundant msi-parent and pci-bus.yaml
https://git.kernel.org/pci/pci/c/51ef0538d4e1 [02/04] dt-bindings: PCI: mediatek,mt7621: Add missing child node reg https://git.kernel.org/pci/pci/c/36fbed38549c [03/04] dt-bindings: PCI: host-bridges: Switch from deprecated pci-bus.yaml https://git.kernel.org/pci/pci/c/5db62b7d3c37 [04/04] dt-bindings: PCI: mediatek,mt7621-pcie: Switch from deprecated pci-bus.yaml https://git.kernel.org/pci/pci/c/d3fa4be9033b Krzysztof