xref: /linux/arch/arm64/boot/dts/ti/k3-am642-evm-pcie0-ep.dtso (revision c34e9ab9a612ee8b18273398ef75c207b01f516d)
1// SPDX-License-Identifier: GPL-2.0-only OR MIT
2/**
3 * DT Overlay for enabling PCIE0 instance in Endpoint Configuration with the
4 * AM642 EVM.
5 *
6 * AM642 EVM Product Link: https://www.ti.com/tool/TMDS64EVM
7 *
8 * Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com/
9 */
10
11/dts-v1/;
12/plugin/;
13
14#include <dt-bindings/interrupt-controller/arm-gic.h>
15#include <dt-bindings/soc/ti,sci_pm_domain.h>
16
17#include "k3-pinctrl.h"
18
19/*
20 * Since Root Complex and Endpoint modes are mutually exclusive
21 * disable Root Complex mode.
22 */
23&pcie0_rc {
24	status = "disabled";
25};
26
27&cbass_main {
28	#address-cells = <2>;
29	#size-cells = <2>;
30	interrupt-parent = <&gic500>;
31
32	pcie0_ep: pcie-ep@f102000 {
33		compatible = "ti,am64-pcie-ep", "ti,j721e-pcie-ep";
34		reg = <0x00 0x0f102000 0x00 0x1000>,
35		      <0x00 0x0f100000 0x00 0x400>,
36		      <0x00 0x0d000000 0x00 0x00800000>,
37		      <0x00 0x68000000 0x00 0x08000000>;
38		reg-names = "intd_cfg", "user_cfg", "reg", "mem";
39		interrupt-names = "link_state";
40		interrupts = <GIC_SPI 203 IRQ_TYPE_EDGE_RISING>;
41		max-link-speed = <2>;
42		num-lanes = <1>;
43		power-domains = <&k3_pds 114 TI_SCI_PD_EXCLUSIVE>;
44		clocks = <&k3_clks 114 0>;
45		clock-names = "fck";
46		max-functions = /bits/ 8 <1>;
47		phys = <&serdes0_pcie_link>;
48		phy-names = "pcie-phy";
49		ti,syscon-pcie-ctrl = <&main_conf 0x4070>;
50	};
51};
52