[PATCH v8.1 2/2] dt-bindings: add document for Innosilicon HDMI on Rockchip platform

2016-01-29 Thread Yakir Yang
Signed-off-by: Yakir Yang Acked-by: Rob Herring --- Changes in v8.1: - Remove dumplicate Signed-off which add at the v8 (Mark) Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: - Add the Acked-by tags from Rob

[PATCH v3 0/4] Add PSR function support for Analogix/Rockchip DP

2016-07-01 Thread Yakir Yang
ver. Changes in v2: - Introduce in v2, split VOP line flag changes out - introduce in v2, splite the common Analogix DP changes out - remove vblank notify out (Daniel) - create a psr_active() callback in vop data struct. Yakir Yang (4): drm/rockchip: vop: export line flag function drm/rockchi

[PATCH v3 1/4] drm/rockchip: vop: export line flag function

2016-07-01 Thread Yakir Yang
ested in the vertical blanking period, then driver could set the line number to zero. This patch have exported a symbol that allow other driver to listen the line flag event with given timeout limit: - rockchip_drm_wait_line_flag() Signed-off-by: Yakir Yang --- Changes in v3: - Expor

[PATCH v3 2/4] drm/rockchip: add an common abstracted PSR driver

2016-07-01 Thread Yakir Yang
state. Fb driver would call the flush interface in 'fb->dirty' callback, this helper function would force all PSR enabled encoders to exit from PSR for 3 seconds. Signed-off-by: Yakir Yang --- Changes in v3: - split the psr flow into an common abstracted PSR driver - implement t

[PATCH v3 3/4] drm/bridge: analogix_dp: add the PSR function support

2016-07-01 Thread Yakir Yang
: - analogix_dp_active_psr() - analogix_dp_inactive_psr() Signed-off-by: Yakir Yang --- Changes in v3: - split analogix_dp_enable_psr(), make it more clearly analogix_dp_detect_sink_psr() analogix_dp_enable_sink_psr() - remove some nosie register setting comments Changes in v2: - introduce in v2, splite

[PATCH v3 4/4] drm/rockchip: analogix_dp: implement PSR function

2016-07-01 Thread Yakir Yang
Alway enable the PSR function for Rockchip analogix_dp driver. If panel don't support PSR, then the core analogix_dp would ignore this setting. Signed-off-by: Yakir Yang --- Changes in v3: - split the common psr logic into a seperate driver, make this to a simple sub-psr device d

[GIT PULL] drm/bridge: analogix-dp: misc fixes & add RK3399 eDP support

2016-07-06 Thread Yakir Yang
9 VOP thread - Apply ShunQian Zheng's RK3399 IOMMU thread - Directly update the i2c & rk808 driver to our develop branch - Directly update the dtsi to our develop branch [0]: https://lkml.org/lkml/2016/6/29/186 [1]: https://github.com/yakir-Yang/linux/tree/test/analogix-dp-20160705 Thanks,

[PATCH v3 4/6] drm/panel: simple: Add support for Samsung LSN122DL01-C01 2560x1600 panel

2016-07-08 Thread Yakir Yang
Doug, On 06/14/2016 01:00 AM, Doug Anderson wrote: > Yakir, > > On Sat, Jun 11, 2016 at 7:56 PM, Yakir Yang wrote: >> The Samsung LSN122DL01-C01 is an 12.2" 2560x1600 (WQXGA) TFT-LCD panel >> connected using eDP interfaces. >> >> Signed-off-by: Yakir Yang

[PATCH v3 2/4] drm/rockchip: add an common abstracted PSR driver

2016-07-08 Thread Yakir Yang
Sean, On 07/02/2016 02:00 AM, Sean Paul wrote: > On Fri, Jul 1, 2016 at 5:19 AM, Yakir Yang wrote: >> The PSR driver have exported four symbols for specific device driver: >> - rockchip_drm_psr_register() >> - rockchip_drm_psr_unregister() >>

[PATCH v3 3/4] drm/bridge: analogix_dp: add the PSR function support

2016-07-08 Thread Yakir Yang
Sean, Thanks for your review. On 07/02/2016 03:46 AM, Sean Paul wrote: > On Fri, Jul 1, 2016 at 5:19 AM, Yakir Yang wrote: >> The full name of PSR is Panel Self Refresh, panel device could refresh >> itself with the hardware framebuffer in panel, this would make lots of >&

[PATCH v3 1/4] drm/rockchip: vop: export line flag function

2016-07-08 Thread Yakir Yang
Sean, On 07/01/2016 11:32 PM, Sean Paul wrote: > On Fri, Jul 1, 2016 at 11:30 AM, Sean Paul wrote: >> On Fri, Jul 1, 2016 at 5:19 AM, Yakir Yang wrote: >>> VOP have integrated a hardware counter which indicate the exact display >>> line that vop is scanning. A

[PATCH v3 4/4] drm/rockchip: analogix_dp: implement PSR function

2016-07-08 Thread Yakir Yang
Sean, On 07/02/2016 04:05 AM, Sean Paul wrote: > On Fri, Jul 1, 2016 at 5:19 AM, Yakir Yang wrote: >> Alway enable the PSR function for Rockchip analogix_dp driver. If panel >> don't support PSR, then the core analogix_dp would ignore this setting. >> &g

[PATCH v3 3/4] drm/bridge: analogix_dp: add the PSR function support

2016-07-08 Thread Yakir Yang
On 07/08/2016 10:26 AM, Yakir Yang wrote: > Sean, > > Thanks for your review. > > On 07/02/2016 03:46 AM, Sean Paul wrote: >> On Fri, Jul 1, 2016 at 5:19 AM, Yakir Yang wrote: >>> The full name of PSR is Panel Self Refresh, panel device could refresh >>>

