]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: dts: stm32: add ltdc support on stm32f746 MCU
authorDario Binacchi <dario.binacchi@amarulasolutions.com>
Sun, 3 Sep 2023 20:48:46 +0000 (22:48 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Wed, 4 Oct 2023 11:26:02 +0000 (13:26 +0200)
The patch applies the changes from Linux commit 008ef8b3a1a00 ("Add LTDC
(Lcd-tft Display Controller) support") and removes the same settings
from stm32f746-disco-u-boot.dtsi.

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
arch/arm/dts/stm32f746-disco-u-boot.dtsi
arch/arm/dts/stm32f746.dtsi

index 522cffb1ac9f5fbe69bd315bead99ea35f270157..3c2b9fc59512a4042c4d3212e2c7c1d2075303da 100644 (file)
                        };
                };
        };
+};
 
-       soc {
-               ltdc: display-controller@40016800 {
-                       compatible = "st,stm32-ltdc";
-                       reg = <0x40016800 0x200>;
-                       resets = <&rcc STM32F7_APB2_RESET(LTDC)>;
-                       clocks = <&rcc 0 STM32F7_APB2_CLOCK(LTDC)>;
-                       pinctrl-0 = <&ltdc_pins>;
-
-                       status = "okay";
-                       bootph-all;
-               };
-       };
+&ltdc {
+       clocks = <&rcc 0 STM32F7_APB2_CLOCK(LTDC)>;
+       pinctrl-0 = <&ltdc_pins>;
+       status = "okay";
+       bootph-all;
 };
 
 &fmc {
index 7b4bd805c998a59b0ae7b1685c4f5f90b1aaf656..79dad3192e155390b55be3d35517fe179f7dc108 100644 (file)
                        };
                };
 
+               ltdc: display-controller@40016800 {
+                       compatible = "st,stm32-ltdc";
+                       reg = <0x40016800 0x200>;
+                       interrupts = <88>, <89>;
+                       resets = <&rcc STM32F7_APB2_RESET(LTDC)>;
+                       clocks = <&rcc 1 CLK_LCD>;
+                       clock-names = "lcd";
+                       status = "disabled";
+               };
+
                pwrcfg: power-config@40007000 {
                        compatible = "st,stm32-power-config", "syscon";
                        reg = <0x40007000 0x400>;