当前位置:网站首页>[arm] it is reported that horizontal display is set for LVDS screen of rk3568 development board

[arm] it is reported that horizontal display is set for LVDS screen of rk3568 development board

2022-06-22 23:25:00 Boiled cabbage

The message is rk3568 Development board lvds Screen setting horizontal screen display

Development board : The message is rk3568
The root file system :buildroot
System :Linux
 Please add a picture description

rotate uboot logo And the kernel logo

Here I refer to the information in Xunwei 09 manual android System and application development manual
modify /kernel/arch/arm64/boot/dts/rockchip/topeet_rk3568_lcds.dtsi Device tree
The directory here is the directory where we modify the display screen , There are two device tree files in this directory. One is screen selection and the other is screen settings

&route_lvds{
    
	status = "okay";
	logo,rotate = <3>; //  The newly added ![ Please add a picture description ](https://img-blog.csdnimg.cn/ec959e4e82ca47bfb7e344b262087ce0.jpeg)

	connect = <&vp2_out_lvds>;
};

among :
logo,rotate = <1>; Represents counterclockwise rotation 90 degree ,
logo,rotate = <2>; Represents counterclockwise rotation 180 degree ,
logo,rotate = <3>; Represents counterclockwise rotation 270 degree ,
logo,rotate = <0>; Represents counterclockwise rotation 360 degree .

Here, the display angle is corresponding to the display demand , When we get to the card here, our kernel will be displayed logo The display is normal , But after the system is started, it is found that the desktop is still displayed vertically .

rotate buildroot System desktop

Here I refer to Rockchip buildrootWeston Development of guidelines , This document is about buildroot That is, the screen related configuration usage shown in the image , The configuration method for modifying the screen direction is to modify /etc/xdg/weston/weston.ini file , We can modify it in the source code or after entering the development board system .

vi /etc/xdg/weston/weston.ini

//  Add the following code 
[output]
name=LVDS-1
transform=90
# normal|90|180|270|flipped|flipped-90|flipped-180|flipped-270

If you need to dynamically configure the screen orientation , You can use dynamic configuration files , Such as :

echo "output:all:rotate90" > /tmp/.weston_drm.conf #  All screens rotate 90 degree 
echo "output:eDP-1::rotate180" > /tmp/.weston_drm.conf # eDP-1 rotate 180 degree 

The following is also described in this document
 Insert picture description here
There is a need to enter the source code docs Look it up in the directory , I modify it by entering the development board system. It will not take effect until it is restarted .
 Insert picture description here I have no problem touching here , It's OK to be here under normal circumstances , If there is a touch problem, you can try the following rotary touch solution , Here I also refer to Android Modified by the application development manual , You can try it yourself .
 Please add a picture description

Rotary touch

The screens supported by Xunwei are LVDS 7 Inch screen ,LVDS10.1 Inch screen ,MIPI 7 Inch screen
LVDS 7 Inch screen and MIPI 7 The touch chip used in the inch screen is ft5x06. LVDS10.1 Touch chip with inch screen
yes gt911.
Touch chip yes ft5x06 The screen of , modify
/kernel/arch/arm64/boot/dts/rockchip/topeet_rk3568_lcds.dtsi Touch nodes in the device tree , Add red code , As shown below :

ft5x06:[email protected]38 {
    
	status = "disabled";
	compatible = "edt,edt-ft5306";
	reg = <0x38>;
	touch-gpio = <&gpio0 RK_PB5 IRQ_TYPE_EDGE_RISING>;
	interrupt-parent = <&gpio0>;
	interrupts = <RK_PB5 IRQ_TYPE_LEVEL_LOW>;
	reset-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_LOW>;
	touchscreen-size-x = <800>;
	touchscreen-size-y = <1280>;
	touch_type = <1>;
	touchscreen-inverted-x; //  The newly added 
	touchscreen-swapped-x-y; //  The newly added 
};

Touch chip yes gt911 The screen of , Modify the following node

gt9xx:[email protected]14 {
    
	compatible = "goodix,gt9xx";
	reg = <0x14>;
	interrupt-parent = <&gpio0>;
	interrupts = <RK_PB5 IRQ_TYPE_LEVEL_LOW>;
	reset-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_LOW>;
	touch-gpio = <&gpio0 RK_PB5 IRQ_TYPE_EDGE_RISING>;
	status = "disabled";
	tp-size = <911>;
	max-x = <1024>;
	max-y = <600>;
	touchscreen-inverted-x;//  The newly added 
	touchscreen-swapped-x-y;//  The newly added 
};
原网站

版权声明
本文为[Boiled cabbage]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206222106107491.html