Amlogic Meson AXG DWC PCIe SoC controller

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

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

Maintainers (maintainers): "Neil Armstrong <neil.armstrong@linaro.org>"

Amlogic Meson PCIe host controller is based on the Synopsys DesignWare PCI core.

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-common.yaml#

Automatic schema selection (select) #

Properties and child nodes (properties) #

compatible — required here #

Rule for matching array elements (contains)

Allowed values (enum): "amlogic,axg-pcie", "amlogic,g12a-pcie"

Required in this object (required): "compatible"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "amlogic,axg-pcie", "amlogic,g12a-pcie"

Item 2

Exact value (const): "snps,dw-pcie"

reg — required here #

Array item rules (items) #

Item 1

Data Bus Interface registers

Item 2

Meson designed configuration registers

Item 3

PCIe configuration space

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "dbi"

Item 2

Exact value (const): "cfg"

Item 3

Exact value (const): "config"

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

PCIe PHY clock

Item 2

PCIe GEN 100M PLL clock

Item 3

PCIe RC clock gate

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "general"

Item 2

Exact value (const): "pclk"

Item 3

Exact value (const): "port"

phys — required here #

Maximum number of items (maxItems): 1

phy-names — required here #

Exact value (const): "pcie"

resets — required here #

Array item rules (items) #

Item 1

Port Reset

Item 2

Shared APB reset

reset-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "port"

Item 2

Exact value (const): "apb"

num-lanes — required here #

Exact value (const): 1

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "clocks", "clock-names", "#address-cells", "#size-cells", "#interrupt-cells", "interrupt-map", "interrupt-map-mask", "ranges", "bus-range", "device_type", "num-lanes", "phys", "phy-names", "resets", "reset-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
pcie: pcie@f9800000 {
    compatible = "amlogic,axg-pcie", "snps,dw-pcie";
    reg = <0xf9800000 0x400000>, <0xff646000 0x2000>, <0xf9f00000 0x100000>;
    reg-names = "dbi", "cfg", "config";
    interrupts = <GIC_SPI 177 IRQ_TYPE_EDGE_RISING>;
    clocks = <&clk_phy>, <&pclk>, <&clk_port>;
    clock-names = "general", "pclk", "port";
    resets = <&reset_pcie_port>, <&reset_pcie_apb>;
    reset-names = "port", "apb";
    phys = <&pcie_phy>;
    phy-names = "pcie";
    #interrupt-cells = <1>;
    interrupt-map-mask = <0 0 0 0>;
    interrupt-map = <0 0 0 0 &gic GIC_SPI 179 IRQ_TYPE_EDGE_RISING>;
    bus-range = <0x0 0xff>;
    #address-cells = <3>;
    #size-cells = <2>;
    device_type = "pci";
    num-lanes = <1>;
    ranges = <0x82000000 0 0 0xf9c00000 0 0x00300000>;
};

Source notes #

Annotations retained from the schema source

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

Line 19: We need a select here so we don't match all nodes with 'snps,dw-pcie'

Edit this page