So, I have created the script: /usr/bin/lvds-single-channel.sh
#!/bin/sh
#enable the parallel RGB to LVDS controller in single channel mode
echo 216 > /sys/class/gpio/export
echo 219 > /sys/class/gpio/export
echo 222 > /sys/class/gpio/export
echo 223 > /sys/class/gpio/export
echo 226 > /sys/class/gpio/export
echo 225 > /sys/class/gpio/export
echo 221 > /sys/class/gpio/export
echo 220 > /sys/class/gpio/export
echo high > /sys/class/gpio/gpio216/direction
echo high > /sys/class/gpio/gpio219/direction
echo high > /sys/class/gpio/gpio222/direction
echo high > /sys/class/gpio/gpio223/direction
echo high > /sys/class/gpio/gpio226/direction
echo high > /sys/class/gpio/gpio225/direction
echo high > /sys/class/gpio/gpio221/direction
echo high > /sys/class/gpio/gpio220/direction
added it to the init.d directiory, and set to run during system start:
#!/bin/sh
/usr/bin/lvds-single-channel.sh
edited and deployed device tree as bellow:
panel: panel {
/*
* edt,et057090dhu: EDT 5.7" LCD TFT
* edt,et070080dh6: EDT 7.0" LCD TFT
*/
compatible = "innolux,g121x1-l03", "simple-panel";
backlight = <&backlight>;
};
where, my panel is already defined in panel-simple.c as bellow:
static const struct drm_display_mode innolux_g121x1_l03_mode = {
.clock = 65000,
.hdisplay = 1024,
.hsync_start = 1024 + 0,
.hsync_end = 1024 + 1,
.htotal = 1024 + 0 + 1 + 320,
.vdisplay = 768,
.vsync_start = 768 + 38,
.vsync_end = 768 + 38 + 1,
.vtotal = 768 + 38 + 1 + 0,
.vrefresh = 60,
.flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
};
static const struct panel_desc innolux_g121x1_l03 = {
.modes = &innolux_g121x1_l03_mode,
.num_modes = 1,
.bpc = 6,
.size = {
.width = 246,
.height = 185,
},
.delay = {
.enable = 200,
.unprepare = 200,
.disable = 400,
},
};
Additionally I set boot vidargs to null, but still cannot see proper image on lvds display. I can only see random color during system start. On toradex custom kernel display works fine. How can I debug this problem? I am using apalis T30 on custom extension board. In attachment you can find xorg log link text