mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-01 15:14:52 +00:00

The 'bootph-all' tag was added to the dt-schema to describe the various nodes used during the different phases of bootup with DT. Add the bootph-all tag to all nodes that are used in the bootloader for the AM654 reference board. UARTs used as a console, the SD and eMMC nodes along with the needed regulators for UHS modes, and the needed nodes for OSPI boot are all marked with 'bootph-all' to handle the various boot modes the board is capable of Signed-off-by: Bryan Brattlof <bb@ti.com> Link: https://lore.kernel.org/r/20250710-65-boot-phases-v2-2-d431deb88783@ti.com Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
61 lines
1.3 KiB
Plaintext
61 lines
1.3 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0-only OR MIT
|
|
/**
|
|
* DT overlay for SERDES personality card: 2lane PCIe + USB2.0 Host on AM654 EVM
|
|
*
|
|
* Copyright (C) 2018-2024 Texas Instruments Incorporated - https://www.ti.com/
|
|
*/
|
|
|
|
/dts-v1/;
|
|
/plugin/;
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
#include <dt-bindings/phy/phy.h>
|
|
#include <dt-bindings/phy/phy-am654-serdes.h>
|
|
#include "k3-pinctrl.h"
|
|
|
|
&serdes0 {
|
|
assigned-clocks = <&k3_clks 153 4>,
|
|
<&serdes0 AM654_SERDES_CMU_REFCLK>,
|
|
<&serdes0 AM654_SERDES_RO_REFCLK>;
|
|
assigned-clock-parents = <&k3_clks 153 8>,
|
|
<&k3_clks 153 4>,
|
|
<&k3_clks 153 4>;
|
|
status = "okay";
|
|
};
|
|
|
|
&serdes1 {
|
|
assigned-clocks = <&serdes1 AM654_SERDES_CMU_REFCLK>;
|
|
assigned-clock-parents = <&serdes0 AM654_SERDES_RO_REFCLK>;
|
|
status = "okay";
|
|
};
|
|
|
|
&pcie0_rc {
|
|
num-lanes = <2>;
|
|
phys = <&serdes0 PHY_TYPE_PCIE 1>, <&serdes1 PHY_TYPE_PCIE 1>;
|
|
phy-names = "pcie-phy0", "pcie-phy1";
|
|
reset-gpios = <&pca9555 5 GPIO_ACTIVE_HIGH>;
|
|
status = "okay";
|
|
};
|
|
|
|
&main_pmx0 {
|
|
usb0_pins_default: usb0-default-pins {
|
|
pinctrl-single,pins = <
|
|
AM65X_IOPAD(0x02bc, PIN_OUTPUT, 0) /* (AD9) USB0_DRVVBUS */
|
|
>;
|
|
};
|
|
};
|
|
|
|
&dwc3_0 {
|
|
status = "okay";
|
|
bootph-all;
|
|
};
|
|
|
|
&usb0_phy {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb0 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&usb0_pins_default>;
|
|
dr_mode = "host";
|
|
};
|