RK3288 PAD版使用单MIPI屏
请教各位大神一个问题:使用MIPI TX/RX接单MIPI屏,按照社区上下载的PAD版本的SDK中,
#include "lcd-ld089wu1-mipi.dtsi"
然后再使用有碰到几个问题:
1、rockchip,cmd: 这个设置的值长度超过27个的时候,软件编译没问题,但是烧入到机器中机器会死机,这个参数长度有限制吗?
2、使用MIPI屏了,他这里应该是单独的了吧,这个主显是 不是就空了?:
/*lcdc0 as PRMRY(LCD),lcdc1 as EXTEND(HDMI)*/
&lcdc0 {
status = "okay";
rockchip,mirror = <NO_MIRROR>;
rockchip,cabc_mode = <0>;
power_ctr: power_ctr {
rockchip,debug = <0>;
lcd_en:lcd_en {
rockchip,power_type = <GPIO>;
gpios = <&gpio7 GPIO_A3 GPIO_ACTIVE_HIGH>;
rockchip,delay = <10>;
};
lcd_cs:lcd_cs {
rockchip,power_type = <GPIO>;
gpios = <&gpio7 GPIO_A4 GPIO_ACTIVE_HIGH>;
rockchip,delay = <10>;
};
/*lcd_rst:lcd_rst {
rockchip,power_type = <GPIO>;
gpios = <&gpio3 GPIO_D6 GPIO_ACTIVE_HIGH>;
rockchip,delay = <5>;
};*/
};
};
&lcdc1 {
status = "okay";
rockchip,mirror = <NO_MIRROR>;
}; 第一个问题:目前SDK是有这样的限制,可以修改驱动支持更长的指令数目,比如:
diff --git a/kernel/drivers/video/rockchip/screen/lcd_mipi.c b/kernel/drivers/video/rockchip/screen/lcd_mipi.c
index d9d35d2..9f8f5dc 100755
--- a/kernel/drivers/video/rockchip/screen/lcd_mipi.c
+++ b/kernel/drivers/video/rockchip/screen/lcd_mipi.c
@@ -285,7 +285,7 @@ static int rk_mipi_screen_init_dt(struct mipi_screen *screen)
struct list_head *pos;
struct property *prop;
enum of_gpio_flags flags;
- u32 value, i, debug, gpio, ret, cmds, length;
+ u32 value, i, debug, gpio, ret, cmds, length;
memset(screen, 0, sizeof(*screen));
@@ -530,7 +530,7 @@ EXPORT_SYMBOL(rk_mipi_get_dsi_clk);
static int rk_mipi_screen_init_dt(struct mipi_screen *screen)
{
struct mipi_dcs_cmd_ctr_list *dcs_cmd;
- u32 i, cmds;
+ u32 i, cmds;
int length;
int err;
int node;
diff --git a/kernel/drivers/video/rockchip/transmitter/mipi_dsi.h b/kernel/drivers/video/rockchip/transmitter/mipi_dsi.h
index b06eafa..98fba27 100755
--- a/kernel/drivers/video/rockchip/transmitter/mipi_dsi.h
+++ b/kernel/drivers/video/rockchip/transmitter/mipi_dsi.h
@@ -254,9 +254,9 @@ struct dcs_cmd {
u8 dtype;
u8 dsi_id;
u8 cmd_len;
- int cmds;
+ int cmds;
int delay;
- char name;
+ char name;
};
struct mipi_dcs_cmd_ctr_list {
第二个问题:还是用的是主显啊,使用lcdc0 哦 果然有限制啊 我试试 谢谢! 版主:
目前MIPI屏这边我还没有点亮,但是我更改#include "lcd-ld089wu1-mipi.dtsi"的屏的参数,HDMI输出的效果会发生变化呢?按道理他们是双路LCDC的,HDMI走LCDC1,按您说的 MIPI走LCDC0,那应该不会影响到HDMI的输出显示才对,这是为什么呢? 因为PAD版中HDMI是根据LCD屏做scale的,只要分辨率改动了,就会影响到HDMI 那这样应该还有个scaler能将HDMI还原成正常的显示吧? 如果要照顾到HDMI的显示,那应该要把分辨率设置成电视同比例的分辨率了 接单MIPI屏不能使用MIPI TX/RX通道,使用单MIPI屏只能接MIPI TX通道!!!!! 请问楼主的mipi屏点亮了吗? 单MIPI接TX0,正面插孔那族