]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: dts: stm32: make the DSI clock usable by the clock driver
authorDario Binacchi <dario.binacchi@amarulasolutions.com>
Mon, 11 Dec 2023 22:05:53 +0000 (23:05 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Fri, 15 Dec 2023 14:41:23 +0000 (15:41 +0100)
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 DSI 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>
arch/arm/dts/stm32f469-disco-u-boot.dtsi

index dcc70369cd0d34b4fde23c29d3ac59639d9fdb45..8e781c5a7b2380aa34e54f0da163d3ddbdbaa370 100644 (file)
        bootph-all;
 };
 
+&dsi {
+       clocks = <&rcc 0 STM32F4_APB2_CLOCK(DSI)>,
+                <&clk_hse>;
+};
+
 &gpioa {
        bootph-all;
 };