rk3288 Android5.1 lvds

/*

  • RockChip. LCD_B101ew05

*/

/ {

backlight {
	compatible = "pwm-backlight";
	pwms = <&pwm1 0 25000>;
	rockchip,pwm_id= <1>;
    polarity = <1>;
	brightness-levels = ;
	default-brightness-level = <150>;
	enable-gpios = <&gpio7 GPIO_A1 GPIO_ACTIVE_HIGH>;
};

disp_timings: display-timings {
                native-mode = <&timing0>;
                timing0: timing0 {
		screen-type = ;
		lvds-format = ;
		out-face    = ;
		color-mode = ;
		clock-frequency = <60000000>; //像素时钟
		hactive = <800>;// 横像素点数
		vactive = <1280>;//竖像素点数
		hback-porch = <24>;//水平后沿 在每行或每列的象素数据开始输出时要插入的象素时钟周期数
		hfront-porch = <72>;//水平前沿 在每行或每列的象素结束到LCD 行时钟输出脉冲之间的象素时钟数
		vback-porch = <10>;//垂直后沿 在垂直同步周期之后帧开头时的无效行数
		vfront-porch = <12>;//垂直前沿 本帧数据输出结束到下一帧垂直同步周期开始之前的无效行数
		hsync-len = <24>;//行同步脉宽 单位:像素时钟周期 
		vsync-len = <2>;//垂直同步脉宽 单位:显示一行的时间th
		hsync-active = <0>;
		vsync-active = <0>;
		de-active = <0>;
		pixelclk-active = <0>;
		swap-rb = <0>;
		swap-rg = <0>;
		swap-gb = <0>;
             	};
       };

};

&disp_timings {
native-mode = <&timing0>;
};

&rk_screen {
display-timings = <&disp_timings>;
};

/lcdc0 as PRMRY(HDMI)/
&lcdc0 {
status = “okay”;
rockchip,iommu-enabled = <1>;
rockchip,prop = ;
power_ctr: power_ctr {
rockchip,debug = <1>;
power_enable = <1>;
lcd_en:lcd_en {
rockchip,power_type = ;
gpios = <&gpio1 GPIO_D2 GPIO_ACTIVE_HIGH>;
rockchip,delay = <10>;
};

    disp_en:disp_en {
             rockchip,power_type = ;
             gpios = <&gpio8 GPIO_A7 GPIO_ACTIVE_HIGH>;
             rockchip,delay = <10>;
     };

   /*
     lcd_cs:lcd_cs {
             rockchip,power_type = ;
             gpios = <&gpio7 GPIO_A4 GPIO_ACTIVE_HIGH>;
             rockchip,delay = <10>;
     };
   
     lcd_rst:lcd_rst {
             rockchip,power_type = ;
             gpios = <&gpio5 GPIO_C1 GPIO_ACTIVE_HIGH>;
             rockchip,delay = <0>;
     };
     */
};

};
&pwm1 {
status=“okay”;
};

参数 分析

		screen-type = ;
		
		lvds-format = ;
		out-face    = ;
		color-mode = ;
		clock-frequency = <60000000>;
		https://blog.csdn.net/a617996505/article/details/82386952

结果分析
rk3288 Android5.1 lvds_第1张图片

通过参看分辨率:
root@xxx:/sys/class/graphics/fb0 # cat screen_info
cat screen_info
xres:1920
yres:1080
fps:52

发现屏幕分辨率不是自己所设置。

调试半天,发现VGA与次有冲突,在make menuconfig中关闭VGA选项,就ok了。

make menuconfig
Device Drivers
graphics support
Firefly VGA Out/In support 去掉

rk3288 Android5.1 lvds_第2张图片

你可能感兴趣的:(Android5.1,rk3288)