[PATCH v2 2/3] drm/mediatek: enhance the HDMI driving current

2016-07-27 Thread Bibby Hsieh
From: Junzhi Zhao <junzhi.z...@mediatek.com> In order to improve 4K resolution performance, we have to enhance the HDMI driving currend when clock rate is greater than 165MHz. Signed-off-by: Junzhi Zhao Signed-off-by: Bibby Hsieh --- drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c

[PATCH v2 1/3] drm/mediatek: do mtk_hdmi_send_infoframe after HDMI clock enable

2016-07-27 Thread Bibby Hsieh
From: Junzhi Zhao <junzhi.z...@mediatek.com> The mtk_hdmi_send_infoframe have to be run after PLL and PIXEL clock of HDMI enable. Make sure that HDMI inforframes can be sent successfully. Signed-off-by: Junzhi Zhao Signed-off-by: Bibby Hsieh --- drivers/gpu/drm/mediatek/mtk_hdmi.c

[PATCH v2 0/3] MT8173 HDMI 4K support

2016-07-27 Thread Bibby Hsieh
/patch/9249445/ (arm64: dts: mt8173: add mmsel clocks for 4K support) Thank you. Bibby Hsieh Junzhi Zhao (3): drm/mediatek: do mtk_hdmi_send_infoframe after HDMI clock enable drm/mediatek: enhance the HDMI driving current drm/mediatek: fix the wrong pixel clock when resolution is 4K drivers

[PATCH 3/4] drm/mediatek: fix the wrong pixel clock when resolution is 4K

2016-07-25 Thread Bibby Hsieh
Hi, CK, Thanks for your comments. On Mon, 2016-07-25 at 14:49 +0800, CK Hu wrote: > Hi, Bibby: > > On Mon, 2016-07-25 at 14:24 +0800, Bibby Hsieh wrote: > > Hi, CK, > > > > Thanks for your comments. > > > > On Wed, 2016-07-20 at 15:57 +0800, CK Hu wr

[PATCH 3/4] drm/mediatek: fix the wrong pixel clock when resolution is 4K

2016-07-25 Thread Bibby Hsieh
Hi, Philipp, Thanks for your comment. On Wed, 2016-07-20 at 11:41 +0200, Philipp Zabel wrote: > Am Mittwoch, den 20.07.2016, 12:03 +0800 schrieb Bibby Hsieh: > > From: Junzhi Zhao > > > > Pixel clock should be 297MHz when resolution is 4K. > > > > Signed-of

[PATCH 3/4] drm/mediatek: fix the wrong pixel clock when resolution is 4K

2016-07-25 Thread Bibby Hsieh
Hi, CK, Thanks for your comments. On Wed, 2016-07-20 at 15:57 +0800, CK Hu wrote: > Hi, Bibby: > > Some comments inline. > > On Wed, 2016-07-20 at 12:03 +0800, Bibby Hsieh wrote: > > From: Junzhi Zhao > > > > Pixel clock should be 297MHz when resolution is 4

[PATCH 2/4] drm/mediatek: enhance the HDMI driving current

2016-07-25 Thread Bibby Hsieh
Hi, CK, I'm appreciate your comment. On Wed, 2016-07-20 at 15:15 +0800, CK Hu wrote: > Hi, Bibby: > > One comment inline. > > On Wed, 2016-07-20 at 12:03 +0800, Bibby Hsieh wrote: > > From: Junzhi Zhao > > > > In order to improve 4K resolution performance

[PATCH v3 1/2] drm/mediatek: Add gamma correction

2016-07-21 Thread Bibby Hsieh
Hi, CK I'm appreciate your comments. On Fri, 2016-07-15 at 17:11 +0800, CK Hu wrote: > Hi, Bibby: > > Some comments inline. > > On Thu, 2016-07-07 at 15:37 +0800, Bibby Hsieh wrote: > > Apply gamma function to correct brightness values. > > It applies arbitrary

[PATCH v3 2/2] drm/mediatek: set mt8173 dithering function