[PATCH v1 0/6] Add RK3399 HDMI Support

2016-07-11 Thread Yakir Yang
Yakir Yang (4): drm/rockchip: dw_hdmi: adjust cklvl & txlvl for RF/EMI drm/rockchip: dw_hdmi: add RK3399 HDMI support drm/rockchip: dw_hdmi: introduce the VPLL clock setting drm/rockchip: dw_hdmi: introduce the pclk for grf .../devicetree/bindings/display/bridge/dw_hdmi.txt |

[PATCH v1 1/6] drm/rockchip: dw_hdmi: Set cur_ctr to 0 always

2016-07-11 Thread Yakir Yang
. Signed-off-by: Douglas Anderson Signed-off-by: Yakir Yang --- drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 16 ++-- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c b/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c index

[PATCH v1 3/6] drm/rockchip: dw_hdmi: Use auto-generated tables

2016-07-11 Thread Yakir Yang
ave been wrong in the old table. Signed-off-by: Douglas Anderson Signed-off-by: Yakir Yang Reviewed-by: Stéphane Marchesin --- drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 130 +++- 1 file changed, 69 insertions(+), 61 deletions(-) diff --git a/drivers/gpu/drm/rockchip/dw

[PATCH v1 2/6] drm/rockchip: dw_hdmi: adjust cklvl & txlvl for RF/EMI

2016-07-11 Thread Yakir Yang
ck voltage and lower data voltage, then we can keep RF/EMI satisfied and single-end & differen test passed. ck: lvl = 9, term=100, vlo = 2.65, vhi=3.12, vswing = 0.47 tx: lvl = 16, term=100, vlo = 2.75, vhi=3.15, vswing = 0.39 Signed-off-by: Yakir Yang Reviewed-by: Douglas Anderson --

[PATCH v1 4/6] drm/rockchip: dw_hdmi: add RK3399 HDMI support

2016-07-11 Thread Yakir Yang
RK3399 and RK3288 shared the same HDMI IP controller, only some light difference with GRF configure. Signed-off-by: Yakir Yang --- .../devicetree/bindings/display/bridge/dw_hdmi.txt | 1 + .../bindings/display/rockchip/dw_hdmi-rockchip.txt | 3 +- drivers/gpu/drm/bridge/dw-hdmi.c

[PATCH v1 5/6] drm/rockchip: dw_hdmi: introduce the VPLL clock setting

2016-07-11 Thread Yakir Yang
For RK3399 HDMI, there is an external clock need for HDMI PHY, and it should keep the same clock rate with VOP DCLK. VPLL have supported the clock for HDMI PHY, but there is no clock divider bewteen VPLL and HDMI PHY. So we need to set the VPLL rate manually in HDMI driver. Signed-off-by: Yakir

[PATCH v1 6/6] drm/rockchip: dw_hdmi: introduce the pclk for grf

2016-07-11 Thread Yakir Yang
For RK3399's GRF module, if we want to operate the graphic related grf registers, we need to enable the pclk_vio_grf which supply power for VIO GRF IOs, so it's better to introduce an optional grf clock in driver. Signed-off-by: Yakir Yang --- .../bindings/display/rockchip/dw_hdmi-ro

[PATCH v3 3/4] drm/bridge: analogix_dp: add the PSR function support

2016-07-13 Thread Yakir Yang
Sean, On 07/12/2016 11:29 PM, Sean Paul wrote: > On Thu, Jul 7, 2016 at 7:26 PM, Yakir Yang wrote: >> Sean, >> >> Thanks for your review. >> >> >> On 07/02/2016 03:46 AM, Sean Paul wrote: >>> On Fri, Jul 1, 2016 at 5:19 AM, Yakir Yang wrote:

[PATCH v3 2/4] drm/rockchip: add an common abstracted PSR driver

2016-07-13 Thread Yakir Yang
Daniel, On 07/12/2016 08:38 PM, Daniel Vetter wrote: > On Fri, Jul 01, 2016 at 02:00:00PM -0400, Sean Paul wrote: >> On Fri, Jul 1, 2016 at 5:19 AM, Yakir Yang wrote: >>> The PSR driver have exported four symbols for specific device driver: >>>

[PATCH v1 4/6] drm/rockchip: dw_hdmi: add RK3399 HDMI support

2016-07-13 Thread Yakir Yang
Philipp, On 07/11/2016 07:51 PM, Philipp Zabel wrote: > Am Montag, den 11.07.2016, 19:05 +0800 schrieb Yakir Yang: >> RK3399 and RK3288 shared the same HDMI IP controller, only some light >> difference with GRF configure. >> >> Signed-off-by: Yakir Yang > Reviewed-

[PATCH v1 5/6] drm/rockchip: dw_hdmi: introduce the VPLL clock setting

2016-07-13 Thread Yakir Yang
Heiko, On 07/12/2016 10:27 PM, Heiko Stübner wrote: > Hi Yakir, > > Am Montag, 11. Juli 2016, 19:05:49 schrieb Yakir Yang: >> For RK3399 HDMI, there is an external clock need for HDMI PHY, >> and it should keep the same clock rate with VOP DCLK. >> >> VPLL have

[PATCH v4 0/4] Add PSR function support for Analogix/Rockchip DP

2016-07-14 Thread Yakir Yang
e driver. Changes in v2: - Introduce in v2, split VOP line flag changes out - introduce in v2, splite the common Analogix DP changes out - remove vblank notify out (Daniel) - create a psr_active() callback in vop data struct. Yakir Yang (4): drm/rockchip: vop: export line flag function drm/roc

