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};
17ba1f8af7SNeil Armstrong
18ba1f8af7SNeil Armstrong/*
19ba1f8af7SNeil Armstrong * The VIM3 on-board  MCU can mux the PCIe/USB3.0 shared differential
20ba1f8af7SNeil Armstrong * lines using a FUSB340TMX USB 3.1 SuperSpeed Data Switch between
21ba1f8af7SNeil Armstrong * an USB3.0 Type A connector and a M.2 Key M slot.
22ba1f8af7SNeil Armstrong * The PHY driving these differential lines is shared between
23ba1f8af7SNeil Armstrong * the USB3.0 controller and the PCIe Controller, thus only
24ba1f8af7SNeil Armstrong * a single controller can use it.
25ba1f8af7SNeil Armstrong * If the MCU is configured to mux the PCIe/USB3.0 differential lines
26ba1f8af7SNeil Armstrong * to the M.2 Key M slot, uncomment the following block to disable
27ba1f8af7SNeil Armstrong * USB3.0 from the USB Complex and enable the PCIe controller.
28ba1f8af7SNeil Armstrong * The End User is not expected to uncomment the following except for
29ba1f8af7SNeil Armstrong * testing purposes, but instead rely on the firmware/bootloader to
30ba1f8af7SNeil Armstrong * update these nodes accordingly if PCIe mode is selected by the MCU.
31ba1f8af7SNeil Armstrong */
32ba1f8af7SNeil Armstrong/*
33ba1f8af7SNeil Armstrong&pcie {
34ba1f8af7SNeil Armstrong	status = "okay";
35ba1f8af7SNeil Armstrong};
36ba1f8af7SNeil Armstrong
37ba1f8af7SNeil Armstrong&usb {
38ba1f8af7SNeil Armstrong	phys = <&usb2_phy0>, <&usb2_phy1>;
39ba1f8af7SNeil Armstrong	phy-names = "usb2-phy0", "usb2-phy1";
40ba1f8af7SNeil Armstrong};
41ba1f8af7SNeil Armstrong */
42