Correct device settings for display Tianma nl10276bc13-01c

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

Correct device settings for display Tianma nl10276bc13-01c

Jump to solution
1,172 Views
adrocohen
Contributor II

Hello all!

I want to create correct device tree for Tianma nl10276bc13-01c with BSP for imx6qp (TQMa6x platform) .

I've built OS image and currently try to use imx6qdl-mba6-lvds-tm070jvhg33.dtsi (in attach) from kernel-4.14, which is compatible with other Tianma display:

/*
* Copyright 2018 Markus Niebel, TQ Systems GmbH
*
* The code contained herein is licensed under the GNU General Public
* License. You may obtain a copy of the GNU General Public License
* Version 2 or later at the following locations:
*
* http://www.opensource.org/licenses/gpl-license.html
* http://www.gnu.org/copyleft/gpl.html
*/

/ {
backlight_ldb: backlight@0 {
compatible = "pwm-backlight";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_backlight>;
pwms = <&pwm1 0 62500>;
brightness-levels = <0 16 32 64 96 128 160 192 224 255>;
default-brightness-level = <5>;
power-supply = <&reg_mba6_3p3v>;
enable-gpios = <&gpio4 5 GPIO_ACTIVE_HIGH>;
status = "okay";
};

panel-lvds0 {
compatible = "tianma,tm070jvhg33";
backlight = <&backlight_ldb>;
power-supply = <&reg_mba6_3p3v>;
status = "okay";

port {
panel_in_lvds0: endpoint {
remote-endpoint = <&lvds0_out>;
};
};
};
};

&ldb {
status = "okay";

lvds-channel@0 {
fsl,data-mapping = "spwg";
fsl,data-width = <24>;
status = "okay";

port@4 {
reg = <4>;

lvds0_out: endpoint {
remote-endpoint = <&panel_in_lvds0>;
};
};
};

lvds-channel@1 {
status = "disabled";
};
};

&iomuxc {
imx6qdl-mba6 {
pinctrl_backlight: backlightgrp {
fsl,pins = <
/* LCD.BLT_EN */
MX6QDL_PAD_GPIO_19__GPIO4_IO05 0x0001b099
>;
};
};
};

But my display has different characteristics (other size, other resolution...), so I see some poor quality when run some qt-examples (see examples below).

I cannot get what's the problem, is it related to wrong resolution or wrong color depth? And what should I change in device tree for correct display working?

photo_2020-04-02_19-23-28.jpg photo_2020-04-02_19-23-48.jpg

Labels (1)
Tags (2)
1 Solution
1,046 Views
adrocohen
Contributor II

I've found wrong option in configuration after consulting with a electronics specialist, it was 'data-mapping', the right option for color map had to be 'jeida'.

Anyway, thanks.

View solution in original post

0 Kudos
3 Replies
1,047 Views
adrocohen
Contributor II

I've found wrong option in configuration after consulting with a electronics specialist, it was 'data-mapping', the right option for color map had to be 'jeida'.

Anyway, thanks.

0 Kudos
1,046 Views
igorpadykov
NXP Employee
NXP Employee

Hi Maksim

for custom lcd timings one can look at documentation:

fsl,imx-fb.txt - Documentation/devicetree/bindings/video/fsl,imx-fb.txt - Linux source code (v4.0) -... 

Adding a custom display 

https://community.nxp.com/thread/355690 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,046 Views
adrocohen
Contributor II

Thank you for such useful links, I will try to get into it and try to build my device tree.

So, bad image quality is related to wrong timings, right?

0 Kudos