[PATCH v4 1/4] drm/rockchip: vop: export line flag function

2016-07-14 Thread Yakir Yang
ested in the vertical blanking period, then driver could set the line number to zero. This patch have exported a symbol that allow other driver to listen the line flag event with given timeout limit: - rockchip_drm_wait_line_flag() Signed-off-by: Yakir Yang --- Changes in v4: - Avoid the

[PATCH v4 2/4] drm/rockchip: add an common abstracted PSR driver

2016-07-14 Thread Yakir Yang
state. Fb driver would call the flush interface in 'fb->dirty' callback, this helper function would force all PSR enabled encoders to exit from PSR for 3 seconds. Signed-off-by: Yakir Yang --- Changes in v4: - Tuck the global "psr_list" & "psr_list_mutex" in

[PATCH v4 3/4] drm/bridge: analogix_dp: add the PSR function support

2016-07-14 Thread Yakir Yang
: - analogix_dp_active_psr() - analogix_dp_inactive_psr() Signed-off-by: Yakir Yang --- Changes in v4: - Downgrade the PSR version print message to debug level. (Sean) - Return 'void' instead of 'int' in analogix_dp_enable_sink_psr(). (Sean) - Delete the unused read dpcd operations in analogi

[PATCH v4 4/4] drm/rockchip: analogix_dp: implement PSR function

2016-07-14 Thread Yakir Yang
Alway enable the PSR function for Rockchip analogix_dp driver. If panel don't support PSR, then the core analogix_dp would ignore this setting. Signed-off-by: Yakir Yang --- Changes in v4: - Return 'void' instead of 'int' in analogix_dp_psr_set(). (Sean) - Pull the 1

[PATCH v4 1/4] drm/rockchip: vop: export line flag function

2016-07-15 Thread Yakir Yang
Sean, On 07/14/2016 10:46 PM, Sean Paul wrote: > On Thu, Jul 14, 2016 at 12:15:44PM +0800, Yakir Yang wrote: >> VOP have integrated a hardware counter which indicate the exact display >> line that vop is scanning. And if we're interested in a specific line, >> we can

[PATCH v4 2/4] drm/rockchip: add an common abstracted PSR driver

2016-07-15 Thread Yakir Yang
Sean, On 07/14/2016 11:14 PM, Sean Paul wrote: > On Thu, Jul 14, 2016 at 12:15:49PM +0800, Yakir Yang wrote: >> The PSR driver have exported four symbols for specific device driver: >> - rockchip_drm_psr_register() >> - rockchip_drm_psr_unregister() >>

[PATCH v4 4/4] drm/rockchip: analogix_dp: implement PSR function

2016-07-15 Thread Yakir Yang
Sean, On 07/14/2016 11:26 PM, Sean Paul wrote: > On Thu, Jul 14, 2016 at 12:15:58PM +0800, Yakir Yang wrote: >> Alway enable the PSR function for Rockchip analogix_dp driver. If panel >> don't support PSR, then the core analogix_dp would ignore this setting. >> &g

[PATCH v4 3/4] drm/bridge: analogix_dp: add the PSR function support

2016-07-15 Thread Yakir Yang
Sean, On 07/14/2016 11:23 PM, Sean Paul wrote: > On Thu, Jul 14, 2016 at 12:15:53PM +0800, Yakir Yang wrote: >> The full name of PSR is Panel Self Refresh, panel device could refresh >> itself with the hardware framebuffer in panel, this would make lots of >> sense to save

[PATCH v4 3/4] drm/bridge: analogix_dp: add the PSR function support

2016-07-15 Thread Yakir Yang
Sean, On 07/15/2016 05:32 PM, Yakir Yang wrote: > Sean, > > On 07/14/2016 11:23 PM, Sean Paul wrote: >> On Thu, Jul 14, 2016 at 12:15:53PM +0800, Yakir Yang wrote: >>> The full name of PSR is Panel Self Refresh, panel device could refresh >>> itself with the ha

[PATCH v4.1 1/4] drm/rockchip: vop: export line flag function

2016-07-15 Thread Yakir Yang
ested in the vertical blanking period, then driver could set the line number to zero. This patch have exported a symbol that allow other driver to listen the line flag event with given timeout limit: - rockchip_drm_wait_line_flag() Signed-off-by: Yakir Yang --- Changes in v4.1: - Remov

[PATCH v4.1 3/4] drm/bridge: analogix_dp: add the PSR function support

2016-07-15 Thread Yakir Yang
: - analogix_dp_active_psr() - analogix_dp_inactive_psr() Signed-off-by: Yakir Yang --- Changes in v4.1: - Take use of existing edp_psr_vsc struct to swap HBx and DBx setting. (Sean) - Remove PSR_VID_CRC_FLUSH setting analogix_dp_enable_psr_crc(). - Add comment about PBx magic numbers. (Sean) Changes in v4

[PATCH v4.1 3/4] drm/bridge: analogix_dp: add the PSR function support

2016-07-16 Thread Yakir Yang
Sean, On 07/15/2016 09:13 PM, Sean Paul wrote: > On Fri, Jul 15, 2016 at 06:55:17PM +0800, Yakir Yang wrote: >> The full name of PSR is Panel Self Refresh, panel device could refresh >> itself with the hardware framebuffer in panel, this would make lots of >> sense to save

[PATCH v4.1 1/4] drm/rockchip: vop: export line flag function

2016-07-16 Thread Yakir Yang
Sean, On 07/15/2016 09:04 PM, Sean Paul wrote: > On Fri, Jul 15, 2016 at 6:55 AM, Yakir Yang wrote: >> VOP have integrated a hardware counter which indicate the exact display >> line that vop is scanning. And if we're interested in a specific line, >> we can set the li

