Ok, hopefully this patch makes it through this forum without serious molestation;
Note: I think that ONLY the changes to the apq8016-sbc.dtsi actually made any impact
Note2: This patch should not work… yet it does.
From 69df9a20a022f164e4e0ec7d1c836d7dfaab94ef Mon Sep 17 00:00:00 2001
Date: Tue, 21 Jul 2015 09:10:27 -0400
Subject: [PATCH] Display timings 1280x800 chalkboard 7
---
arch/arm/boot/dts/qcom/apq8016-sbc.dtsi | 10 +++++-----
drivers/video/msm/mdss/adv7533_dsi2hdmi.c | 16 ++++++++--------
2 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/arch/arm/boot/dts/qcom/apq8016-sbc.dtsi b/arch/arm/boot/dts/qcom/apq8016-sbc.dtsi
index df2b260..947b02d 100644
--- a/arch/arm/boot/dts/qcom/apq8016-sbc.dtsi
+++ b/arch/arm/boot/dts/qcom/apq8016-sbc.dtsi
@@ -83,7 +83,7 @@
adv7533@39 {
compatible = "adv7533";
reg = <0x39>;
- adv7533,video-mode = <3>; /* 3 = 1080p */
+ adv7533,video-mode = <3>; /* 2 = 720p */
adv7533,main-addr = <0x39>;
adv7533,cec-dsi-addr = <0x3C>;
adv7533,audio = <1>;
@@ -378,7 +378,7 @@
qcom,mdss-dsi-virtual-channel-id = <0>;
qcom,mdss-dsi-stream = <0>;
qcom,mdss-dsi-panel-width = <1280>;
- qcom,mdss-dsi-panel-height = <720>;
+ qcom,mdss-dsi-panel-height = <800>;
qcom,mdss-dsi-h-front-porch = <110>;
qcom,mdss-dsi-h-back-porch = <220>;
qcom,mdss-dsi-h-pulse-width = <40>;
@@ -408,8 +408,8 @@
qcom,mdss-dsi-lane-1-state;
qcom,mdss-dsi-lane-2-state;
qcom,mdss-dsi-panel-timings = [A4 24 18 00 4E 52 1C 28 1C 03 04 00];
- qcom,mdss-dsi-t-clk-post = <0x03>;
- qcom,mdss-dsi-t-clk-pre = <0x20>;
+ qcom,mdss-dsi-t-clk-post = <0x04>;
+ qcom,mdss-dsi-t-clk-pre = <0x1C>;
qcom,mdss-dsi-bl-min-level = <1>;
qcom,mdss-dsi-bl-max-level = <4095>;
qcom,mdss-dsi-dma-trigger = "trigger_sw";
@@ -417,7 +417,7 @@
qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
qcom,mdss-dsi-reset-sequence = <1 20>, <0 1>, <1 20>;
qcom,mdss-pan-physical-width-dimension = <160>;
- qcom,mdss-pan-physical-height-dimension = <90>;
+ qcom,mdss-pan-physical-height-dimension = <100>;
qcom,mdss-dsi-force-clock-lane-hs;
qcom,mdss-dsi-always-on;
};
diff --git a/drivers/video/msm/mdss/adv7533_dsi2hdmi.c b/drivers/video/msm/mdss/adv7533_dsi2hdmi.c
index 9f8ea01..7397032 100644
--- a/drivers/video/msm/mdss/adv7533_dsi2hdmi.c
+++ b/drivers/video/msm/mdss/adv7533_dsi2hdmi.c
@@ -216,20 +216,20 @@ static struct adv7533_reg_cfg tg_cfg_720p[] = {
{ADV7533_MAIN, 0x17, 0x02},
/* Control for Pixel Clock Divider */
{ADV7533_CEC_DSI, 0x16, 0x24},
- /* h_width 0x898 2200*/
+ /* h_width 0x672 1650*/
{ADV7533_CEC_DSI, 0x28, 0x67},
{ADV7533_CEC_DSI, 0x29, 0x20},
- /* hsync_width 0x2C 44*/
+ /* hsync_width 0x28 40*/
{ADV7533_CEC_DSI, 0x2A, 0x02},
{ADV7533_CEC_DSI, 0x2B, 0x80},
- /* hfp 0x58 88 */
+ /* hfp 0x6E 110 */
{ADV7533_CEC_DSI, 0x2C, 0x06},
{ADV7533_CEC_DSI, 0x2D, 0xE0},
- /* hbp 0x94 148 */
+ /* hbp 0xDC 220 */
{ADV7533_CEC_DSI, 0x2E, 0x0D},
{ADV7533_CEC_DSI, 0x2F, 0xC0},
- /* v_total 0x465 1125 */
- {ADV7533_CEC_DSI, 0x30, 0x2E},
+ /* v_total 0x33E 830 */
+ {ADV7533_CEC_DSI, 0x30, 0x33},
{ADV7533_CEC_DSI, 0x31, 0xE0},
/* vsync_width 0x05 5*/
{ADV7533_CEC_DSI, 0x32, 0x00},
@@ -237,7 +237,7 @@ static struct adv7533_reg_cfg tg_cfg_720p[] = {
/* vfp 0x04 4 */
{ADV7533_CEC_DSI, 0x34, 0x00},
{ADV7533_CEC_DSI, 0x35, 0x50},
- /* vbp 0x24 36 */
+ /* vbp 0x14 20 */
{ADV7533_CEC_DSI, 0x36, 0x01},
{ADV7533_CEC_DSI, 0x37, 0x40},
/* Test Pattern Disable (0x55[7] = 0) */
@@ -267,7 +267,7 @@ static struct adv7533_reg_cfg tg_cfg_pattern_720p[] = {
{ADV7533_CEC_DSI, 0x2E, 0x0D},
{ADV7533_CEC_DSI, 0x2F, 0xC0},
/* v_total 0x465 1125 */
- {ADV7533_CEC_DSI, 0x30, 0x2E},
+ {ADV7533_CEC_DSI, 0x30, 0x33},
{ADV7533_CEC_DSI, 0x31, 0xE0},
/* vsync_width 0x05 5*/
{ADV7533_CEC_DSI, 0x32, 0x00},
--
libgit2 0.21.4