cancel
Showing results for 
Search instead for 
Did you mean: 

How to enable RGB Display LTDC in U-Boot

DLee.15
Associate II

Hello

I wrote the following code to activate the display.

The code below is written in kernel/stm32mp157a*.dts and u-boot/stm32mp157a*.dts.

panel_rgb: panel-rgb {
			compatible = "panel-dpi";
			label = "lcd";
			power-supply = <&vdd_panel>;
			status = "okay";
			port{
				panel_in_rgb: endpoint@0 {
					remote-endpoint = <&ltdc_out_rgb>;
				};
			};
			panel-timing {
				clock-frequency = <63700000>;
				hactive = <1280>;
				vactive = <720>;
				hfront-porch = <20>;
				hback-porch = <20>;
				hsync-len = <20>;
				vback-porch = <24>;
				vfront-porch = <24>;
				vsync-len = <24>;
			};
		};
 
&ltdc{
	pinctrl-names = "default", "sleep";
	pinctrl-0 = <&ltdc_pins_mx>;
	pinctrl-1 = <&ltdc_sleep_pins_mx>;
	status = "okay";
 
	/* USER CODE BEGIN ltdc */
	port {
			ltdc_out_rgb: endpoint@0 {
				reg = <0>;
				remote-endpoint = <&panel_in_rgb>;
			};
	};
	/* USER CODE END ltdc */
};

As a result, the code worked, but only worked in the kernel and not in uboot. I could get help here but I don't know the difference. How to write ltdc in uboot

1 REPLY 1
flipflop
Associate

Hello everyone. Is there any news regarding this question?

I have the same problem.

I can add that the LTDC driver in the probe returns:

  stm32_ltdc_probe: LTDC hardware 0x0