RK系列(RK3568) MIPI屏适配 PWM背光 驱动开发

平台:Android12

SOC:RK3568

一般拿到MIPI屏 厂家会给一个跑的配置文件 

例如我的:

VDD= 1.8~2.0V
RESET=VDD;
STBYB=VDD;
VGH= 18V
VGL= -6V
AVDD= 9.6V
VCOM= 3.2V(tpy.)

MIPI CLK Speed:340Mbps(170MHZ)
H back porch:160
H front porch:160 
H pulse width:10
V back porch:23
V front porch:12
V pulse width:1

MIPI command如下:

//SSD2805_Gen_write(0xB2,0x10);
SSD2805_Gen_write(0x80,0xAC);
SSD2805_Gen_write(0x81,0xB8);
SSD2805_Gen_write(0x82,0x09);
SSD2805_Gen_write(0x83,0x78);
SSD2805_Gen_write(0x84,0x7F);
SSD2805_Gen_write(0x85,0xBB);
SSD2805_Gen_write(0x86,0x70);
		
SSD2805_Gen_write(0x11,0);		
Delayms(200);
				
SSD2805_Gen_write(0x29,0);
Delayms(20);
	   	 
 

那么可以配置设备树

由于我接的是DSI0

backlight = <&backlight>; 设置背光

&dsi0 {
        status = "okay";
        dsi_panel: panel@0 {
                status = "okay&

你可能感兴趣的:(RK驱动开发,Rk开发(RK3568),android,驱动开发,linux)