2016-07-21 Thread Bibby Hsieh
Hi, CK I'm appreciate your comments. On Mon, 2016-07-18 at 10:33 +0800, CK Hu wrote: > Hi, Bibby: > > Some comments inline. > > On Thu, 2016-07-07 at 15:37 +0800, Bibby Hsieh wrote: > > Some panels only accept bpc (bit per color) 6-bit. > > But, the default bpc

[PATCH 4/4] drm/mediatek: adjust VENCPLL clock for 4K HDMI output

2016-07-20 Thread Bibby Hsieh
if MT8173 display module can support 4K HDMI output, we have to adjust VENCPLL clock from default 660MHz to 800MHz. Signed-off-by: Bibby Hsieh --- drivers/gpu/drm/mediatek/mtk_drm_drv.c |9 + drivers/gpu/drm/mediatek/mtk_drm_drv.h |1 + 2 files changed, 10 insertions(+) diff

[PATCH 3/4] drm/mediatek: fix the wrong pixel clock when resolution is 4K

2016-07-20 Thread Bibby Hsieh
From: Junzhi Zhao <junzhi.z...@mediatek.com> Pixel clock should be 297MHz when resolution is 4K. Signed-off-by: Junzhi Zhao Signed-off-by: Bibby Hsieh --- drivers/gpu/drm/mediatek/mtk_dpi.c | 184 +--- 1 file changed, 131 insertions(+), 53 deletions(-)

[PATCH 2/4] drm/mediatek: enhance the HDMI driving current

2016-07-20 Thread Bibby Hsieh
From: Junzhi Zhao <junzhi.z...@mediatek.com> In order to improve 4K resolution performance, we have to enhance the HDMI driving currend when clock rate is greater than 165MHz. Signed-off-by: Junzhi Zhao Signed-off-by: Bibby Hsieh --- drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c

[PATCH 1/4] drm/mediatek: do mtk_hdmi_send_infoframe after HDMI clock enable

2016-07-20 Thread Bibby Hsieh
From: Junzhi Zhao <junzhi.z...@mediatek.com> The mtk_hdmi_send_infoframe have to be run after PLL and PIXEL clock of HDMI enable. Make sure that HDMI inforframes can be sent successfully. Signed-off-by: Junzhi Zhao Signed-off-by: Bibby Hsieh --- drivers/gpu/drm/mediatek/mtk_hdmi.c

[PATCH 0/4] MT8173 HDMI 4K support

2016-07-20 Thread Bibby Hsieh
when resolution is 4K. 4) Adjust VENCPLL clock. Bibby Hsieh (1): drm/mediatek: adjust VENCPLL clock for 4K HDMI output Junzhi Zhao (3): drm/mediatek: do mtk_hdmi_send_infoframe after HDMI clock enable drm/mediatek: enhance the HDMI driving current drm/mediatek: fix the wrong pixel clock

[PATCH v3 2/2] drm/mediatek: set mt8173 dithering function

2016-07-07 Thread Bibby Hsieh
bit to LSB_ERR_SHIFT and ADD_LSHIFT bits respectively. 3. Then, set the OD or GAMMA to dithering mode depends on path-1 or path-2. Signed-off-by: Bibby Hsieh --- drivers/gpu/drm/mediatek/mtk_disp_ovl.c |3 +- drivers/gpu/drm/mediatek/mtk_disp_rdma.c|3 +- drivers/gpu/drm/media

[PATCH v3 1/2] drm/mediatek: Add gamma correction

2016-07-07 Thread Bibby Hsieh
Apply gamma function to correct brightness values. It applies arbitrary mapping curve to compensate the incorrect transfer function of the panel. Signed-off-by: Bibby Hsieh --- drivers/gpu/drm/mediatek/mtk_drm_crtc.c |8 +++ drivers/gpu/drm/mediatek/mtk_drm_crtc.h |1 + drivers

[PATCH v3 0/2] drm/mediatek: MT8173 gamma & dither support

