Display customization
Hi All,
In my currently yocto image I want to customize a LCD TFT RGB 7" 1024x600 24bpp display. At the moment, I have a dts patch file where there are all image customizations. In this file the currently display settings (LCD TFT RGB 7" 800x480) are the following
panel_rgb: panel-rgb {
compatible = "ampire,am800480r3tmqwa1h";
status = "okay";
power-supply = <&lcd_3v3>;
//backlight = <&panel_backlight>;
bits-per-pixel = <16>;
bus-width = <18>;
//data-shift = <0>;
display-timings {
native-mode = <&timing0>;
timing0: timing0 {
clock-frequency = <33300000>;
hactive = <800>;
vactive = <480>;
hfront-porch = <210>;
hback-porch = <46>;
hsync-len = <46>;
vback-porch = <23>;
vfront-porch = <22>;
vsync-len = <23>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <1>;
};
The new display don't use HSINK and VSINK but DE only.
First question: I don't understand how to manage the "compatible" property. Is this property needed? What I have to write in the "compatible" property if my new display is not in the linux devicetree official list?
Second question: what is the difference between "bit-per-pixel" and "bus-width"? In my case all RGB data lines (R0-R7; B0-B7; G0-G7) are used. I tried to set
bits-per-pixel = <24>
bus-width = <24>
but I have a sintax error
Below, in my opinion, the new display settings based on the display datasheet
panel_rgb: panel-rgb {
compatible = "ampire,am800480r3tmqwa1h";
status = "okay";
power-supply = <&lcd_3v3>;
backlight = <&panel_backlight>;
bits-per-pixel = <24>;
bus-width = <24>;
data-shift = <0>;
display-timings {
native-mode = <&timing0>;
timing0: timing0 {
clock-frequency = <51200000>;
hactive = <1024>;
vactive = <600>;
hfront-porch = <0>;
hback-porch = <0>;
hsync-len = <320>;
vback-porch = <0>;
vfront-porch = <0>;
vsync-len = <35>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <1>;
pixelclk-active = <1>;
The build fails with "sintax error"
Any suggestions?
Many thanks
