SpacemiT K1 PCI Express Host Controller

Schema identifier ($id): "http://devicetree.org/schemas/pci/spacemit,k1-pcie-host.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Alex Elder <elder@riscstar.com>"

The SpacemiT K1 SoC PCIe host controller is based on the Synopsys DesignWare PCIe IP. The controller uses the DesignWare built-in MSI interrupt controller, and supports 256 MSIs.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/pci/snps,dw-pcie.yaml#

Properties and child nodes (properties) #

compatible — not listed as required here #

Exact value (const): "spacemit,k1-pcie"

reg — not listed as required here #

Array item rules (items) #

Item 1

DesignWare PCIe registers

Item 2

ATU address space

Item 3

PCIe configuration space

Item 4

Link control registers

reg-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "dbi"

Item 2

Exact value (const): "atu"

Item 3

Exact value (const): "config"

Item 4

Exact value (const): "link"

clocks — required here #

Array item rules (items) #

Item 1

DWC PCIe Data Bus Interface (DBI) clock

Item 2

DWC PCIe application AXI-bus master interface clock

Item 3

DWC PCIe application AXI-bus slave interface clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "dbi"

Item 2

Exact value (const): "mstr"

Item 3

Exact value (const): "slv"

resets — required here #

Array item rules (items) #

Item 1

DWC PCIe Data Bus Interface (DBI) reset

Item 2

DWC PCIe application AXI-bus master interface reset

Item 3

DWC PCIe application AXI-bus slave interface reset

reset-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "dbi"

Item 2

Exact value (const): "mstr"

Item 3

Exact value (const): "slv"

interrupts — required here #

Array item rules (items) #

Item 1

Interrupt used for MSIs

interrupt-names — required here #

Exact value (const): "msi"

spacemit,apmu — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

A phandle that refers to the APMU system controller, whose regmap is used in managing resets and link state, along with and offset of its reset control register.

Array item rules (items) #

Item 1

Array item rules (items)

Item 1

phandle to APMU system controller

Item 2

register offset

Properties matching a name pattern (patternProperties) #

^pcie@ — name matches this regular expression #

Value type (type): "object"

Shared schema rule ($ref): /schemas/pci/pci-pci-bridge.yaml#

Properties and child nodes (properties) #

phys — required here

Maximum number of items (maxItems): 1

vpcie3v3-supply — required here

A phandle for 3.3v regulator to use for PCIe

Required in this object (required): "phys", "vpcie3v3-supply"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "clocks", "clock-names", "resets", "reset-names", "interrupts", "interrupt-names", "spacemit,apmu"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/spacemit,k1-syscon.h>
pcie@ca400000 {
    device_type = "pci";
    compatible = "spacemit,k1-pcie";
    reg = <0xca400000 0x00001000>,
          <0xca700000 0x0001ff24>,
          <0x9f000000 0x00002000>,
          <0xc0c20000 0x00001000>;
    reg-names = "dbi",
                "atu",
                "config",
                "link";
    #address-cells = <3>;
    #size-cells = <2>;
    ranges = <0x01000000 0x0 0x00000000 0x9f002000 0x0 0x00100000>,
             <0x02000000 0x0 0x90000000 0x90000000 0x0 0x0f000000>;
    interrupts = <142>;
    interrupt-names = "msi";
    clocks = <&syscon_apmu CLK_PCIE1_DBI>,
             <&syscon_apmu CLK_PCIE1_MASTER>,
             <&syscon_apmu CLK_PCIE1_SLAVE>;
    clock-names = "dbi",
                  "mstr",
                  "slv";
    resets = <&syscon_apmu RESET_PCIE1_DBI>,
             <&syscon_apmu RESET_PCIE1_MASTER>,
             <&syscon_apmu RESET_PCIE1_SLAVE>;
    reset-names = "dbi",
                  "mstr",
                  "slv";
    pinctrl-names = "default";
    pinctrl-0 = <&pcie1_3_cfg>;
    spacemit,apmu = <&syscon_apmu 0x3d4>;

    pcie@0 {
      device_type = "pci";
      compatible = "pciclass,0604";
      reg = <0x0 0x0 0x0 0x0 0x0>;
      bus-range = <0x01 0xff>;
      #address-cells = <3>;
      #size-cells = <2>;
      ranges;
      phys = <&pcie1_phy>;
      vpcie3v3-supply = <&pcie_vcc_3v3>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page