162306a36Sopenharmony_ci* Marvell Armada 7K/8K PCIe interface 262306a36Sopenharmony_ci 362306a36Sopenharmony_ciThis PCIe host controller is based on the Synopsys DesignWare PCIe IP 462306a36Sopenharmony_ciand thus inherits all the common properties defined in snps,dw-pcie.yaml. 562306a36Sopenharmony_ci 662306a36Sopenharmony_ciRequired properties: 762306a36Sopenharmony_ci- compatible: "marvell,armada8k-pcie" 862306a36Sopenharmony_ci- reg: must contain two register regions 962306a36Sopenharmony_ci - the control register region 1062306a36Sopenharmony_ci - the config space region 1162306a36Sopenharmony_ci- reg-names: 1262306a36Sopenharmony_ci - "ctrl" for the control register region 1362306a36Sopenharmony_ci - "config" for the config space region 1462306a36Sopenharmony_ci- interrupts: Interrupt specifier for the PCIe controller 1562306a36Sopenharmony_ci- clocks: reference to the PCIe controller clocks 1662306a36Sopenharmony_ci- clock-names: mandatory if there is a second clock, in this case the 1762306a36Sopenharmony_ci name must be "core" for the first clock and "reg" for the second 1862306a36Sopenharmony_ci one 1962306a36Sopenharmony_ci 2062306a36Sopenharmony_ciOptional properties: 2162306a36Sopenharmony_ci- phys: phandle(s) to PHY node(s) following the generic PHY bindings. 2262306a36Sopenharmony_ci Either 1, 2 or 4 PHYs might be needed depending on the number of 2362306a36Sopenharmony_ci PCIe lanes. 2462306a36Sopenharmony_ci- phy-names: names of the PHYs corresponding to the number of lanes. 2562306a36Sopenharmony_ci Must be "cp0-pcie0-x4-lane0-phy", "cp0-pcie0-x4-lane1-phy" for 2662306a36Sopenharmony_ci 2 PHYs. 2762306a36Sopenharmony_ci 2862306a36Sopenharmony_ciExample: 2962306a36Sopenharmony_ci 3062306a36Sopenharmony_ci pcie@f2600000 { 3162306a36Sopenharmony_ci compatible = "marvell,armada8k-pcie", "snps,dw-pcie"; 3262306a36Sopenharmony_ci reg = <0 0xf2600000 0 0x10000>, <0 0xf6f00000 0 0x80000>; 3362306a36Sopenharmony_ci reg-names = "ctrl", "config"; 3462306a36Sopenharmony_ci #address-cells = <3>; 3562306a36Sopenharmony_ci #size-cells = <2>; 3662306a36Sopenharmony_ci #interrupt-cells = <1>; 3762306a36Sopenharmony_ci device_type = "pci"; 3862306a36Sopenharmony_ci dma-coherent; 3962306a36Sopenharmony_ci 4062306a36Sopenharmony_ci bus-range = <0 0xff>; 4162306a36Sopenharmony_ci ranges = <0x81000000 0 0xf9000000 0 0xf9000000 0 0x10000 /* downstream I/O */ 4262306a36Sopenharmony_ci 0x82000000 0 0xf6000000 0 0xf6000000 0 0xf00000>; /* non-prefetchable memory */ 4362306a36Sopenharmony_ci interrupt-map-mask = <0 0 0 0>; 4462306a36Sopenharmony_ci interrupt-map = <0 0 0 0 &gic 0 GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; 4562306a36Sopenharmony_ci interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; 4662306a36Sopenharmony_ci num-lanes = <1>; 4762306a36Sopenharmony_ci clocks = <&cpm_syscon0 1 13>; 4862306a36Sopenharmony_ci }; 49