How to configure parallel lcd in linux and u-boot?
I have a generic parallel LCD screen. 24 bits RGB, vsync, hsync, pclk, data_enable, disp_on,..
The examples I see on the wiki only shows the HDMI connection and DSI. How do you configure this for DPI?
Is this a good start? (In the device tree)
panel_backlight: panel-backlight {
compatible = "gpio-backlight";
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>, <&gpioc 4 GPIO_ACTIVE_HIGH>;
default-on;
status = "okay";
};
lcd0: display@0 {
compatible ="panel-dpi";
label = "lcd";
enable-gpios = <&gpioh 15 GPIO_ACTIVE_HIGH>;
backlight = <&panel_backlight>;
port {
lcd_in: endpoint {
remote-endpoint = <<dc_out_rgb>;
};
};
panel-timing {
clock-frequency = <33000000>;
hactive = <800>;
vactive = <480>;
hfront-porch = <40>;
hback-porch = <40>;
hsync-len = <24>;
vback-porch = <29>;
vfront-porch = <13>;
vsync-len = <3>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <1>;
pixelclk-active = <1>;
};
};and
<dc{
pinctrl-names = "default", "sleep";
pinctrl-0 = <<dc_pins_mx>;
pinctrl-1 = <<dc_sleep_pins_mx>;
status = "okay";
/* USER CODE BEGIN ltdc */
port {
#address-cells = <1>;
#size-cells = <0>;
ltdc_out_rgb: endpoint {
};
};
/* USER CODE END ltdc */
};