[PATCH v3 1/6] dt-bindings: add LG LP097QX1-SPA1 panel binding

2016-07-19 Thread Yakir Yang
Thierry, On 07/08/2016 05:57 AM, Thierry Reding wrote: > On Thu, Jul 07, 2016 at 11:55:23PM +0200, Thierry Reding wrote: >> On Sun, Jun 12, 2016 at 10:53:30AM +0800, Yakir Yang wrote: >>> The LG LP097QX1-SPA1 is an 9.7", 2048x1536 (QXGA) TFT-LCD panel >>>

[PATCH v1 1/2] drm/panel: simple-panel: add the delay timing for Sharp LQ123P1JX31

2016-07-21 Thread Yakir Yang
: Yakir Yang --- drivers/gpu/drm/panel/panel-simple.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 85143d1..f178998 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel

[PATCH v1 2/2] drm/bridge: analogix_dp: turn off the panel when eDP need to disable

2016-07-21 Thread Yakir Yang
t;detect() callback, so that driver would detect panel status rightly. Signed-off-by: Yakir Yang --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers

[PATCH v1.1 2/2] drm/bridge: analogix_dp: turn off the panel when eDP need to disable

2016-07-21 Thread Yakir Yang
t;detect() callback, so that driver would detect panel status rightly. Signed-off-by: Yakir Yang --- Changes in v1.1: - unprepare the panel at the end of bridge->disable() function drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 22 +++--- 1 file changed, 15 insertions(+),

[PATCH v1 2/2] drm/bridge: analogix_dp: turn off the panel when eDP need to disable

2016-07-22 Thread Yakir Yang
- unprepare the panel at the end of bridge->disable() function In spite of this, I would take your comments with my "v1.1" patch. On 07/21/2016 10:28 PM, Sean Paul wrote: > On Thu, Jul 21, 2016 at 9:14 AM, Yakir Yang wrote: >> Some panels (like Sharp LQ123P1JX31) need to be tu

[PATCH v1 1/2] drm/panel: simple-panel: add the delay timing for Sharp LQ123P1JX31

2016-07-22 Thread Yakir Yang
Sean, On 07/21/2016 10:30 PM, Sean Paul wrote: > On Thu, Jul 21, 2016 at 9:14 AM, Yakir Yang wrote: >> According to page 16 of Sharp LQ123P1JX31 datasheet, we need to add the >> missing delay timing. Panel prepare time should be t1 (0.5ms~10ms) plus >> t3 (0ms~100ms),

[PATCH v2 1/3] drm/panel: simple-panel: add the delay timing for Sharp LQ123P1JX31

2016-07-22 Thread Yakir Yang
: Yakir Yang Reviewed-by: Sean Paul --- Changes in v2: - Add the reviewed tag from Sean. drivers/gpu/drm/panel/panel-simple.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 85143d1..f178998 100644 --- a

[PATCH v2 2/3] drm/bridge: analogix_dp: turn off the panel when eDP need to disable

2016-07-22 Thread Yakir Yang
t;detect() callback, so that driver would detect panel status rightly. Signed-off-by: Yakir Yang --- Changes in v2: - s/Panle/Panel/ (Sean) - Move the drm_panel_ out of a conditional, and throw the return code away (Sean) - Add comments about why we need unprepare the panel in bridge_disab

[PATCH v2 3/3] drm/bridge: analogix_dp: remove the panel prepare/unprepare in suspend/resume

2016-07-22 Thread Yakir Yang
We already manager the panel power status in bridge_disable and connector->detect functions, then we don't need to manager the panel power status at suspend/resume in particular. Signed-off-by: Yakir Yang --- Changes in v2: None drivers/gpu/drm/bridge/analogix/analogix_dp_cor

[PATCH v5 0/4] Add PSR function support for Analogix/Rockchip DP

2016-07-24 Thread Yakir Yang
etting comments - split the common psr logic into a seperate driver, make this to a simple sub-psr device driver. Changes in v2: - Introduce in v2, split VOP line flag changes out - introduce in v2, splite the common Analogix DP changes out - remove vblank notify out (Daniel) - create a ps

[PATCH v5 2/4] drm/rockchip: add an common abstracted PSR driver

2016-07-24 Thread Yakir Yang
would call the encoder registered callback to set the PSR state. Fb driver would call the flush interface in 'fb->dirty' callback, this helper function would force all PSR enabled encoders to exit from PSR for 3 seconds. Signed-off-by: Yakir Yang --- Changes in v5: - Only keep 'psr_l

[PATCH v5 1/4] drm/rockchip: vop: export line flag function

2016-07-24 Thread Yakir Yang
ested in the vertical blanking period, then driver could set the line number to zero. This patch have exported a symbol that allow other driver to listen the line flag event with given timeout limit: - rockchip_drm_wait_line_flag() Signed-off-by: Yakir Yang Reviewed-by: Sean Paul --- Changes

[PATCH v5 3/4] drm/bridge: analogix_dp: add the PSR function support

2016-07-24 Thread Yakir Yang
: - analogix_dp_active_psr() - analogix_dp_inactive_psr() Signed-off-by: Yakir Yang Reviewed-by: Sean Paul --- Changes in v5: - Add reviewed flag from Sean. Changes in v4.1: - Take use of existing edp_psr_vsc struct to swap HBx and DBx setting. (Sean) - Remove PSR_VID_CRC_FLUSH setting

[PATCH v5 4/4] drm/rockchip: analogix_dp: implement PSR function

