mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: zhangsenchuan@eswincomputing.com
To: bhelgaas@google.com, lpieralisi@kernel.org, kw@linux.com,
	manivannan.sadhasivam@linaro.org, robh@kernel.org,
	krzk+dt@kernel.org, conor+dt@kernel.org,
	linux-pci@vger.kernel.org, devicetree@vger.kernel.or,
	linux-kernel@vger.kernel.org, p.zabel@pengutronix.de,
	johan+linaro@kernel.org, quic_schintav@quicinc.com,
	shradha.t@samsung.com, cassel@kernel.org,
	thippeswamy.havalige@amd.com
Cc: ningyu@eswincomputing.com, linmin@eswincomputing.com,
	Senchuan Zhang <zhangsenchuan@eswincomputing.com>
Subject: [PATCH v1 1/2] dt-bindings: PCI: eic7700: Add Eswin eic7700 PCIe host controller
Date: Fri, 16 May 2025 17:42:48 +0800	[thread overview]
Message-ID: <20250516094249.1879-1-zhangsenchuan@eswincomputing.com> (raw)
In-Reply-To: <20250516094057.1300-1-zhangsenchuan@eswincomputing.com>

From: Senchuan Zhang <zhangsenchuan@eswincomputing.com>

Add Device Tree binding documentation for the ESWIN EIC7700
PCIe controller module,the PCIe controller enables the core
to correctly initialize and manage the PCIe bus and connected
devices.

Co-developed-by: Yu Ning <ningyu@eswincomputing.com>
Signed-off-by: Yu Ning <ningyu@eswincomputing.com>
Signed-off-by: Senchuan Zhang <zhangsenchuan@eswincomputing.com>
---
 .../bindings/pci/eswin,eic7700-pcie.yaml      | 171 ++++++++++++++++++
 1 file changed, 171 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pci/eswin,eic7700-pcie.yaml

