DesignWare based PCIe Root Complex controller on Rockchip SoCs
Schema identifier ($id): "http://devicetree.org/schemas/pci/rockchip-dw-pcie.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Shawn Lin <shawn.lin@rock-chips.com>", "Simon Xue <xxm@rock-chips.com>", "Heiko Stuebner <heiko@sntech.de>"
RK3568 SoC PCIe Root Complex controller is based on the Synopsys DesignWare PCIe IP and thus inherits all the common properties defined in snps,dw-pcie.yaml.
Properties and child nodes (properties) #
compatible — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"rockchip,rk3568-pcie"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"rockchip,rk3528-pcie","rockchip,rk3562-pcie","rockchip,rk3576-pcie","rockchip,rk3588-pcie"Item 2
Exact value (
const):"rockchip,rk3568-pcie"
reg — not listed as required here #
Array item rules (items) #
Item 1
Data Bus Interface (DBI) registers
Item 2
Rockchip designed configuration registers
Item 3
Config registers
reg-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"dbi"
Item 2
Exact value (
const):"apb"
Item 3
Exact value (
const):"config"
legacy-interrupt-controller — not listed as required here #
Interrupt controller node for handling legacy PCI interrupts.
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
#address-cells — required here
Exact value (const): 0
#interrupt-cells — required here
Exact value (const): 1
interrupt-controller — required here
true — No constraints added by this property rule.
interrupts — required here
Array item rules (items)
Item 1
combined legacy interrupt
Required in this object (required): "#address-cells", "#interrupt-cells", "interrupt-controller", "interrupts"
msi-map — not listed as required here #
true — No constraints added by this property rule.
ranges — not listed as required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 3
vpcie3v3-supply — not listed as required here #
true — No constraints added by this property rule.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/pci/snps,dw-pcie.yaml#
Rule 2 #
Shared schema rule (
$ref):/schemas/pci/rockchip-dw-pcie-common.yaml#
Rule 3 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"rockchip,rk3528-pcie","rockchip,rk3562-pcie","rockchip,rk3576-pcie"When the condition matches (
then) #
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"rockchip,rk3528-pcie","rockchip,rk3562-pcie","rockchip,rk3576-pcie"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):6Maximum number of items (
maxItems):6
interrupt-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"sys"Item 2
Exact value (
const):"pmc"Item 3
Exact value (
const):"msg"Item 4
Exact value (
const):"legacy"Item 5
Exact value (
const):"err"Item 6
Exact value (
const):"msi"When the condition does not match (
else) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):5
interrupt-names— not listed as required hereMinimum number of items (
minItems):5Array item rules (
items)Item 1
Exact value (
const):"sys"Item 2
Exact value (
const):"pmc"Item 3
Exact value (
const):"msg"Item 4
Exact value (
const):"legacy"Item 5
Exact value (
const):"err"Item 6
Exact value (
const):"dma0"Item 7
Exact value (
const):"dma1"Item 8
Exact value (
const):"dma2"Item 9
Exact value (
const):"dma3"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
bus {
#address-cells = <2>;
#size-cells = <2>;
pcie3x2: pcie@fe280000 {
compatible = "rockchip,rk3568-pcie";
reg = <0x3 0xc0800000 0x0 0x390000>,
<0x0 0xfe280000 0x0 0x10000>,
<0x3 0x80000000 0x0 0x100000>;
reg-names = "dbi", "apb", "config";
bus-range = <0x20 0x2f>;
clocks = <&cru 143>, <&cru 144>,
<&cru 145>, <&cru 146>,
<&cru 147>;
clock-names = "aclk_mst", "aclk_slv",
"aclk_dbi", "pclk",
"aux";
device_type = "pci";
interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "sys", "pmc", "msg", "legacy", "err";
linux,pci-domain = <2>;
max-link-speed = <2>;
msi-map = <0x2000 &its 0x2000 0x1000>;
num-lanes = <2>;
phys = <&pcie30phy>;
phy-names = "pcie-phy";
power-domains = <&power 15>;
ranges = <0x81000000 0x0 0x80800000 0x3 0x80800000 0x0 0x100000>,
<0x83000000 0x0 0x80900000 0x3 0x80900000 0x0 0x3f700000>;
resets = <&cru 193>;
reset-names = "pipe";
#address-cells = <3>;
#size-cells = <2>;
legacy-interrupt-controller {
interrupt-controller;
#address-cells = <0>;
#interrupt-cells = <1>;
interrupt-parent = <&gic>;
interrupts = <GIC_SPI 72 IRQ_TYPE_EDGE_RISING>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)