DesignWare based PCIe Root Complex controller on Sophgo SoCs
Schema identifier ($id): "http://devicetree.org/schemas/pci/sophgo,sg2044-pcie.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Inochi Amaoto <inochiama@gmail.com>"
SG2044 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.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/pci/pci-host-bridge.yaml#
Rule 2 #
Shared schema rule (
$ref):/schemas/pci/snps,dw-pcie.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "sophgo,sg2044-pcie"
reg — required here #
Array item rules (items) #
Item 1
Data Bus Interface (DBI) registers
Item 2
iATU registers
Item 3
Config registers
Item 4
Sophgo designed configuration 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):"app"
clocks — required here #
Array item rules (items) #
Item 1
core clk
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"core"
interrupt-controller — not listed as required here #
Interrupt controller node for handling legacy PCI interrupts.
Value type (type): "object"
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"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
msi-parent — not listed as required here #
true — No constraints added by this property rule.
ranges — not listed as required here #
Maximum number of items (maxItems): 5
Required in this object (required): "compatible", "reg", "clocks"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
pcie@6c00400000 {
compatible = "sophgo,sg2044-pcie";
reg = <0x6c 0x00400000 0x0 0x00001000>,
<0x6c 0x00700000 0x0 0x00004000>,
<0x40 0x00000000 0x0 0x00001000>,
<0x6c 0x00780c00 0x0 0x00000400>;
reg-names = "dbi", "atu", "config", "app";
#address-cells = <3>;
#size-cells = <2>;
bus-range = <0x00 0xff>;
clocks = <&clk 0>;
clock-names = "core";
device_type = "pci";
linux,pci-domain = <0>;
msi-parent = <&msi>;
ranges = <0x01000000 0x0 0x00000000 0x40 0x10000000 0x0 0x00200000>,
<0x42000000 0x0 0x00000000 0x0 0x00000000 0x0 0x04000000>,
<0x02000000 0x0 0x04000000 0x0 0x04000000 0x0 0x04000000>,
<0x43000000 0x42 0x00000000 0x42 0x00000000 0x2 0x00000000>,
<0x03000000 0x41 0x00000000 0x41 0x00000000 0x1 0x00000000>;
interrupt-controller {
#address-cells = <0>;
#interrupt-cells = <1>;
interrupt-controller;
interrupt-parent = <&intc>;
interrupts = <64 IRQ_TYPE_LEVEL_HIGH>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)