之前在Qualcomm平台bring up新 panel ,IC chip 為 HX8394F
其背光控制方式是由 panel 經由一根 pwm pin拉到 host CPU端,HOST端的 led driver IC在根據pwm的強度去控制panel led背光的亮度
以下將可以點亮的 參數做一下備份
===
/* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
/*---------------------------------------------------------------------------
* This file is autogenerated file using gcdb parser. Please do not edit it.
* Update input XML file to add a new entry or update variable in this file
* VERSION = "1.0"
*---------------------------------------------------------------------------*/
&mdss_mdp {
dsi_ili9806e_fwvga_video: qcom,mdss_dsi_ili9806e_fwvga_video {
qcom,mdss-dsi-panel-name = "ili9806e fwvga video mode dsi panel";
qcom,mdss-dsi-panel-controller = <&mdss_dsi0>;
qcom,mdss-dsi-panel-type = "dsi_video_mode";
qcom,mdss-dsi-panel-destination = "display_1";
qcom,mdss-dsi-panel-framerate = <60>;
qcom,mdss-dsi-virtual-channel-id = <0>;
qcom,mdss-dsi-stream = <0>;
qcom,mdss-dsi-panel-width = <720>;
qcom,mdss-dsi-panel-height = <1280>;
qcom,mdss-dsi-h-front-porch = <16>; //<52>; //
qcom,mdss-dsi-h-back-porch = <22>; //<100>; //
qcom,mdss-dsi-h-pulse-width = <10>; //<24>; //
qcom,mdss-dsi-h-sync-skew = <0>; //
qcom,mdss-dsi-v-back-porch = <12>; //<20>; //
qcom,mdss-dsi-v-front-porch = <15>; //<8>; //
qcom,mdss-dsi-v-pulse-width = <4>; //<4>; //
qcom,mdss-dsi-h-left-border = <0>;
qcom,mdss-dsi-h-right-border = <0>;
qcom,mdss-dsi-v-top-border = <0>;
qcom,mdss-dsi-v-bottom-border = <0>;
qcom,mdss-dsi-bpp = <24>;
qcom,mdss-dsi-color-order = <0>; //DSI_RGB_SWAP_RGB 0
qcom,mdss-dsi-underflow-color = <0xff>;
qcom,mdss-dsi-border-color = <0>;
qcom,mdss-dsi-on-command = [
39 01 00 00 00 00 04
b9 ff 83 94 // check
39 01 00 00 00 00 07 // set MIPI
ba 61 03 68 6b // 63 for 4 lanes , 61 for 2 lanes
b2 c0
39 01 00 00 00 00 0b
b1 50 12 72 09
33 54 81 31 69
2f
39 01 00 00 00 00 07
b2 00 80 64 0e
0d 2f
39 01 00 00 00 00 16 // set CYC
b4 6c 6d 6c 6d
6c 6d 01 01 ff
75 00 3f 6c 6d
6c 6d 6c 6d 01
01 ff
39 01 00 00 00 00 22 //set GIP
d3 00 00 07 07
40 07 10 00 08
10 08 00 08 54
15 0e 05 0e 02
15 06 05 06 47
44 0a 0a 4b 10
07 07 0e 40
39 01 00 00 00 00 2d //set forward GIP
d5 1a 1a 1b 1b
00 01 02 03 04
05 06 07 08 09
0a 0b 24 25 18
18 26 27 18 18
18 18 18 18 18
18 18 18 18 18
18 18 18 18 20
21 18 18 18 18
39 01 00 00 00 00 2d //set backward GIP
d6 1a 1a 1b 1b
0b 0a 09 08 07
06 05 04 03 02
01 00 21 20 18
18 27 26 18 18
18 18 18 18 18
18 18 18 18 18
18 18 18 18 25
24 18 18 18 18
39 01 00 00 00 00 3b //set GAMMA
e0 00 0c 19 20
23 26 29 28 51
61 70 6f 76 86
89 8d 99 9a 95
a1 b0 57 55 58
5c 5e 64 6b 7f
00 0c 19 20 23
26 29 28 51 61
70 6f 76 86 89
8d 99 9a 95 a1
b0 57 55 58 5c
5e 64 6b 7f
39 01 00 00 00 00 03
c0 1f 73 //set C0
15 01 00 00 00 00 02 // set panel
cc 0b
15 01 00 00 00 00 02 //set D4
d4 02
15 01 00 00 00 00 02
35 00
39 01 00 00 00 00 03
b6 7d 7d
//set address mode , flip hor+ flip vertical
39 01 00 00 00 00 02
36 03
//set CABC UI mode
15 01 00 00 05 00 02
51 66
39 01 00 00 05 00 08
c9 13 00 00 1e //c9 13 00 2e 1e //change 2e to 00 for PWM 40Khz
b1 1e 00
15 01 00 00 05 00 02
55 01
15 01 00 00 05 00 02
53 24
05 01 00 00 96 00 02 11 00 // sleep out,delay 150ms
05 01 00 00 32 00 02 29 00 // display on
];
qcom,mdss-dsi-off-command = [
05 01 00 00 0a 00 02 28 00
05 01 00 00 05 00 02 10 00];
qcom,mdss-dsi-on-command-state = "dsi_lp_mode";
qcom,mdss-dsi-off-command-state = "dsi_hs_mode";
qcom,mdss-dsi-h-sync-pulse = <0>; //0 = Don't send hsa/he following vs/ve packet(default)
//1 = Send hsa/he following vs/ve packet
qcom,mdss-dsi-traffic-mode = <0>; //DSI_NON_BURST_SYNCH_PULSE 0,DSI_NON_BURST_SYNCH_EVENT 1, DSI_BURST_MODE 2
qcom,mdss-dsi-lane-map = <0>; //DSI_LANE_MAP_0123
qcom,mdss-dsi-bllp-eof-power-mode;
qcom,mdss-dsi-bllp-power-mode;
qcom,mdss-dsi-lane-0-state;
qcom,mdss-dsi-lane-1-state;
qcom,mdss-dsi-panel-timings = [c5 2c 1e 00 5a 5c 22 30 25 03 04 00]; //[79 1a 12 00 3e 42 16 1e 15 03 04 00]; //
qcom,mds-dsi-t-clk-post = <3>; //<0x04>;
qcom,mdss-dsi-t-clk-pre = <37>; //<0x1b>;
qcom,mdss-dsi-bl-min-level = <1>;
qcom,mdss-dsi-bl-max-level = <255>;
qcom,mdss-dsi-dma-trigger = "trigger_sw";
qcom,mdss-dsi-mdp-trigger = <0>; // "none"; ??
qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs";
//qcom,mdss-dsi-lp11-init;
qcom,mdss-dsi-reset-sequence = <1 20>,<0 1>, <1 60>; //<1 20>, <0 2>, <1 20>;
};
};
===
其中的
---
//set CABC UI mode
15 01 00 00 05 00 02
51 66
39 01 00 00 05 00 08
c9 13 00 00 1e //c9 13 00 2e 1e //change 2e to 00 for PWM 40Khz
b1 1e 00
15 01 00 00 05 00 02
55 01
15 01 00 00 05 00 02
53 24
---
因為板子硬體設計,必須設定 pwm clock為 40KHz
而
--
//set address mode , flip hor+ flip vertical
39 01 00 00 00 00 02
36 03
--
是將螢幕顯示 flip + mirror (翻轉180度)
以上在此做紀錄
全站熱搜
留言列表