Skip to content

Commit

Permalink
ARM: dts: stm32: add ltdc support on stm32f746 MCU
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Patrice Chotard <[email protected]>
  • Loading branch information
passgat authored and Patrice Chotard committed Oct 4, 2023
1 parent 5b9e395 commit f479f5d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
18 changes: 6 additions & 12 deletions arch/arm/dts/stm32f746-disco-u-boot.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,13 @@
};
};
};
};

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 {
Expand Down
10 changes: 10 additions & 0 deletions arch/arm/dts/stm32f746.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,16 @@
};
};

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>;
Expand Down

0 comments on commit f479f5d

Please sign in to comment.