2016-07-24 Thread Yakir Yang
Alway enable the PSR function for Rockchip analogix_dp driver. If panel don't support PSR, then the core analogix_dp would ignore this setting. Signed-off-by: Yakir Yang Reviewed-by: Sean Paul --- Changes in v5: - Add reviewed flag from Sean. Changes in v4: - Return 'void' inst

[PATCH v4 2/4] drm/rockchip: add an common abstracted PSR driver

2016-07-24 Thread Yakir Yang
Doug, On 07/23/2016 12:04 PM, Doug Anderson wrote: > Yakir, > > On Wed, Jul 13, 2016 at 9:15 PM, Yakir Yang wrote: >> +static void psr_set_state(struct psr_drv *psr, enum psr_state state) >> +{ >> + mutex_lock(&psr->state_mutex); >&

[PATCH v4 2/4] drm/rockchip: add an common abstracted PSR driver

2016-07-24 Thread Yakir Yang
Sean, On 07/14/2016 11:14 PM, Sean Paul wrote: > On Thu, Jul 14, 2016 at 12:15:49PM +0800, Yakir Yang wrote: >> The PSR driver have exported four symbols for specific device driver: >> - rockchip_drm_psr_register() >> - rockchip_drm_psr_unregister() >>

[PATCH v1 2/2] drm/bridge: analogix_dp: turn off the panel when eDP need to disable

2016-07-28 Thread Yakir Yang
Sean, Oops, sorry about miss your suggest :( On 07/22/2016 11:03 PM, Sean Paul wrote: > On Thu, Jul 21, 2016 at 9:00 PM, Yakir Yang wrote: >> Sean, >> >> Thanks for your fast respond :-) >> >> But this patch is not the latest one, I have upgraded this to "

[PATCH v2 0/10] Add RK3399 eDP support and fix some bugs to analogix_dp driver.

2016-06-01 Thread Yakir Yang
Javier, Mark, Inki, Jingoo On 06/01/2016 04:01 AM, Javier Martinez Canillas wrote: > Hello Yakir, > > On 05/27/2016 02:16 AM, Yakir Yang wrote: >> Hi Javier, >> >> On 05/26/2016 08:48 PM, Javier Martinez Canillas wrote: >>> Hello Yakir, >>> >>

[RFC PATCH v1 0/2]

2016-06-01 Thread Yakir Yang
Hi Daniel, On 05/31/2016 10:38 PM, Daniel Vetter wrote: > On Tue, May 31, 2016 at 09:37:36PM +0800, Yakir Yang wrote: >> The full name of PSR is Panel Self Refresh, panel device could refresh >> itself with the hardware framebuffer in panel, this would make a lots >> of se

[RFC PATCH v1 1/2] drm/rockchip: add a notify event about vblank enable/disable

2016-06-01 Thread Yakir Yang
Hi Daniel, On 05/31/2016 10:36 PM, Daniel Vetter wrote: > On Tue, May 31, 2016 at 09:39:19PM +0800, Yakir Yang wrote: >> EDP PSR function is interesting in vblank enable or disable event, >> so it would be great introduce a way to notify encoder about this >> event. >&

[RFC PATCH v1 0/2]

2016-06-01 Thread Yakir Yang
Hi Daniel, On 05/31/2016 10:38 PM, Daniel Vetter wrote: > On Tue, May 31, 2016 at 09:37:36PM +0800, Yakir Yang wrote: >> The full name of PSR is Panel Self Refresh, panel device could refresh >> itself with the hardware framebuffer in panel, this would make a lots >> of se

[PATCH v3] drm/bridge: analogix_dp: Remove duplicated code

2016-08-25 Thread Yakir Yang
be good to be able to > use them instead of duplicating them. > > Signed-off-by: Tomeu Vizoso > Tested-by: Javier Martinez Canillas > Tested-by: Sean Paul > Reviewed-by: Sean Paul > Signed-off-by: Sean Paul > Cc: Javier Martinez Canillas > Cc: Mika Kahola > Cc: Yakir Yang &

[PATCH 3/3] drm/rockchip: Reduce psr flush time to 100ms

2016-08-26 Thread Yakir Yang
Sean, On 08/19/2016 07:34 AM, Sean Paul wrote: > 3 seconds is a bit too conservative, drop this to 100ms for > better power savings. > > Signed-off-by: Sean Paul Reviewed-by: Yakir Yang > --- > drivers/gpu/drm/rockchip/rockchip_drm_psr.c | 2 +- > 1 file changed, 1 ins

[PATCH 2/3] drm/rockchip: Don't key off vblank for psr

2016-08-26 Thread Yakir Yang
een fb_dirty and atomic psr > enable/disable. > > Signed-off-by: Sean Paul Reviewed-by: Yakir Yang Also I have verified this patch on RK3399 Kevin, eDP PSR works rightly, so Tested-by: Yakir Yang - Yakir > --- > drivers/gpu/drm/rockchip/rockchip_drm_fb.c | 2 +- &

[PATCH] drm/bridge: analogix_dp: detect Sink PSR state after configuring the PSR

2016-08-26 Thread Yakir Yang
Make sure the request PSR state could effect in analogix_dp_send_psr_spd() function, or printing the error Sink PSR state if we failed to effect the request PSR setting. Signed-off-by: Yakir Yang --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 6 ++--- drivers/gpu/drm/bridge/analogix

[PATCH] drm/analogix_dp: Ensure the panel is properly prepared/unprepared

2016-08-01 Thread Yakir Yang
Sean, On 07/30/2016 03:16 AM, Sean Paul wrote: > Instead of just preparing the panel on bind, actually prepare/unprepare > during modeset/disable. The panel must be prepared in order to read hpd > status, so we need to refcount the prepares in order to ensure we don't > accidentally turn the panel

[PATCH v3 0/14] Add Analogix Core Display Port Driver

2015-08-19 Thread Yakir Yang
reate devicetree binding for driver. - Remove the clock enable/disbale with "sclk_edp" & "sclk_edp_24m", leave those clock to rockchip dp phy driver. - Add GNU license v2 declared and samsung copyright - Fix compile failed dut to phy_pd_addr variable misspell error Yakir Y

[PATCH v3 01/14] drm: exynos/dp: fix code style

2015-08-19 Thread Yakir Yang
After run "checkpatch.pl -f --subjective" command, I see there are lots of alignment problem in exynos_dp driver, so let just fix them. Signed-off-by: Yakir Yang --- Changes in v3: None Changes in v2: - Take Joe Preches advise, improved commit message more readable, and avoid

[PATCH v2 4/8] drm: rockchip/dp: add rockchip platform dp driver

2015-08-19 Thread Yakir Yang
Hi Thierry When I'm preparing v3 series, I meet some trobules from your comment, wish you could give some advise? ;) 在 2015/8/10 18:00, Thierry Reding 写道: > On Sat, Aug 08, 2015 at 11:54:38AM +0800, Yakir Yang wrote: > [...] >> edp

[PATCH v3 02/14] drm: exynos/dp: convert to drm bridge mode

2015-08-19 Thread Yakir Yang
In order to move exynos dp code to bridge directory, we need to convert driver drm bridge mode first. As dp driver already have a ptn3460 bridge, so we need to move ptn bridge to the next bridge of dp bridge. Signed-off-by: Yakir Yang --- Changes in v3: None Changes in v2: - Take Jingoo Han

[PATCH v3 03/14] drm: bridge: analogix_dp: split exynos dp driver to bridge dir

2015-08-19 Thread Yakir Yang
Split the dp core driver from exynos directory to bridge directory, and rename the core driver to analogix_dp_*, leave the platform code to analogix_dp-exynos. Signed-off-by: Yakir Yang --- Changes in v3: - Take Thierry Reding suggest, move exynos's video_timing code to analogix_dp-e

[PATCH v3 04/14] drm: bridge/analogix_dp: dynamic parse sync_pol & interlace & colorimetry

2015-08-19 Thread Yakir Yang
: Yakir Yang --- Changes in v3: - Take Thierry Reding suggest, dynamic parse video timing info from struct drm_display_mode and struct drm_display_info. Changes in v2: None drivers/gpu/drm/bridge/analogix_dp_core.c | 50 -- drivers/gpu/drm/exynos/analogix_dp-exynos.c | 65

[PATCH v3 05/14] drm: bridge/analogix_dp: fix link_rate & lane_count bug

2015-08-19 Thread Yakir Yang
2Gbps, 2.7Gbps, 5.4Gbps}. Signed-off-by: Yakir Yang --- Changes in v3: - Take Thierry Reding suggest, link_rate and lane_count shouldn't config to the DT property value directly, but we can take those as hardware limite. For example, RK3288 only support 4 physical lanes of 2.7/1.62 Gbps/lan

