|
发表于 2017-9-18 12:00:21
只看该作者
板凳
/ {
/* about mipi */
disp_mipi_init: mipi_dsi_init{
compatible = "rockchip,mipi_dsi_init";
rockchip,screen_init = <1>;
rockchip,dsi_lane = <4>;
rockchip,dsi_hs_clk = <470>;
rockchip,mipi_dsi_num = <1>;
};
disp_mipi_power_ctr: mipi_power_ctr {
compatible = "rockchip,mipi_power_ctr";
mipi_lcd_rst:mipi_lcd_rst{
compatible = "rockchip,lcd_rst";
rockchip,gpios = <&gpio7 GPIO_A1 GPIO_ACTIVE_LOW>;
rockchip,delay = <180>;
};
mipi_lcd_en:mipi_lcd_en{
compatible = "rockchip,lcd_en";
rockchip,gpios = <&gpio7 GPIO_A2 GPIO_ACTIVE_HIGH>;
rockchip,delay = <100>;
};
};
disp_mipi_init_cmds: screen-on-cmds {
compatible = "rockchip,screen-on-cmds";
rockchip,on-cmds1 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0x00 0x00>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds2 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x39 0xff 0x12 0x89 0x01>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds3 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0x00 0x80>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds4 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x39 0xff 0x12 0x89>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds5 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0x00 0x90>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds6 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0xff 0xb0>;
rockchip,cmd_delay = <5>;
};
//----------------panel setting
rockchip,on-cmds7 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0x00 0x80>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds8 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x39 0xc0 0x4a 0x00 0x10 0x10 0x96 0x01 0x68 0x40>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds9 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0x00 0x90>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds10 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x39 0xc0 0x3b 0x01 0x09>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds11 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0x00 0x8c>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds12 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0xc0 0x00>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds13 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0x00 0x80>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds14 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0xc1 0x33>;
rockchip,cmd_delay = <5>;
};
//----------------power-setting
rockchip,on-cmds15 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0x00 0x85>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds16 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x39 0xc5 0x0a 0x0a 0x46>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds17 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0x00 0x00>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds18 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x39 0xd8 0x27 0x27>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds19 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0x00 0x00>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds20 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0xd9 0x80>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds21 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0x00 0x01>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds22 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0xd9 0x67>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds23 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0x00 0x84>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds24 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0xc4 0x02>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds25 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0x00 0x93>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds26 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0xc0 0x04>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds27 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0x00 0x96>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds28 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0xf5 0xe7>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds29 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0x00 0xa0>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds30 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0xf5 0x4a>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds31 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0x00 0x8a>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds32 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0xc0 0x11>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds33 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0x00 0x83>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds34 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0xf5 0x81>;
rockchip,cmd_delay = <5>;
};
//----------------------for power ic----------------
rockchip,on-cmds35 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0x00 0x90>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds36 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x39 0xc4 0x96 0x05>;
rockchip,cmd_delay = <5>;
};
//----------------------panel timing state control---------
rockchip,on-cmds37 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0x00 0x80>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds38 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x39 0xcb 0x14 0x14 0x14 0x00 0x00 0x14 0x14 0x14 0x14 0x00 0x00 0x00 0x00 0x00 0x00>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds39 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0x00 0x90>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds40 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x39 0xcb 0x14 0x00 0x00 0x00 0x00 0x00 0x00>;
rockchip,cmd_delay = <5>;
};
//-------------panel pad mapping control
rockchip,on-cmds41 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0x00 0x80>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds42 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x39 0xcc 0x06 0x1d 0x1e 0x00 0x00 0x10 0x0e 0x0c 0x0a 0x00 0x00 0x00 0x000 0x00>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds43 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0x00 0x90>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds44 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x39 0xcc 0x02 0x00 0x00 0x00 0x00 0x00 0x00 0x05 0x1d 0x1e 0x00 0x00 0x0f 0x0d 0x0b>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds45 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0x00 0xa0>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds46 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x39 0xcc 0x09 0x00 0x00 0x00 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds47 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0x00 0xb0>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds48 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x39 0xcc 0x01 0x1e 0x1d 0x00 0x00 0x09 0x0b 0x0d 0x0f 0x00 0x00 0x00 0x00 0x00>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds49 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0x00 0xc0>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds50 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x39 0xcc 0x05 0x00 0x00 0x00 0x00 0x00 0x06 0x02 0x1e 0x1d 0x00 0x00 0x0a 0x0c 0x0e>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds51 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0x00 0xd0>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds52 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x39 0xc0 0x10 0x00 0x06 0x00 0x00 0x00 0x06 0x00 0x00 0x00 0x00 0x00 0x00>;
rockchip,cmd_delay = <5>;
};
//----panel timing setting
rockchip,on-cmds53 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0x00 0x80>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds54 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x39 0xce 0x87 0x05 0x10 0x86 0x00 0x00>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds55 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0x00 0x90>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds56 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x39 0xce 0x34 0xff 0x10 0x05 0x00 0x00 0x00 0x00 0x00>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds57 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0x00 0xa0>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds58 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x39 0xce 0x30 0x83 0x88 0x89 0x16 0x00 0x82 0x87 0x89 0x81 0x86 0x89 0x80 0x85 0x89>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds59 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0x00 0xb0>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds60 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x39 0xce 0x30 0x00 0x84 0x89 0x16 0x00 0x01 0x83 0x89 0x02 0x82 0x89 0x03 0x81 0x89>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds61 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0x00 0xf0>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds62 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x39 0xce 0x01 0x20 0xc1 0x81 0x00 0x20>;
rockchip,cmd_delay = <5>;
};
//-------gamma-----
rockchip,on-cmds63 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0x00 0x00>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds64 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x39 0xe1 0x05 0x1b 0x30 0x44 0x52 0x72 0x71 0x88 0x6e 0x5b 0x65 0x4d 0x37 0x22 0x13 0x00>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds65 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0x00 0x00>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds66 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x39 0xe2 0x05 0x1b 0x30 0x44 0x52 0x72 0x71 0x88 0x6e 0x5b 0x65 0x4d 0x37 0x22 0x13 0x00>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds67 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x15 0x00 0x00>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds68 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x39 0xff 0xff 0xff 0xff>;
rockchip,cmd_delay = <5>;
};
rockchip,on-cmds69 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x05 0x11 0x00>;
rockchip,cmd_delay = <200>;
};
rockchip,on-cmds70 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x05 0x29 0x00>;
rockchip,cmd_delay = <5>;
};
/* rockchip,on-cmds71 {
compatible = "rockchip,on-cmds";
rockchip,cmd_type = <LPDT>;
rockchip,dsi_id = <0>;
rockchip,cmd = <0x39 0x01>;
rockchip,cmd_delay = <20>;
};*/
};
disp_timings: display-timings {
native-mode = <&timing0>;
compatible = "rockchip,display-timings";
timing0: timing0 {
screen-type = <SCREEN_MIPI>;
//screen-type = <SCREEN_DUAL_MIPI>;
//lvds-format = <LVDS_8BIT_2>;
out-face = <OUT_P888>;
//color-mode = <COLOR_RGB>;
clock-frequency = <67000000>;
hactive = <720>;
vactive = <1280>;
hsync-len = <20>;
hback-porch = <70>;
hfront-porch = <70>;
vsync-len = <4>;
vback-porch = <12>;
vfront-porch = <15>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <1>;
swap-rb = <0>;
swap-rg = <0>;
swap-gb = <0>;
};
};
};
&dsihost0 {
status = "okay";
};
|
|