IMX6q Wandboard LCD Device Tree Configuration

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX6q Wandboard LCD Device Tree Configuration

1,133 Views
asira
Contributor I

Hi everyone,

I created a linux image following the robert nelson instructions Located Here. It works for the most part, however I'm having difficulties configuring the display. I want the system to display on the parallel LCD output. It is doing this however all the current configurations are telling the system to use the HDMI. So I can't make any changes to the display timings to correct the data output. The output is accessible in /dev/fb0.

Currently the uEnv.txt instructs the system to use HDMI like so: cmdline=video=HDMI-A-1:1024x768@60e

Additionally the device tree explicity disables the ldb. Despite all of this however the default build still displays on the parallel LCD. However the clock rate and timings are incorrect. 

imx6q-wandboard-revb1.dts is being used to build the dtb blob. imx6qdl-wandboard-revb1.dtsiimx6qdl.dtsi and imx6q.dtsi get included in the build source. Those last two contain definitions for the ldb, which explicity disable it. After decompiling the .dtb for the ubuntu 14.04 wandboard image which did provide the functionality I needed I tried modifying the new device tree files to match the configuration of the wandboard stock image. The trouble is whenever I try to enable the LDB, the /dev/fb0 doesn't appear anymore no matter what I try.

Between all of the different files not specifying anything I'm not sure why it's displaying on the parallel LCD to begin with. When I modified the stock wandboard dtb I was able to add timing info the the LVDS channel and make the LCD run perfectly.

lvds-channel@0 {
    reg = <0x0>;
    status = "okay";
    fsl,data-mapping = "spwg";
    fsl,data-width = <0x18>;
    primary;
    crtc = "ipu1-di1";

    display-timings {
        native-mode = <0x14>;

        hj070na {
            clock-frequency = <0x30a32c0>;
            hactive = <0x400>;
            vactive = <0x258>;
            hback-porch = <0x5a>;
            hfront-porch = <0x78>;
            vback-porch = <0x1>;
            vfront-porch = <0x1>;
            hsync-len = <0x64>;
            vsync-len = <0x21>;
            linux,phandle = <0x14>;
            phandle = <0x14>;
            pixelclk-active = "active high";
        };
    };
};

However attempting to do this with the new files makes the display completely fail. I'm uncertain on how to continue at this point. The main questions I have are:

1. How can I go about correctly editing the device tree to display on the LCD and allow me to configure it properly? How do I go about properly defining a new frame buffer?

2. How is the system displaying on the parallel LCD interface despite being explicitly disabled?

Thanks!

Labels (3)
0 Kudos
1 Reply

595 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Ashwin Sira,

I would recommend looking at the Wandboard forums as you will definitely find more suitable information for that board there.

http://forums.wandboard.org/

I’m not very familiar with this board or its forums but it’s most likely to find information on their Device Trees there. There are some documents in our communities on how to customize a device tree like the one below, but these are not specific for the Wandboard.

https://community.nxp.com/docs/DOC-329664

Regards,

0 Kudos