ARM: dts: sti: Add fixed clock for ehci and ohci nodes in stih410-b2260.dtsi
authorPatrice Chotard <patrice.chotard@foss.st.com>
Thu, 30 Jan 2025 16:35:39 +0000 (17:35 +0100)
committerMattijs Korpershoek <mkorpershoek@baylibre.com>
Tue, 11 Feb 2025 08:00:42 +0000 (09:00 +0100)
commit3810cd52cbf42727ebe22cf2a7929045d5ab01fd
tree5107ba34ebc372716599749b89b99b4f63182551
parent4b6a3e860878de5198f5561a0d8c602a9c296f0a
ARM: dts: sti: Add fixed clock for ehci and ohci nodes in stih410-b2260.dtsi

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>
arch/arm/dts/stih410-b2260-u-boot.dtsi