1*8d13bc63SEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2*8d13bc63SEmmanuel Vadot/*
3*8d13bc63SEmmanuel Vadot * Copyright (C) 2023 Marvell International Ltd.
4*8d13bc63SEmmanuel Vadot *
5*8d13bc63SEmmanuel Vadot * Device tree for the AC5X RD Type 7 Com Express carrier board,
6*8d13bc63SEmmanuel Vadot * Utilizing the CN913x COM Express CPU module board.
7*8d13bc63SEmmanuel Vadot * This specific carrier board in this mode of operation (external)
8*8d13bc63SEmmanuel Vadot * only maintains a PCIe link with the CPU module,
9*8d13bc63SEmmanuel Vadot * which does not require any special DTS definitions.
10*8d13bc63SEmmanuel Vadot *
11*8d13bc63SEmmanuel Vadot * AC5X RD works here in external mode (switch selectable at the back of the
12*8d13bc63SEmmanuel Vadot * board), and connect via an external cable a kit
13*8d13bc63SEmmanuel Vadot * which would allow it to use an external CN9131 CPU COM Express module,
14*8d13bc63SEmmanuel Vadot * mounted on top of an interposer kit.
15*8d13bc63SEmmanuel Vadot *
16*8d13bc63SEmmanuel Vadot * So in this case, once the switch is set to external mode as explained above,
17*8d13bc63SEmmanuel Vadot * the AC5X RD becomes part of the carrier solution.
18*8d13bc63SEmmanuel Vadot *
19*8d13bc63SEmmanuel Vadot * When the board boots in the external CPU mode, the internal CPU is disabled,
20*8d13bc63SEmmanuel Vadot * and only the switch portion of the SOC acts as a PCIe end-point, Hence there
21*8d13bc63SEmmanuel Vadot * is no need to describe this internal (disabled CPU) in the device tree.
22*8d13bc63SEmmanuel Vadot *
23*8d13bc63SEmmanuel Vadot * There is no CPU booting in this mode on the carrier, only on the
24*8d13bc63SEmmanuel Vadot * CN9131 COM Express CPU module.
25*8d13bc63SEmmanuel Vadot * What runs the Linux is the CN9131 on the COM Express CPU module,
26*8d13bc63SEmmanuel Vadot * And it accesses the switch end-point on the AC5X RD portion of the carrier
27*8d13bc63SEmmanuel Vadot * via PCIe.
28*8d13bc63SEmmanuel Vadot */
29*8d13bc63SEmmanuel Vadot
30*8d13bc63SEmmanuel Vadot#include "cn9131-db-comexpress.dtsi"
31*8d13bc63SEmmanuel Vadot#include "ac5x-rd-carrier.dtsi"
32*8d13bc63SEmmanuel Vadot
33*8d13bc63SEmmanuel Vadot/ {
34*8d13bc63SEmmanuel Vadot	model = "Marvell Armada AC5X RD COM EXPRESS type 7 carrier board with CN9131 CPU module";
35*8d13bc63SEmmanuel Vadot	compatible = "marvell,cn9131-ac5x-carrier", "marvell,rd-ac5x-carrier",
36*8d13bc63SEmmanuel Vadot			"marvell,cn9131-cpu-module", "marvell,cn9131",
37*8d13bc63SEmmanuel Vadot			"marvell,armada-ap807-quad", "marvell,armada-ap807";
38*8d13bc63SEmmanuel Vadot
39*8d13bc63SEmmanuel Vadot	memory@0 {
40*8d13bc63SEmmanuel Vadot		device_type = "memory";
41*8d13bc63SEmmanuel Vadot		reg = <0x0 0x0 0x2 0x00000000>;
42*8d13bc63SEmmanuel Vadot	};
43*8d13bc63SEmmanuel Vadot
44*8d13bc63SEmmanuel Vadot};
45