[PATCH v3 06/14] Documentation: drm/bridge: add document for analogix_dp

2015-08-19 Thread Yakir Yang
Analogix dp driver is split from exynos dp driver, so we just make an copy of exynos_dp.txt, and then simplify exynos_dp.txt Beside update some exynos dtsi file with the latest change according to the devicetree binding documents. Signed-off-by: Yakir Yang --- Changes in v3: - Take Heiko

[PATCH v3 08/14] phy: Add driver for rockchip Display Port PHY

2015-08-19 Thread Yakir Yang
Signed-off-by: Yakir Yang --- Changes in v3: - Take Heiko suggest, add rockchip dp phy driver, collect the phy clocks and power control. Changes in v2: None .../devicetree/bindings/phy/rockchip-dp-phy.txt| 26 +++ drivers/phy/Kconfig| 7 + drivers/phy

[PATCH v3 09/14] drm: bridge/analogix_dp: add platform device type support

2015-08-19 Thread Yakir Yang
Signed-off-by: Yakir Yang --- Changes in v3: None Changes in v2: - Add GNU license v2 declared and samsung copyright drivers/gpu/drm/exynos/analogix_dp-exynos.c | 1 + drivers/gpu/drm/rockchip/analogix_dp-rockchip.c | 1 + include/drm/bridge/analogix_dp.h| 16

[PATCH v3 11/14] drm: bridge: analogix_dp: try force hpd after plug in lookup failed

2015-08-19 Thread Yakir Yang
Some edp screen do not have hpd signal, so we can't just return failed when hpd plug in detect failed. This is an hardware property, so we need add a devicetree property "analogix,need-force-hpd" to indicate this sutiation. Signed-off-by: Yakir Yang --- Changes in v3: - Add "

[PATCH v3 07/14] drm: rockchip/dp: add rockchip platform dp driver

2015-08-19 Thread Yakir Yang
Rockchip have three clocks for dp controller, we leave pclk_edp to analogix_dp driver control, and keep the sclk_edp_24m and sclk_edp in platform driver. Signed-off-by: Yakir Yang --- Changes in v3: - Take Thierry Reding and Heiko suggest, leave "sclk_edp_24m" to rockchip dp phy dr

[PATCH v3 10/14] drm: bridge: analogix_dp: add some rk3288 special registers setting