2016-07-07 Thread Bibby Hsieh
This is MT8173 gamma & dither support PATCH v3, based on 4.7-rc1. Changes since v2: -Modify defines to match the register field names in the MT8173 datasheet -Made dithering function support hardware mirroring well on two monitor. Bibby Hsieh (2): drm/mediatek: Add gamma correction

[GIT PULL] drm/mediatek: MT8173 gamma & dither support

2016-06-27 Thread Bibby Hsieh
On Mon, 2016-06-27 at 12:20 +0200, Matthias Brugger wrote: > > On 06/24/2016 09:27 AM, Bibby Hsieh wrote: > > Hi Dave, > > > > Please consider merging this tag, which contains the v2 MT8173 gamma & > > dither function patches I sent on 2016-06-17, rebased o

[GIT PULL] drm/mediatek: MT8173 gamma & dither support

2016-06-24 Thread Bibby Hsieh
-Removed the bpc variable from mtk_drm_crtc struct. ----- Bibby Hsieh (2): drm/mediatek: Add gamma correction drm/mediatek: set mt8173 dithering function drivers/gpu/drm/mediatek/mtk_disp_ovl.c |3 +- drivers/gpu/drm/

[PATCH v2 2/2] drm/mediatek: set mt8173 dithering function

2016-06-17 Thread Bibby Hsieh
bit to LSB_ERR_SHIFT and ADD_LSHIFT bits respectively. 3. Then, set the OD or GAMMA to dithering mode depends on path-1 or path-2. Signed-off-by: Bibby Hsieh --- drivers/gpu/drm/mediatek/mtk_disp_ovl.c |3 +- drivers/gpu/drm/mediatek/mtk_disp_rdma.c|3 +- drivers/gpu/drm/media

[PATCH v2 1/2] drm/mediatek: Add gamma correction

2016-06-17 Thread Bibby Hsieh
Apply gamma function to correct brightness values. It applies arbitrary mapping curve to compensate the incorrect transfer function of the panel. Signed-off-by: Bibby Hsieh --- drivers/gpu/drm/mediatek/mtk_drm_crtc.c |8 +++ drivers/gpu/drm/mediatek/mtk_drm_crtc.h |1 + drivers

[PATCH v2 0/2] drm/mediatek: MT8173 gamma & dither support

2016-06-17 Thread Bibby Hsieh
bpc variable from mtk_drm_crtc struct. Bibby Hsieh (2): drm/mediatek: Add gamma correction drm/mediatek: set mt8173 dithering function drivers/gpu/drm/mediatek/mtk_disp_ovl.c |3 +- drivers/gpu/drm/mediatek/mtk_disp_rdma.c|3 +- drivers/gpu/drm/mediatek/mtk_drm_crtc.c |

[PATCH 1/2] drm/mediatek: Add gamma correction

2016-06-16 Thread Bibby Hsieh
Hi, Daniel, Thank you for your suggestion, I will modify that to use the atomic color management. Bibby On Tue, 2016-06-14 at 07:43 +0200, Daniel Vetter wrote: > On Tue, Jun 14, 2016 at 10:55:52AM +0800, Bibby Hsieh wrote: > > Apply gamma function to correct brightness values. >

[PATCH 2/2] drm/mediatek: set mt8173 dithering function

2016-06-14 Thread Bibby Hsieh
bit to LSB_ERR_SHIFT and ADD_LSHIFT bits respectively. 3. Then, set the OD or GAMMA to dithering mode depends on path-1 or path-2. Signed-off-by: Bibby Hsieh --- drivers/gpu/drm/mediatek/mtk_disp_ovl.c |3 +- drivers/gpu/drm/mediatek/mtk_disp_rdma.c|3 +- drivers/gpu/drm/media

[PATCH 1/2] drm/mediatek: Add gamma correction

2016-06-14 Thread Bibby Hsieh
Apply gamma function to correct brightness values. It applies arbitrary mapping curve to compensate the incorrect transfer function of the panel. Signed-off-by: Bibby Hsieh --- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 12 ++ drivers/gpu/drm/mediatek/mtk_drm_crtc.h |1

<    1   2   3