1 From 3d555cfd72df1a02849565f281149d321e0f8425 Mon Sep 17 00:00:00 2001
2 From: Minda Chen <minda.chen@starfivetech.com>
3 Date: Thu, 6 Apr 2023 19:11:40 +0800
4 Subject: [PATCH 094/122] dt-binding: pci: add JH7110 PCIe dt-binding
7 Add PCIe controller driver dt-binding documents
8 for StarFive JH7110 SoC platform.
10 Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
12 .../bindings/pci/starfive,jh7110-pcie.yaml | 163 ++++++++++++++++++
13 1 file changed, 163 insertions(+)
14 create mode 100644 Documentation/devicetree/bindings/pci/starfive,jh7110-pcie.yaml
17 +++ b/Documentation/devicetree/bindings/pci/starfive,jh7110-pcie.yaml
19 +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
22 +$id: http://devicetree.org/schemas/pci/starfive,jh7110-pcie.yaml#
23 +$schema: http://devicetree.org/meta-schemas/core.yaml#
25 +title: StarFive JH7110 PCIe 2.0 host controller
28 + - Minda Chen <minda.chen@starfivetech.com>
31 + - $ref: /schemas/pci/pci-bus.yaml#
32 + - $ref: /schemas/interrupt-controller/msi-controller.yaml#
36 + const: starfive,jh7110-pcie
63 + - description: AXI MST0 reset
64 + - description: AXI SLAVE reset
65 + - description: AXI SLAVE0 reset
66 + - description: PCIE BRIDGE reset
67 + - description: PCIE CORE reset
68 + - description: PCIE APB reset
79 + starfive,stg-syscon:
80 + $ref: /schemas/types.yaml#/definitions/phandle-array
83 + - description: phandle to System Register Controller stg_syscon node.
84 + - description: register0 offset of STG_SYSCONSAIF__SYSCFG register for PCIe.
85 + - description: register1 offset of STG_SYSCONSAIF__SYSCFG register for PCIe.
86 + - description: register2 offset of STG_SYSCONSAIF__SYSCFG register for PCIe.
87 + - description: register3 offset of STG_SYSCONSAIF__SYSCFG register for PCIe.
89 + The phandle to System Register Controller syscon node and the offset
90 + of STG_SYSCONSAIF__SYSCFG register for PCIe. Total 4 regsisters offset
94 + description: Should specify the GPIO for controlling the PCI bus device power on.
103 + interrupt-controller:
109 + '#interrupt-cells':
112 + interrupt-controller: true
116 + - '#interrupt-cells'
117 + - interrupt-controller
119 + additionalProperties: false
124 + - "#interrupt-cells"
126 + - interrupt-map-mask
133 +unevaluatedProperties: false
138 + #address-cells = <2>;
141 + pcie0: pcie@2B000000 {
142 + compatible = "starfive,jh7110-pcie";
143 + #address-cells = <3>;
145 + #interrupt-cells = <1>;
146 + reg = <0x0 0x2B000000 0x0 0x1000000>,
147 + <0x9 0x40000000 0x0 0x10000000>;
148 + reg-names = "reg", "config";
149 + device_type = "pci";
150 + starfive,stg-syscon = <&stg_syscon 0xc0 0xc4 0x130 0x1b8>;
151 + bus-range = <0x0 0xff>;
152 + ranges = <0x82000000 0x0 0x30000000 0x0 0x30000000 0x0 0x08000000>,
153 + <0xc3000000 0x9 0x00000000 0x9 0x00000000 0x0 0x40000000>;
154 + interrupt-parent = <&plic>;
156 + interrupt-map-mask = <0x0 0x0 0x0 0x7>;
157 + interrupt-map = <0x0 0x0 0x0 0x1 &pcie_intc0 0x1>,
158 + <0x0 0x0 0x0 0x2 &pcie_intc0 0x2>,
159 + <0x0 0x0 0x0 0x3 &pcie_intc0 0x3>,
160 + <0x0 0x0 0x0 0x4 &pcie_intc0 0x4>;
161 + msi-parent = <&pcie0>;
163 + clocks = <&syscrg 86>,
167 + clock-names = "noc", "tl", "axi_mst0", "apb";
168 + resets = <&stgcrg 11>,
175 + pcie_intc0: interrupt-controller {
176 + #address-cells = <0>;
177 + #interrupt-cells = <1>;
178 + interrupt-controller;