2015-08-19 Thread Yakir Yang
RK3288 need some special registers setting, we can separate them out by the dev_type of plat_data. Signed-off-by: Yakir Yang --- Changes in v3: None Changes in v2: - Fix compile failed dut to phy_pd_addr variable misspell error drivers/gpu/drm/bridge/analogix_dp_reg.c | 76

[PATCH v3 12/14] drm: bridge/analogix_dp: expand the delay time for hpd detect

2015-08-19 Thread Yakir Yang
Some edp screen with no hpd signal would need some delay time to ensure that screen would be ready for work, so we can expand the delay time in hpd detect function, it works prefectly on my rk3288 sdk board. Signed-off-by: Yakir Yang --- Changes in v3: None Changes in v2: None drivers/gpu/drm

[PATCH v3 13/14] drm: bridge/analogix_dp: move hpd detect to connector detect function

2015-08-19 Thread Yakir Yang
Signed-off-by: Yakir Yang --- Changes in v3: - move dp hpd detect to connector detect function. Changes in v2: None drivers/gpu/drm/bridge/analogix_dp_core.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/bridge/analogix_dp_core.c b/drivers

[PATCH v3 14/14] drm: bridge/analogix_dp: add edid modes parse in get_modes method

2015-08-19 Thread Yakir Yang
Display Port monitor could support kinds of mode which indicate in monitor edid, not just one single display resolution which defined in panel or devivetree property display timing. Signed-off-by: Yakir Yang --- Changes in v3: - Add edid modes parse support Changes in v2: None drivers/gpu/drm

[PATCH v3 0/14] Add Analogix Core Display Port Driver

2015-08-19 Thread Yakir Yang
Hi Dave, On 08/19/2015 06:54 PM, Dave Airlie wrote: > On 20 August 2015 at 00:48, Yakir Yang wrote: >> Hi all, >> The Samsung Exynos eDP controller and Rockchip RK3288 eDP controller >> share the same IP, so a lot of parts can be re-used. I split the common >>

[PATCH v3 0/14] Add Analogix Core Display Port Driver

2015-08-20 Thread Yakir Yang
Hi Jingoo & Archit, On 08/20/2015 12:54 AM, Jingoo Han wrote: > On 2015. 8. 20., at PM 1:29, Archit Taneja wrote: >> Hi, >> >>> On 08/19/2015 08:18 PM, Yakir Yang wrote: >>> >>> Hi all, >>> The Samsung Exynos eDP controller and Rockchi

[PATCH v3 0/14] Add Analogix Core Display Port Driver

2015-08-20 Thread Yakir Yang
Hi Jingoo, On 08/20/2015 01:55 AM, Jingoo Han wrote: > On 2015. 8. 20., at PM 3:23, Yakir Yang wrote: >> Hi Jingoo & Archit, >> >> >>> On 08/20/2015 12:54 AM, Jingoo Han wrote: >>>> On 2015. 8. 20., at PM 1:29, Archit Taneja >>>> wro

HOW TO MAKE SAMPLES DIR IN THE MAINLINE KERNEL TO BE COMPILED AND CREATED ".KO" FILE IN THE SAME DIRECTORY

2015-08-20 Thread Yakir Yang
Hi Ravi, I'm wondering is your e-mail come from eDP thread ? cause I see lots of cc guys some as eDP emails :) And for your question, I am not sure I understand rightly. Do you mean that your ".ko" module not in the same directory with driver source code? If it's your question, I think you can

[PATCH v3 08/14] phy: Add driver for rockchip Display Port PHY

2015-08-20 Thread Yakir Yang
Hi Kishon, On 08/20/2015 01:56 AM, Yakir Yang wrote: > Hi Kishon, > > On 08/19/2015 11:40 PM, Kishon Vijay Abraham I wrote: > [...] >>> [...] >>> +MODULE_DEVICE_TABLE(of, rockchip_dp_phy_dt_ids); >>> + >>> +static struct platform_

[PATCH v3 05/14] drm: bridge/analogix_dp: fix link_rate & lane_count bug

2015-08-20 Thread Yakir Yang
Hi Jingoo, On 08/20/2015 02:22 AM, Jingoo Han wrote: > On 2015. 8. 19., at PM 11:50, Yakir Yang wrote: >> link_rate and lane_count already configed in analogix_dp_set_link_train(), > s/configed/configured > > Also, the commit name such as "fix ... bug" is not good. &g

[PATCH v3 08/14] phy: Add driver for rockchip Display Port PHY

2015-08-20 Thread Yakir Yang
Hi Kishon, On 08/19/2015 11:40 PM, Kishon Vijay Abraham I wrote: > Hi, > > On Wednesday 19 August 2015 08:21 PM, Yakir Yang wrote: >> Signed-off-by: Yakir Yang > where's the commit message? Actually I have no detail words for this, so leave this empty :-) If you think

[PATCH v3 12/14] drm: bridge/analogix_dp: expand the delay time for hpd detect

2015-08-20 Thread Yakir Yang
Hi Jingoo, On 08/20/2015 01:11 AM, Jingoo Han wrote: > On 2015. 8. 19., at PM 11:52, Yakir Yang wrote: >> Some edp screen with no hpd signal would need some delay time >> to ensure that screen would be ready for work, so we can expand >> the delay time in hpd detect functio

[PATCH v3 13/14] drm: bridge/analogix_dp: move hpd detect to connector detect function

2015-08-20 Thread Yakir Yang
Hi Jingoo, On 08/20/2015 02:49 AM, Jingoo Han wrote: > On 2015. 8. 19., at PM 11:52, Yakir Yang wrote: > > What is the reason to make this patch? > > Please make commit message including the reason. Okay, I think the below words would be okay :) "This change just make a

