Skip to content

Commit 10a970b

Browse files
passgatAlexandre Torgue
authored andcommitted
ARM: dts: stm32: support display on stm32f746-disco board
Add support to Rocktech RK043FN48H display on stm32f746-disco board. Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> Reviewed-by: Raphaël Gallais-Pou <raphael.gallais-pou@foss.st.com> Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
1 parent e4e7240 commit 10a970b

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

arch/arm/boot/dts/st/stm32f746-disco.dts

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,19 @@
6161
reg = <0xC0000000 0x800000>;
6262
};
6363

64+
reserved-memory {
65+
#address-cells = <1>;
66+
#size-cells = <1>;
67+
ranges;
68+
69+
linux,cma {
70+
compatible = "shared-dma-pool";
71+
no-map;
72+
size = <0x80000>;
73+
linux,dma-default;
74+
};
75+
};
76+
6477
aliases {
6578
serial0 = &usart1;
6679
};
@@ -86,6 +99,25 @@
8699
regulator-min-microvolt = <3300000>;
87100
regulator-max-microvolt = <3300000>;
88101
};
102+
103+
backlight: backlight {
104+
compatible = "gpio-backlight";
105+
gpios = <&gpiok 3 GPIO_ACTIVE_HIGH>;
106+
status = "okay";
107+
};
108+
109+
panel_rgb: panel-rgb {
110+
compatible = "rocktech,rk043fn48h";
111+
power-supply = <&vcc_3v3>;
112+
backlight = <&backlight>;
113+
enable-gpios = <&gpioi 12 GPIO_ACTIVE_HIGH>;
114+
status = "okay";
115+
port {
116+
panel_in_rgb: endpoint {
117+
remote-endpoint = <&ltdc_out_rgb>;
118+
};
119+
};
120+
};
89121
};
90122

91123
&clk_hse {
@@ -116,6 +148,18 @@
116148
};
117149
};
118150

151+
&ltdc {
152+
pinctrl-0 = <&ltdc_pins_a>;
153+
pinctrl-names = "default";
154+
status = "okay";
155+
156+
port {
157+
ltdc_out_rgb: endpoint {
158+
remote-endpoint = <&panel_in_rgb>;
159+
};
160+
};
161+
};
162+
119163
&sdio1 {
120164
status = "okay";
121165
vmmc-supply = <&vcc_3v3>;

0 commit comments

Comments
 (0)