mirror of
https://github.com/smaeul/u-boot.git
synced 2025-09-14 22:16:03 +01:00
On STi platforms, all clocks are enabled by BOOTROM, so CONFIG_CLK is not set as no clock driver for STI exists. As ehci-generic and ohci-generic drivers are used on platforms where CONFIG_CLK is set, clk_get_bulk() returns-ENOSYS in case of stih410-b2260. To avoid this error, add fixed clocks for ehci and ohci nodes for stih410-b2260 to fix the following errors: Bus usb@9a03c00: ohci_generic usb@9a03c00: Failed to get clocks (ret=-19) Port not available. Bus usb@9a03e00: ehci_generic usb@9a03e00: Failed to get clocks (ret=-19) Port not available. Bus usb@9a83c00: ohci_generic usb@9a83c00: Failed to get clocks (ret=-19) Port not available. Bus usb@9a83e00: ehci_generic usb@9a83e00: Failed to get clocks (ret=-19) Port not available. scanning bus dwc3@9900000 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com> Cc: Marek Vasut <marex@denx.de> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Link: https://lore.kernel.org/r/20250130163547.512990-2-patrice.chotard@foss.st.com Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
44 lines
786 B
Plaintext
44 lines
786 B
Plaintext
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Copyright (C) 2018, STMicroelectronics - All Rights Reserved
|
|
* Author(s): Patrice Chotard, <patrice.chotard@foss.st.com> for STMicroelectronics.
|
|
*
|
|
*/
|
|
|
|
/{
|
|
soc {
|
|
st_dwc3: dwc3@8f94000 {
|
|
dwc3: dwc3@9900000 {
|
|
dr_mode = "peripheral";
|
|
phys = <&usb2_picophy0>;
|
|
};
|
|
};
|
|
|
|
clk_usb: clk-usb {
|
|
compatible = "fixed-clock";
|
|
#clock-cells = <0>;
|
|
clock-frequency = <100000000>;
|
|
};
|
|
|
|
ohci0: usb@9a03c00 {
|
|
compatible = "generic-ohci";
|
|
clocks = <&clk_usb>;
|
|
};
|
|
|
|
ehci0: usb@9a03e00 {
|
|
compatible = "generic-ehci";
|
|
clocks = <&clk_usb>;
|
|
};
|
|
|
|
ohci1: usb@9a83c00 {
|
|
compatible = "generic-ohci";
|
|
clocks = <&clk_usb>;
|
|
};
|
|
|
|
ehci1: usb@9a83e00 {
|
|
compatible = "generic-ehci";
|
|
clocks = <&clk_usb>;
|
|
};
|
|
};
|
|
};
|