Qualcomm PCIe Endpoint Controller

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

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

Maintainers (maintainers): "Manivannan Sadhasivam <mani@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "qcom,sa8775p-pcie-ep", "qcom,sar2130p-pcie-ep", "qcom,sdx55-pcie-ep", "qcom,sm8450-pcie-ep"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "qcom,sdx65-pcie-ep"

Item 2

Exact value (const): "qcom,sdx55-pcie-ep"

reg — required here #

Minimum number of items (minItems): 6

Array item rules (items) #

Item 1

Qualcomm-specific PARF configuration registers

Item 2

DesignWare PCIe registers

Item 3

External local bus interface registers

Item 4

Address Translation Unit (ATU) registers

Item 5

Memory region used to map remote RC address space

Item 6

BAR memory region

Item 7

DMA register space

reg-names — required here #

Minimum number of items (minItems): 6

Array item rules (items) #

Item 1

Exact value (const): "parf"

Item 2

Exact value (const): "dbi"

Item 3

Exact value (const): "elbi"

Item 4

Exact value (const): "atu"

Item 5

Exact value (const): "addr_space"

Item 6

Exact value (const): "mmio"

Item 7

Exact value (const): "dma"

clocks — required here #

Minimum number of items (minItems): 5

Maximum number of items (maxItems): 9

clock-names — required here #

Minimum number of items (minItems): 5

Maximum number of items (maxItems): 9

qcom,perst-regs — not listed as required here #

Reference to a syscon representing TCSR followed by the two offsets within syscon for Perst enable and Perst separation enable registers

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

Array item rules (items) #

Item 1

Array item rules (items)

Item 1

Syscon to TCSR system registers

Item 2

Perst enable offset

Item 3

Perst separation enable offset

interrupts — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

PCIe Global interrupt

Item 2

PCIe Doorbell interrupt

Item 3

DMA interrupt

interrupt-names — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

Exact value (const): "global"

Item 2

Exact value (const): "doorbell"

Item 3

Exact value (const): "dma"

iommus — not listed as required here #

Maximum number of items (maxItems): 1

reset-gpios — required here #

GPIO used as PERST# input signal

Maximum number of items (maxItems): 1

wake-gpios — not listed as required here #

GPIO used as WAKE# output signal

Maximum number of items (maxItems): 1

interconnects — required here #

Maximum number of items (maxItems): 2

interconnect-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pcie-mem"

Item 2

Exact value (const): "cpu-pcie"

dma-coherent — not listed as required here #

true — No constraints added by this property rule.

resets — required here #

Maximum number of items (maxItems): 1

reset-names — required here #

Exact value (const): "core"

power-domains — required here #

Maximum number of items (maxItems): 1

phys — not listed as required here #

Maximum number of items (maxItems): 1

phy-names — not listed as required here #

Exact value (const): "pciephy"

num-lanes — not listed as required here #

Default value (default): 2

Required in this object (required): "compatible", "reg", "reg-names", "clocks", "clock-names", "interrupts", "interrupt-names", "reset-gpios", "interconnects", "interconnect-names", "resets", "reset-names", "power-domains"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pci-ep.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,sar2130p-pcie-ep"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

PCIe Auxiliary clock

Item 2

PCIe CFG AHB clock

Item 3

PCIe Master AXI clock

Item 4

PCIe Slave AXI clock

Item 5

PCIe Slave Q2A AXI clock

Item 6

PCIe DDRSS SF TBU clock

Item 7

PCIe AGGRE NOC AXI clock

Item 8

PCIe CFG NOC AXI clock

Item 9

PCIe QMIP AHB clock

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "aux"

Item 2

Exact value (const): "cfg"

Item 3

Exact value (const): "bus_master"

Item 4

Exact value (const): "bus_slave"

Item 5

Exact value (const): "slave_q2a"

Item 6

Exact value (const): "ddrss_sf_tbu"

Item 7

Exact value (const): "aggre_noc_axi"

Item 8

Exact value (const): "cnoc_sf_axi"

Item 9

Exact value (const): "qmip_pcie_ahb"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,sdx55-pcie-ep"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 6

Maximum number of items (maxItems): 6

reg-names — not listed as required here

Minimum number of items (minItems): 6

Maximum number of items (maxItems): 6

interrupts — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

interrupt-names — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

iommus — not listed as required here