[PATCH v3 0/14] Add Analogix Core Display Port Driver

2015-08-21 Thread Yakir Yang
Hi Jingoo, 在 2015/8/21 16:20, Jingoo Han 写道: > On 2015. 8. 19., at PM 11:48, Yakir Yang wrote: >> > . > >> .../bindings/video/analogix_dp-rockchip.txt| 83 ++ >> .../devicetree/bindings/video/exynos_dp.txt| 51 +- >> arch/ar

[PATCH v3 0/14] Add Analogix Core Display Port Driver

2015-08-22 Thread Yakir Yang
Hi Jingoo, 2015-08-21 7:24 GMT-04:00 Jingoo Han : > On 2015. 8. 21., at PM 7:01, Yakir Yang wrote: > > Hi Jingoo, > > 在 2015/8/21 16:20, Jingoo Han 写道: > > On 2015. 8. 19., at PM 11:48, Yakir Yang rock-chips.com> wrote: > > . > > > .../

[PATCH v3 0/14] Add Analogix Core Display Port Driver

2015-08-22 Thread Yakir Yang
Hi Thierry, 2015-08-21 9:16 GMT-04:00 Thierry Reding : > On Fri, Aug 21, 2015 at 08:24:16PM +0900, Jingoo Han wrote: > > On 2015. 8. 21., at PM 7:01, Yakir Yang wrote: > > > > > > Hi Jingoo, > > > > > >> 在 2015/8/21 16:20, Jingoo Han 写道:

[PATCH v3 06/14] Documentation: drm/bridge: add document for analogix_dp

2015-08-25 Thread Yakir Yang
Hi Heiko, 在 2015/8/24 21:03, Heiko Stuebner 写道: > Hi Yakir, > > Am Montag, 24. August 2015, 20:48:01 schrieb Yakir Yang: >> 在 08/24/2015 12:20 PM, Krzysztof Kozlowski 写道: >>> On 24.08.2015 11:42, Yakir Yang wrote: >>>> Hi Krzysztof, >>

[PATCH v3 06/14] Documentation: drm/bridge: add document for analogix_dp

2015-08-23 Thread Yakir Yang
Hi Krzysztof, 在 08/23/2015 07:43 PM, Krzysztof Kozlowski 写道: > 2015-08-24 8:23 GMT+09:00 Rob Herring : >> On Wed, Aug 19, 2015 at 9:50 AM, Yakir Yang wrote: >>> Analogix dp driver is split from exynos dp driver, so we just >>> make an copy of exynos_dp.txt, and

[PATCH v3 06/14] Documentation: drm/bridge: add document for analogix_dp

2015-08-24 Thread Yakir Yang
Hi Jingoo, 在 08/24/2015 03:40 PM, Jingoo Han 写道: > On 2015. 8. 24., at AM 9:43, Krzysztof Kozlowski > wrote: >> 2015-08-24 8:23 GMT+09:00 Rob Herring : >>>> On Wed, Aug 19, 2015 at 9:50 AM, Yakir Yang wrote: >>>> Analogix dp driver is split from exyno

[PATCH v3 06/14] Documentation: drm/bridge: add document for analogix_dp

2015-08-25 Thread Yakir Yang
Hi Krzysztof, 在 2015/8/25 7:49, Krzysztof Kozlowski 写道: > On 24.08.2015 21:48, Yakir Yang wrote: >> Hi Krzysztof, >> >> 在 08/24/2015 12:20 PM, Krzysztof Kozlowski 写道: >>> On 24.08.2015 11:42, Yakir Yang wrote: >>>> Hi Krzysztof, >>>&g

[PATCH v3 06/14] Documentation: drm/bridge: add document for analogix_dp

2015-08-25 Thread Yakir Yang
Hi Thierry, 在 2015/8/25 17:15, Thierry Reding 写道: > On Sun, Aug 23, 2015 at 06:23:14PM -0500, Rob Herring wrote: >> On Wed, Aug 19, 2015 at 9:50 AM, Yakir Yang wrote: > [...] >>> + -analogix,link-rate: >>> + max link rate s

[PATCH v3 06/14] Documentation: drm/bridge: add document for analogix_dp

2015-08-25 Thread Yakir Yang
Hi Thierry & Rob, 在 2015/8/25 21:27, Rob Herring 写道: > On Tue, Aug 25, 2015 at 4:15 AM, Thierry Reding wrote: >> On Sun, Aug 23, 2015 at 06:23:14PM -0500, Rob Herring wrote: >>> On Wed, Aug 19, 2015 at 9:50 AM, Yakir Yang wrote: >> [...] >

[PATCH v3 06/14] Documentation: drm/bridge: add document for analogix_dp

2015-08-23 Thread Yakir Yang
Hi Rob, 在 08/23/2015 06:23 PM, Rob Herring 写道: > On Wed, Aug 19, 2015 at 9:50 AM, Yakir Yang wrote: >> Analogix dp driver is split from exynos dp driver, so we just >> make an copy of exynos_dp.txt, and then simplify exynos_dp.txt >> >> Beside update some exyno

[PATCH v3 06/14] Documentation: drm/bridge: add document for analogix_dp

2015-08-24 Thread Yakir Yang
Hi Krzysztof, 在 08/24/2015 12:20 PM, Krzysztof Kozlowski 写道: > On 24.08.2015 11:42, Yakir Yang wrote: >> Hi Krzysztof, >> >> 在 08/23/2015 07:43 PM, Krzysztof Kozlowski 写道: >>> 2015-08-24 8:23 GMT+09:00 Rob Herring : >>>> On Wed,

<    1   2   3   4   5   6   7   8   >