|
求RK3288 Reload点亮Dual-LVDS 1920*1200 TFT屏的方法
发表于 2016-8-4 23:52:40
浏览:10115
|
回复:5
打印
只看该作者
[复制链接]
楼主
各位大神好, 我想要点亮一块dual lvds的屏, 于是参照了wiki和版主zhansb在 http://developer.t-firefly.com/thread-945-1-1.html 里面的回复。我去查了一下kernel/arch/arm/boot/dts下的驱动树 firefly-rk3288-reload.dts文件,它include了lcd-box.dtsi文件,于是我就将这个文件修改如下:
- <p><p><div class="blockcode">
- / {
- disp_power_ctr: power_ctr {
- /* rockchip,debug = <0>;
- lcd_en:lcd_en {
- rockchip,power_type = <GPIO>;
- gpios = <&gpio0 GPIO_B0 GPIO_ACTIVE_HIGH>;
- rockchip,delay = <10>;
- };
- bl_en:bl_en {
- rockchip,power_type = <GPIO>;
- gpios = <&gpio0 GPIO_A2 GPIO_ACTIVE_HIGH>;
- rockchip,delay = <10>;
- };
- bl_ctr:bl_ctr {
- rockchip,power_type = <GPIO>;
- gpios = <&gpio3 GPIO_D6 GPIO_ACTIVE_HIGH>;
- rockchip,delay = <10>;
- };
- lcd_rst:lcd_rst {
- rockchip,power_type = <REGULATOR>;
- rockchip,delay = <5>;
- };*/
- };
- disp_timings: display-timings {
- native-mode = <&timing0>;
- timing0: timing0 {
- screen-type = <SCREEN_DUAL_LVDS>;
- out-face = <OUT_P888>;
- clock-frequency = <74250000>;
- color-mode=<COLOR_RGB>;
- hactive = <1920>;
- vactive = <1200>;
- hback-porch = <220>;
- hfront-porch = <110>;
- vback-porch = <20>;
- vfront-porch = <5>;
- hsync-len = <40>;
- vsync-len = <5>;
- hsync-active = <0>;
- vsync-active = <0>;
- de-active = <1>;
- pixelclk-active = <0>;
- swap-rb = <0>;
- swap-rg = <0>;
- swap-gb = <0>;
- };
- timing1: timing1 {
- screen-type = <SCREEN_RGB>;
- out-face = <OUT_P888>;
- clock-frequency = <148500000>;
- hactive = <1920>;
- vactive = <1080>;
- hback-porch = <148>;
- hfront-porch = <88>;
- vback-porch = <36>;
- vfront-porch = <4>;
- hsync-len = <44>;
- vsync-len = <5>;
- hsync-active = <1>;
- vsync-active = <1>;
- de-active = <0>;
- pixelclk-active = <0>;
- swap-rb = <0>;
- swap-rg = <0>;
- swap-gb = <0>;
- };
- timing2: timing2 {
- screen-type = <SCREEN_RGB>;
- out-face = <OUT_P888>;
- clock-frequency = <297000000>;
- hactive = <3840>;
- vactive = <2160>;
- hback-porch = <296>;
- hfront-porch = <176>;
- vback-porch = <72>;
- vfront-porch = <8>;
- hsync-len = <88>;
- vsync-len = <10>;
- hsync-active = <1>;
- vsync-active = <1>;
- de-active = <0>;
- pixelclk-active = <0>;
- swap-rb = <0>;
- swap-rg = <0>;
- swap-gb = <0>;
- };
- };
- };
- </div></p></p>
复制代码
代码中关于timing0的设置是按照屏幕的规格书设置的,然后我按照wiki android 5.1 里面解释的重新编译后把kernel.img和resource.img烧写进去,但是屏幕一直是黑的,后来我又修改了几次同一个文件, 然后发现重新编译之后的镜像与先前没有区别,我怀疑在编译的过程中 并没有把这些修改编译进去, 请问我是不是还忘了修改哪个文件或者忽略了哪个步骤呢???求大神们解答!!!感谢!!! |
|