xref: /openbmc/linux/arch/arm64/boot/dts/amlogic/meson-g12b-s922x-khadas-vim3.dts (revision c95baf12f5077419db01313ab61c2aac007d40cd)
1c6d29c66SChristian Hewitt// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2c6d29c66SChristian Hewitt/*
3c6d29c66SChristian Hewitt * Copyright (c) 2019 BayLibre, SAS
4c6d29c66SChristian Hewitt * Author: Neil Armstrong <narmstrong@baylibre.com>
5c6d29c66SChristian Hewitt * Copyright (c) 2019 Christian Hewitt <christianshewitt@gmail.com>
6c6d29c66SChristian Hewitt */
7c6d29c66SChristian Hewitt
8c6d29c66SChristian Hewitt/dts-v1/;
9c6d29c66SChristian Hewitt
10c6d29c66SChristian Hewitt#include "meson-g12b-s922x.dtsi"
114f26cc1cSNeil Armstrong#include "meson-khadas-vim3.dtsi"
12c6d29c66SChristian Hewitt#include "meson-g12b-khadas-vim3.dtsi"
13c6d29c66SChristian Hewitt
14c6d29c66SChristian Hewitt/ {
15c6d29c66SChristian Hewitt	compatible = "khadas,vim3", "amlogic,s922x", "amlogic,g12b";
16c6d29c66SChristian Hewitt};
17*ba1f8af7SNeil Armstrong
18*ba1f8af7SNeil Armstrong/*
19*ba1f8af7SNeil Armstrong * The VIM3 on-board  MCU can mux the PCIe/USB3.0 shared differential
20*ba1f8af7SNeil Armstrong * lines using a FUSB340TMX USB 3.1 SuperSpeed Data Switch between
21*ba1f8af7SNeil Armstrong * an USB3.0 Type A connector and a M.2 Key M slot.
22*ba1f8af7SNeil Armstrong * The PHY driving these differential lines is shared between
23*ba1f8af7SNeil Armstrong * the USB3.0 controller and the PCIe Controller, thus only
24*ba1f8af7SNeil Armstrong * a single controller can use it.
25*ba1f8af7SNeil Armstrong * If the MCU is configured to mux the PCIe/USB3.0 differential lines
26*ba1f8af7SNeil Armstrong * to the M.2 Key M slot, uncomment the following block to disable
27*ba1f8af7SNeil Armstrong * USB3.0 from the USB Complex and enable the PCIe controller.
28*ba1f8af7SNeil Armstrong * The End User is not expected to uncomment the following except for
29*ba1f8af7SNeil Armstrong * testing purposes, but instead rely on the firmware/bootloader to
30*ba1f8af7SNeil Armstrong * update these nodes accordingly if PCIe mode is selected by the MCU.
31*ba1f8af7SNeil Armstrong */
32*ba1f8af7SNeil Armstrong/*
33*ba1f8af7SNeil Armstrong&pcie {
34*ba1f8af7SNeil Armstrong	status = "okay";
35*ba1f8af7SNeil Armstrong};
36*ba1f8af7SNeil Armstrong
37*ba1f8af7SNeil Armstrong&usb {
38*ba1f8af7SNeil Armstrong	phys = <&usb2_phy0>, <&usb2_phy1>;
39*ba1f8af7SNeil Armstrong	phy-names = "usb2-phy0", "usb2-phy1";
40*ba1f8af7SNeil Armstrong};
41*ba1f8af7SNeil Armstrong */
42