From: Fil Dunsky Date: Fri, 27 Nov 2026 07:35:22 +0300 Subject: [PATCH v3 4/6] dt-bindings: PCI: Describe the CS7542 host controller MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261127-b4-cs7542-pcie-v3-4-b067875c56da@gmail.com> References: <20261127-b4-cs7542-pcie-v3-0-b067875c56da@gmail.com> In-Reply-To: <20261127-b4-cs7542-pcie-v3-0-b067875c56da@gmail.com> To: Manivannan Sadhasivam , Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Jingoo Han , Lorenzo Pieralisi , Krzysztof Wilczynski , Bjorn Helgaas , Neil Armstrong , Stephen Boyd , Philipp Zabel , linux-pci@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795754119; l=4734; i=filipp.dunsky@gmail.com; s=20260930; h=from:subject:message-id; bh=1M0SGA4AGWMmT+i2PMWVBYnEgxKZHs7qfaNcKYqu3Hk=; b=LkmFgb4hctQlEWPZVQw5u61Kdp7UWNQ5GtGA79k4ZLbAeNoROsG4TR2HXx4mJUJ/y5JbhPoEc Ht3cd42/1CyCOrAMsQrW3LfeaLH0PT9mY/9vgHqybJk45O/amgqRhQ+ X-Developer-Key: i=filipp.dunsky@gmail.com; a=ed25519; pk=JAYP8e2rJ54DHOmhNtXud8rl1igAaAXoOHxtJmVXI1g= X-Endpoint-Received: by B4 Relay for filipp.dunsky@gmail.com/20260930 with auth_id=1085 List-Id: B4 Relay Submissions Describe the DesignWare host wrapper, clock/reset/PHY consumers, combined interrupt and INTx domain. Document the root configuration access limit. Signed-off-by: Fil Dunsky --- .../bindings/pci/cortina,cs7542-pcie.yaml | 157 +++++++++++++++++++++ 1 file changed, 157 insertions(+) diff --git a/Documentation/devicetree/bindings/pci/cortina,cs7542-pcie.yaml b/Documentation/devicetree/bindings/pci/cortina,cs7542-pcie.yaml new file mode 100644 index 000000000..64cd7c744 --- /dev/null +++ b/Documentation/devicetree/bindings/pci/cortina,cs7542-pcie.yaml @@ -0,0 +1,157 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pci/cortina,cs7542-pcie.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cortina Systems CS7542 PCIe host controller + +maintainers: + - Fil Dunsky + +description: | + DesignWare host with a Cortina application wrapper. A single interrupt + multiplexes four INTx lines, the internal MSI receiver and link errors. + Root-port configuration is accessible only below offset 0x200; the + DesignWare private register bank starts at offset 0x700. + +allOf: + - $ref: /schemas/pci/snps,dw-pcie.yaml# + +properties: + compatible: + const: cortina,cs7542-pcie + + reg: + items: + - description: DBI registers including the viewport iATU + - description: Downstream configuration window + - description: Application wrapper registers + + reg-names: + items: + - const: dbi + - const: config + - const: app + + clocks: + maxItems: 1 + + interrupts: + maxItems: 1 + + interrupt-names: + const: msi + + resets: + maxItems: 1 + + phys: + maxItems: 1 + + phy-names: + const: pcie + + num-lanes: + const: 1 + + reset-gpios: false + + interrupt-controller: + type: object + additionalProperties: false + properties: + "#address-cells": + const: 0 + "#interrupt-cells": + const: 1 + interrupt-controller: true + required: + - "#address-cells" + - "#interrupt-cells" + - interrupt-controller + +patternProperties: + "^pcie@[0-9a-f]+,[0-7]$": + type: object + $ref: /schemas/pci/pci-pci-bridge.yaml# + additionalProperties: true + description: | + The single Root Port of this controller. Endpoint PERST# belongs to + this port, rather than the host bridge. + properties: + reset-gpios: + maxItems: 1 + description: Optional active-low endpoint PERST# + required: + - compatible + - reg + - device_type + - '#address-cells' + - '#size-cells' + - ranges + +required: + - compatible + - reg + - reg-names + - clocks + - interrupts + - interrupt-names + - resets + - phys + - phy-names + - num-lanes + - pcie@0,0 + - interrupt-controller + - interrupt-map + - interrupt-map-mask + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + + pcie@80000000 { + compatible = "cortina,cs7542-pcie"; + reg = <0x80000000 0x1000>, <0x80001000 0x1000>, + <0xf00a0000 0x100>; + reg-names = "dbi", "config", "app"; + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + bus-range = <0 0xff>; + num-lanes = <1>; + ranges = <0x82000000 0 0x80200000 0x80200000 0 0x1fe00000>; + clocks = <&global CS7542_CLK_PCIE0>; + interrupt-parent = <&gic>; + interrupts = ; + interrupt-names = "msi"; + resets = <&global CS7542_RESET_PCIE0>; + phys = <&serdes 0>; + phy-names = "pcie"; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &pcie_intc 1>, + <0 0 0 2 &pcie_intc 2>, + <0 0 0 3 &pcie_intc 3>, + <0 0 0 4 &pcie_intc 4>; + + pcie@0,0 { + compatible = "pciclass,0604"; + reg = <0 0 0 0 0>; + device_type = "pci"; + #address-cells = <3>; + #size-cells = <2>; + ranges; + }; + + pcie_intc: interrupt-controller { + #address-cells = <0>; + #interrupt-cells = <1>; + interrupt-controller; + }; + }; -- 2.53.0