diff --git a/Documentation/devicetree/bindings/pci/eswin,eic7700-pcie.yaml b/Documentation/devicetree/bindings/pci/eswin,eic7700-pcie.yaml
new file mode 100644
index 000000000000..e1d150c7c81a
--- /dev/null
+++ b/Documentation/devicetree/bindings/pci/eswin,eic7700-pcie.yaml
@@ -0,0 +1,171 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/pci/eswin,eic7700-pcie.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Eswin EIC7700 PCIe host controller
+
+maintainers:
+  - Yu Ning <ningyu@eswincomputing.com>
+  - Senchuan Zhang <zhangsenchuan@eswincomputing.com>
+
+description: |
+  The PCIe controller on EIC7700 SoC.
+
+properties:
+  compatible:
+    const: eswin,eic7700-pcie
+
+  reg:
+    maxItems: 3
+
+  reg-names:
+    items:
+      - const: dbi
+      - const: config
+      - const: mgmt
+
+  "#address-cells":
+    const: 3
+  "#size-cells":
+    const: 2
+  '#interrupt-cells':
+    const: 1
+
+  interrupts:
+    maxItems: 9
+
+  interrupt-names:
+    items:
+      - const: msi
+      - const: inta
+      - const: intb
+      - const: intc
+      - const: intd
+
+  interrupt-controller:
+    type: object
+
+  interrupt-map:
+    maxItems: 4
+
+  interrupt-map-mask:
+    items:
+      - const: 0
+      - const: 0
+      - const: 0
+      - const: 7
+
+  clocks:
+    maxItems: 4
+    description: handles to clock for the pcie controller.
+
+  clock-names:
+    items:
+      - const: pcie_aclk
+      - const: pcie_cfg_clk
+      - const: pcie_cr_clk
+      - const: pcie_aux_clk
+    description: the name of each clock.
+
+  resets:
+    description: resets to be used by the controller.
+
+  reset-names:
+    items:
+      - const: pcie_cfg
+      - const: pcie_powerup
+      - const: pcie_pwren
+    description: names of the resets listed in resets property in the same order.
+
+  bus-range:
+    items:
+      - const: 0
+      - const: 0xff
+
+  device_type:
+    const: pci
+
+  ranges: true
+
+  dma-noncoherent: true
+
+  num-lanes:
+    maximum: 4
+
+  numa-node-id:
+    maximum: 0
+
+required:
+  - compatible
+  - reg
+  - reg-names
+  - interrupts
+  - interrupt-names
+  - interrupt-parent
+  - interrupt-map-mask
+  - interrupt-map
+  - '#address-cells'
+  - '#size-cells'
+  - '#interrupt-cells'
+  - clocks
+  - clock-names
+  - resets
+  - reset-names
+  - bus-range
+  - dma-noncoherent
+  - num-lanes
+  - ranges
+  - numa-node-id
+
+additionalProperties: false
+
+examples:
+  - |
+    soc {
+        #address-cells = <2>;
+        #size-cells = <2>;
+
+        pcie: pcie@54000000 {
+          compatible = "eswin,eic7700-pcie";
+          clocks = <&clock 562>,
+                   <&clock 563>,
+                   <&clock 564>,
+                   <&clock 565>;
+          clock-names = "pcie_aclk", "pcie_cfg_clk", "pcie_cr_clk", "pcie_aux_clk";
+
+          reset-names = "pcie_cfg", "pcie_powerup", "pcie_pwren";
+          resets = <&reset 8 (1 << 0)>,
+                   <&reset 8 (1 << 1)>,
+                   <&reset 8 (1 << 2)>;
+
+          #address-cells = <3>;
+          #size-cells = <2>;
+          #interrupt-cells = <1>;
+
+          reg = <0x0 0x54000000 0x0 0x4000000>,
+                <0x0 0x40000000 0x0 0x800000>,
+                <0x0 0x50000000 0x0 0x100000>;
+          reg-names = "dbi", "config", "mgmt";
+          device_type = "pci";
+
+          bus-range = <0x0 0xff>;
+          ranges = <0x81000000 0x0 0x40800000 0x0 0x40800000 0x0 0x800000>,
+                  <0x82000000 0x0 0x41000000 0x0 0x41000000 0x0 0xf000000>,
+                  <0xc3000000 0x80 0x00000000 0x80 0x00000000 0x2 0x00000000>;
+
+          num-lanes = <0x4>;
+          interrupts = <220>, <179>, <180>, <181>, <182>, <183>, <184>, <185>, <186>;
+          interrupt-names = "msi", "inta", "intb", "intc", "intd";
+          interrupt-parent = <&plic>;
+          interrupt-map-mask = <0x0 0x0 0x0 0x7>;
+          interrupt-map = <0x0 0x0 0x0 0x1 &plic 179>,
+                          <0x0 0x0 0x0 0x2 &plic 180>,
+                          <0x0 0x0 0x0 0x3 &plic 181>,
+                          <0x0 0x0 0x0 0x4 &plic 182>;
+          status = "disabled";
+          numa-node-id = <0>;
+          dma-noncoherent;
+        };
+    };
--
2.25.1


  reply	other threads:[~2025-05-16  9:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-16  9:40 [PATCH v1 0/2] Add driver support for Eswin eic7700 SoC PCIe controller zhangsenchuan
2025-05-16  9:42 ` zhangsenchuan [this message]
2025-05-16 12:38   ` [PATCH v1 1/2] dt-bindings: PCI: eic7700: Add Eswin eic7700 PCIe host controller Krzysztof Kozlowski
2025-05-16  9:43 ` [PATCH v1 2/2] PCI: eic7700: Add Eswin eic7700 PCIe host controller driver zhangsenchuan
2025-05-16 12:43   ` Krzysztof Kozlowski
2025-05-16 21:44   ` kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250516094249.1879-1-zhangsenchuan@eswincomputing.com \
    --to=zhangsenchuan@eswincomputing.com \
    --cc=bhelgaas@google.com \
    --cc=cassel@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.or \
    --cc=johan+linaro@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=kw@linux.com \
    --cc=linmin@eswincomputing.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=lpieralisi@kernel.org \
    --cc=manivannan.sadhasivam@linaro.org \
    --cc=ningyu@eswincomputing.com \
    --cc=p.zabel@pengutronix.de \
    --cc=quic_schintav@quicinc.com \
    --cc=robh@kernel.org \
    --cc=shradha.t@samsung.com \
    --cc=thippeswamy.havalige@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®