aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDario Binacchi <dario.binacchi@amarulasolutions.com>2023-12-11 23:05:52 +0100
committerPatrice Chotard <patrice.chotard@foss.st.com>2023-12-15 15:41:23 +0100
commit6212e5bc6979c17da1d54fb0841e99a967101d11 (patch)
treeeb7e7814d9789bfb42e080d5c5284acfda7b2b13
parent95d1900d22311510a3d816fd2f631bc0fdf3c534 (diff)
downloadu-boot-6212e5bc6979c17da1d54fb0841e99a967101d11.zip
u-boot-6212e5bc6979c17da1d54fb0841e99a967101d11.tar.gz
u-boot-6212e5bc6979c17da1d54fb0841e99a967101d11.tar.bz2
ARM: dts: stm32: make the LTDC clock usable by the clock driver
As described in [1], the "clocks" property contains "a phandle to the clock device node, an index selecting between gated clocks (0) and other clocks (1), and an index specifying the clock to use." The current version of the clock driver, unlike the kernel, is currently able to properly handle nodes with "clocks" properties with an index set to 0. This patch is preparatory for future developments that require the use of the LTDC clock. [1] Documentation/devicetree/bindings/clock/st,stm32-rcc.txt Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
-rw-r--r--arch/arm/dts/stm32f469-disco-u-boot.dtsi4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/dts/stm32f469-disco-u-boot.dtsi b/arch/arm/dts/stm32f469-disco-u-boot.dtsi
index c07e202..dcc7036 100644
--- a/arch/arm/dts/stm32f469-disco-u-boot.dtsi
+++ b/arch/arm/dts/stm32f469-disco-u-boot.dtsi
@@ -134,6 +134,10 @@
bootph-all;
};
+&ltdc {
+ clocks = <&rcc 0 STM32F4_APB2_CLOCK(LTDC)>;
+};
+
&pinctrl {
bootph-all;