false — Not permitted by this property rule.

When the condition does not match (else) #

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 7

Maximum number of items (maxItems): 7

reg-names — not listed as required here

Minimum number of items (minItems): 7

Maximum number of items (maxItems): 7

interrupts — not listed as required here

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 3

interrupt-names — not listed as required here

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 3

Required in this object (required): "iommus"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,sdx55-pcie-ep"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

PCIe Auxiliary clock

Item 2

PCIe CFG AHB clock

Item 3

PCIe Master AXI clock

Item 4

PCIe Slave AXI clock

Item 5

PCIe Slave Q2A AXI clock

Item 6

PCIe Sleep clock

Item 7

PCIe Reference clock

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "aux"

Item 2

Exact value (const): "cfg"

Item 3

Exact value (const): "bus_master"

Item 4

Exact value (const): "bus_slave"

Item 5

Exact value (const): "slave_q2a"

Item 6

Exact value (const): "sleep"

Item 7

Exact value (const): "ref"

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,sm8450-pcie-ep"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

PCIe Auxiliary clock

Item 2

PCIe CFG AHB clock

Item 3

PCIe Master AXI clock

Item 4

PCIe Slave AXI clock

Item 5

PCIe Slave Q2A AXI clock

Item 6

PCIe Reference clock

Item 7

PCIe DDRSS SF TBU clock

Item 8

PCIe AGGRE NOC AXI clock

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "aux"

Item 2

Exact value (const): "cfg"

Item 3

Exact value (const): "bus_master"

Item 4

Exact value (const): "bus_slave"

Item 5

Exact value (const): "slave_q2a"

Item 6

Exact value (const): "ref"

Item 7

Exact value (const): "ddrss_sf_tbu"

Item 8

Exact value (const): "aggre_noc_axi"

Rule 6 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,sa8775p-pcie-ep"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

PCIe Auxiliary clock

Item 2

PCIe CFG AHB clock

Item 3

PCIe Master AXI clock

Item 4

PCIe Slave AXI clock

Item 5

PCIe Slave Q2A AXI clock

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "aux"

Item 2

Exact value (const): "cfg"

Item 3

Exact value (const): "bus_master"

Item 4

Exact value (const): "bus_slave"

Item 5

Exact value (const): "slave_q2a"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/qcom,gcc-sdx55.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interconnect/qcom,sdx55.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

pcie_ep: pcie-ep@1c00000 {
    compatible = "qcom,sdx55-pcie-ep";
    reg = <0x01c00000 0x3000>,
          <0x40000000 0xf1d>,
          <0x40000f20 0xc8>,
          <0x40001000 0x1000>,
          <0x40002000 0x1000>,
          <0x01c03000 0x3000>;
    reg-names = "parf", "dbi", "elbi", "atu", "addr_space",
                "mmio";

    clocks = <&gcc GCC_PCIE_AUX_CLK>,
         <&gcc GCC_PCIE_CFG_AHB_CLK>,
         <&gcc GCC_PCIE_MSTR_AXI_CLK>,
         <&gcc GCC_PCIE_SLV_AXI_CLK>,
         <&gcc GCC_PCIE_SLV_Q2A_AXI_CLK>,
         <&gcc GCC_PCIE_SLEEP_CLK>,
         <&gcc GCC_PCIE_0_CLKREF_CLK>;
    clock-names = "aux", "cfg", "bus_master", "bus_slave",
                  "slave_q2a", "sleep", "ref";

    qcom,perst-regs = <&tcsr 0xb258 0xb270>;

    interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>;
    interrupt-names = "global", "doorbell";
    interconnects = <&system_noc MASTER_PCIE &mc_virt SLAVE_EBI_CH0>,
                    <&mem_noc MASTER_AMPSS_M0 &system_noc SLAVE_PCIE_0>;
    interconnect-names = "pcie-mem", "cpu-pcie";
    reset-gpios = <&tlmm 57 GPIO_ACTIVE_LOW>;
    wake-gpios = <&tlmm 53 GPIO_ACTIVE_LOW>;
    resets = <&gcc GCC_PCIE_BCR>;
    reset-names = "core";
    power-domains = <&gcc PCIE_GDSC>;
    phys = <&pcie0_lane>;
    phy-names = "pciephy";
    max-link-speed = <3>;
    num-lanes = <2>;
    linux,pci-domain = <0>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page