162306a36Sopenharmony_ci// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (c) 2019 BayLibre, SAS
462306a36Sopenharmony_ci * Author: Neil Armstrong <narmstrong@baylibre.com>
562306a36Sopenharmony_ci * Copyright (c) 2019 Christian Hewitt <christianshewitt@gmail.com>
662306a36Sopenharmony_ci */
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci/dts-v1/;
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ci#include "meson-g12b-s922x.dtsi"
1162306a36Sopenharmony_ci#include "meson-khadas-vim3.dtsi"
1262306a36Sopenharmony_ci#include "meson-g12b-khadas-vim3.dtsi"
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ci/ {
1562306a36Sopenharmony_ci	compatible = "khadas,vim3", "amlogic,s922x", "amlogic,g12b";
1662306a36Sopenharmony_ci};
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_ci/*
1962306a36Sopenharmony_ci * The VIM3 on-board  MCU can mux the PCIe/USB3.0 shared differential
2062306a36Sopenharmony_ci * lines using a FUSB340TMX USB 3.1 SuperSpeed Data Switch between
2162306a36Sopenharmony_ci * an USB3.0 Type A connector and a M.2 Key M slot.
2262306a36Sopenharmony_ci * The PHY driving these differential lines is shared between
2362306a36Sopenharmony_ci * the USB3.0 controller and the PCIe Controller, thus only
2462306a36Sopenharmony_ci * a single controller can use it.
2562306a36Sopenharmony_ci * If the MCU is configured to mux the PCIe/USB3.0 differential lines
2662306a36Sopenharmony_ci * to the M.2 Key M slot, uncomment the following block to disable
2762306a36Sopenharmony_ci * USB3.0 from the USB Complex and enable the PCIe controller.
2862306a36Sopenharmony_ci * The End User is not expected to uncomment the following except for
2962306a36Sopenharmony_ci * testing purposes, but instead rely on the firmware/bootloader to
3062306a36Sopenharmony_ci * update these nodes accordingly if PCIe mode is selected by the MCU.
3162306a36Sopenharmony_ci */
3262306a36Sopenharmony_ci/*
3362306a36Sopenharmony_ci&pcie {
3462306a36Sopenharmony_ci	status = "okay";
3562306a36Sopenharmony_ci};
3662306a36Sopenharmony_ci
3762306a36Sopenharmony_ci&usb {
3862306a36Sopenharmony_ci	phys = <&usb2_phy0>, <&usb2_phy1>;
3962306a36Sopenharmony_ci	phy-names = "usb2-phy0", "usb2-phy1";
4062306a36Sopenharmony_ci};
4162306a36Sopenharmony_ci */
42