[RFC PATCH v2 2/3] drm/rockchip: vop: add line flag function support

2016-06-02 Thread Yakir Yang
VOP could use line flag interrupt to detect some target timing. For example, eDP PSR is interesting in vact_end, then VOP could configure the line number to vact_end, and wait for line flag interrupt coming. Signed-off-by: Yakir Yang --- Changes in v2: - introduce in v2, split VOP line flag

[RFC PATCH v2 3/3] drm/rockchip: analogix_dp: add PSR support

2016-06-02 Thread Yakir Yang
Let VOP vblank status decide whether panle should enter into or exit from PSR status. Before eDP start to change PSR status, it need to wait for VOP vact_end event. In order to listen vact_end event, I create a new file about PSR notify between eDP and VOP. Signed-off-by: Yakir Yang --- Changes

[RFC PATCH v2 3/3] drm/rockchip: analogix_dp: add PSR support

2016-06-02 Thread Yakir Yang
Hi Daniel, Thanks for your fast respond. On 06/02/2016 09:18 PM, Daniel Vetter wrote: > On Thu, Jun 02, 2016 at 08:57:38PM +0800, Yakir Yang wrote: >> Let VOP vblank status decide whether panle should enter into or >> exit from PSR status. Before eDP start to change PSR status

[RFC PATCH v2 1/3] drm: bridge/analogix_dp: add the PSR function support

2016-06-02 Thread Yakir Yang
Hi all, Sorry about the CC list, I lose some guys here, just add them back. On 06/02/2016 08:57 PM, 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

[RFC PATCH v1 0/2]

2016-06-03 Thread Yakir Yang
Hi Daniel, On 06/02/2016 10:19 PM, Daniel Vetter wrote: > On Wed, Jun 01, 2016 at 10:54:09AM +0800, Yakir Yang wrote: >> 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: >>>>

[PATCH 2/4] dt-bindings: add LG LP097QX1-SPA1 panle binding

2016-06-03 Thread Yakir Yang
Hi Rob, On 05/24/2016 05:34 AM, Rob Herring wrote: > On Mon, May 23, 2016 at 08:55:15PM +0800, Yakir Yang wrote: >> The LG LP097QX1-SPA1 is an 9.7", 2048x1536 (QXGA) TFT-LCD panel >> connected using eDP interfaces. >> >> Signed-off-by: Yakir Yang >> --- >

[PATCH 4/4] dt-bindings: add Samsung LSN122DL01-C01 panel binding

2016-06-03 Thread Yakir Yang
Hi Rob, On 05/24/2016 05:35 AM, Rob Herring wrote: > On Mon, May 23, 2016 at 08:55:37PM +0800, 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 1/4] drm/panel: simple: Add support for LG LP097QX1-SPA1 2048x1536 panel

2016-06-03 Thread Yakir Yang
Hi Thierry, Ping... Could you help to review/ack the panel changes :) BR, - Yakir On 05/23/2016 08:54 PM, Yakir Yang wrote: > The LG LP097QX1-SPA1 is an 9.7", 2048x1536 (QXGA) TFT-LCD panel > connected using eDP interfaces. > > Signed-off-by: Yakir Yang > --- > driv

[PATCH 1/2] drm/rockchip: vop: add uv_vir register field for RK3036 VOP

2016-06-06 Thread Yakir Yang
The WIN0 of RK3036 VOP could support YUV data format, but driver forget to add the uv_vir register field for it. Signed-off-by: Yakir Yang --- drivers/gpu/drm/rockchip/rockchip_vop_reg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/rockchip/rockchip_vop_reg.c b/drivers

[PATCH 2/2] drm/rockchip: vop: correct the source size of uv scale factor setting

2016-06-06 Thread Yakir Yang
/ src_h; * In YUV444 data format cbcr_xscale = dst_w / src_w; cbcr_yscale = dst_h / src_h; Signed-off-by: Yakir Yang --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b

[PATCH v14.1 01/17] drm: bridge: analogix/dp: split exynos dp driver to bridge directory

2016-06-08 Thread Yakir Yang
onnector need register in helper driver is rockchip drm >> haven't implement the atomic API, but Exynos drm have implement it, so >> there would need two different connector helper functions, that's why we >> leave the connector register in helper driver. >> >> Si

[PATCH v2 02/10] drm/rockchip: analogix_dp: split the lcdc select setting into device data

2016-06-08 Thread Yakir Yang
Mark, On 06/01/2016 09:57 AM, Mark yao wrote: > On 2016年05月24日 13:02, Yakir Yang wrote: >> eDP controller need to declare which vop provide the video source, >> and it's defined in GRF registers. >> >> But different chips have different GRF register address,

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

2016-06-08 Thread Yakir Yang
rm and Rockchip platform. And Mark also have reviewed the Rockchip side code, so it would be very nice that i could get some reviewed/acked from Samsung before i start to prepare my pull request ;) BR, - Yakir [1]: https://patchwork.freedesktop.org/patch/83406/ On 05/24/2016 01:01 PM, Yakir Yang

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

2016-06-08 Thread Yakir Yang
The LG LP097QX1-SPA1 is an 9.7", 2048x1536 (QXGA) TFT-LCD panel connected using eDP interfaces. Signed-off-by: Yakir Yang Acked-by: Rob Herring --- Changes in v2: - Add Rob's acked for dt-bindings of LG LP097QX1-SPA1 panel .../devicetree/bindings/display/panel/lg,lp097qx1-spa1.txt

[PATCH v2 2/6] drm/panel: simple: Add support for LG LP097QX1-SPA1 2048x1536 panel

2016-06-08 Thread Yakir Yang
The LG LP097QX1-SPA1 is an 9.7", 2048x1536 (QXGA) TFT-LCD panel connected using eDP interfaces. Signed-off-by: Yakir Yang --- Changes in v2: None drivers/gpu/drm/panel/panel-simple.c | 25 + 1 file changed, 25 insertions(+) diff --git a/drivers/gpu/drm/panel/

[PATCH v2 3/6] dt-bindings: add Samsung LSN122DL01-C01 panel binding

2016-06-08 Thread Yakir Yang
The Samsung LSN122DL01-C01 is an 12.2" 2560x1600 (WQXGA) TFT-LCD panel connected using eDP interfaces. Signed-off-by: Yakir Yang Acked-by: Rob Herring --- Changes in v2: - Add Rob's acked for dt-bindings of Samsung LSN122DL01 panel .../devicetree/bindings/display/panel/samsung,lsn1

[PATCH v2 5/6] dt-bindings: add Sharp LQ123P1JX31 panel binding

2016-06-08 Thread Yakir Yang
The Sharp LQ123P1JX31 is an 12.3" 2400x1600 TFT-LCD panel connected using eDP interfaces. Signed-off-by: Yakir Yang --- Changes in v2: - Add dt-bindings of Sharp LQ123P1JX31 panel in v2 .../devicetree/bindings/display/panel/sharp,lq123p1jx31.txt| 7 +++ 1 file changed, 7 inser

[PATCH v2 6/6] drm/panel: simple: Add support for Sharp LQ123P1JX31 2400x1600 panel

2016-06-08 Thread Yakir Yang
The Sharp LQ123P1JX31 is an 12.3", 2400x1600 TFT-LCD panel connected using eDP interfaces. Signed-off-by: Yakir Yang --- Changes in v2: - Add detail timing of Sharp LQ123P1JX31 panel in v2 drivers/gpu/drm/panel/panel-simple.c | 26 ++ 1 file changed, 26 inser

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

2016-06-08 Thread Yakir Yang
The Samsung LSN122DL01-C01 is an 12.2" 2560x1600 (WQXGA) TFT-LCD panel connected using eDP interfaces. Signed-off-by: Yakir Yang --- Changes in v2: None drivers/gpu/drm/panel/panel-simple.c | 25 + 1 file changed, 25 insertions(+) diff --git a/drivers/gpu/drm/

[PATCH v14.1 01/17] drm: bridge: analogix/dp: split exynos dp driver to bridge directory

2016-06-08 Thread Yakir Yang
Marc, Javier On 06/08/2016 03:44 PM, Marc Zyngier wrote: > On Wed, 8 Jun 2016 09:28:32 +0800 > Yakir Yang wrote: > >> Hi Javier, >> >> On 06/08/2016 01:06 AM, Javier Martinez Canillas wrote: >>> Hello Yakir, >>> >>> On 03/17/2016 05:47 PM, He

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

2016-06-12 Thread Yakir Yang
Stéphane, On 06/10/2016 08:04 AM, Stéphane Marchesin wrote: > On Wed, Jun 8, 2016 at 4:52 AM, Yakir Yang wrote: >> The Samsung LSN122DL01-C01 is an 12.2" 2560x1600 (WQXGA) TFT-LCD panel >> connected using eDP interfaces. >> >> Signed-off-by: Yakir Yan

[PATCH v2 2/6] drm/panel: simple: Add support for LG LP097QX1-SPA1 2048x1536 panel

2016-06-12 Thread Yakir Yang
Emil, On 06/08/2016 08:20 PM, Emil Velikov wrote: > Hi Yakir, > > On 8 June 2016 at 12:52, Yakir Yang wrote: >> The LG LP097QX1-SPA1 is an 9.7", 2048x1536 (QXGA) TFT-LCD panel >> connected using eDP interfaces. >> >> Signed-off-by: Yakir Yang >> --

[PATCH v2 6/6] drm/panel: simple: Add support for Sharp LQ123P1JX31 2400x1600 panel

2016-06-12 Thread Yakir Yang
Doug, On 06/11/2016 12:11 AM, Doug Anderson wrote: > Hi, > > On Wed, Jun 8, 2016 at 9:35 AM, Doug Anderson > wrote: >> Yakir, >> >> On Wed, Jun 8, 2016 at 4:52 AM, Yakir Yang wrote: >>> The Sharp LQ123P1JX31 is an 12.3", 2400x1600 TFT-

[PATCH v2 5/6] dt-bindings: add Sharp LQ123P1JX31 panel binding

2016-06-12 Thread Yakir Yang
On 06/11/2016 12:40 AM, Doug Anderson wrote: > Rob, > > On Fri, Jun 10, 2016 at 6:42 AM, Rob Herring wrote: >> On Wed, Jun 08, 2016 at 07:52:45PM +0800, Yakir Yang wrote: >>> The Sharp LQ123P1JX31 is an 12.3" 2400x1600 TFT-LCD panel >>> connected using

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

2016-06-12 Thread Yakir Yang
The LG LP097QX1-SPA1 is an 9.7", 2048x1536 (QXGA) TFT-LCD panel connected using eDP interfaces. Signed-off-by: Yakir Yang Acked-by: Rob Herring --- Changes in v3: None Changes in v2: - Add Rob's acked for dt-bindings of LG LP097QX1-SPA1 panel .../devicetree/bindings/display/panel/l

[PATCH v3 2/6] drm/panel: simple: Add support for LG LP097QX1-SPA1 2048x1536 panel

2016-06-12 Thread Yakir Yang
The LG LP097QX1-SPA1 is an 9.7", 2048x1536 (QXGA) TFT-LCD panel connected using eDP interfaces. Signed-off-by: Yakir Yang --- Changes in v3: - Correct the size of panel_desc to active area 208mmx147mm (Emil, Stéphane) - Sort the lg_lp097qx1_spa1 before lg_lp120up1 (Emil) Changes in v2:

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

2016-06-12 Thread Yakir Yang
The Samsung LSN122DL01-C01 is an 12.2" 2560x1600 (WQXGA) TFT-LCD panel connected using eDP interfaces. Signed-off-by: Yakir Yang --- Changes in v3: - Correct the size of panel_desc to active area 262mmx164mm (Emil, Stéphane) Changes in v2: None drivers/gpu/drm/panel/panel-simple.c

[PATCH v3 3/6] dt-bindings: add Samsung LSN122DL01-C01 panel binding

2016-06-12 Thread Yakir Yang
The Samsung LSN122DL01-C01 is an 12.2" 2560x1600 (WQXGA) TFT-LCD panel connected using eDP interfaces. Signed-off-by: Yakir Yang Acked-by: Rob Herring --- Changes in v3: None Changes in v2: - Add Rob's acked for dt-bindings of Samsung LSN122DL01 panel .../devicetree/bindings/dis

[PATCH v3 6/6] drm/panel: simple: Add support for Sharp LQ123P1JX31 2400x1600 panel

2016-06-12 Thread Yakir Yang
The Sharp LQ123P1JX31 is an 12.3", 2400x1600 TFT-LCD panel connected using eDP interfaces. Signed-off-by: Yakir Yang Reviewed-by: Doug Anderson Tested-by: Doug Anderson --- Changes in v3: - Correct the size of panel_desc to active area 259mmx173mm (Doug) - Add the reviewed/tested flag

[PATCH v3 5/6] dt-bindings: add Sharp LQ123P1JX31 panel binding

2016-06-12 Thread Yakir Yang
The Sharp LQ123P1JX31 is an 12.3" 2400x1600 TFT-LCD panel connected using eDP interfaces. Signed-off-by: Yakir Yang Reviewed-by: Douglas Anderson --- Changes in v3: - Drop the extra comma in compatible name (Rob) - Add the reviewed flag from Doug Changes in v2: - Add dt-bindings of

[PATCH v3 0/10]

2016-06-14 Thread Yakir Yang
319/15] - Add tested flag from Javier Changes in v2: - new patch in v2 - rebase with drm-next, fix some conflicts - new patch in v2 Yakir Yang (10): drm/bridge: analogix_dp: rename RK3288_DP to ROCKCHIP_DP drm/rockchip: analogix_dp: split the lcdc select setting into device data drm/bridge: a

[PATCH v3 02/10] drm/rockchip: analogix_dp: split the lcdc select setting into device data

2016-06-14 Thread Yakir Yang
eDP controller need to declare which vop provide the video source, and it's defined in GRF registers. But different chips have different GRF register address, so we need to create a device data to declare the GRF messages for each chips. Signed-off-by: Yakir Yang Acked-by: Mark Yao --- Ch

[PATCH v3 03/10] drm/bridge: analogix_dp: correct the register bit define error in ANALOGIX_DP_PLL_REG_1

2016-06-14 Thread Yakir Yang
There're an register define error in ANALOGIX_DP_PLL_REG_1 which introduced by commit bcec20fd5ad6 ("drm: bridge: analogix/dp: add some rk3288 special registers setting"). The PHY PLL input clock source is selected by ANALOGIX_DP_PLL_REG_1 BIT 0, not BIT 1. Signed-off-by: Yakir Ya

[PATCH v3 04/10] drm/bridge: analogix_dp: some rockchip chips need to flip REF_CLK bit setting

2016-06-14 Thread Yakir Yang
ake this little hack. Signed-off-by: Yakir Yang Tested-by: Javier Martinez Canillas --- Changes in v3: - Make this hack code more clear (Tomasz, reviewed at Google Gerrit) reg = ~reg & REF_CLK_MASK; ---> reg ^= REF_CLK_MASK; [https://chromium-review.googlesource.com/#/c/346852/7/

[PATCH v3 07/10] drm/bridge: analogix_dp: passing the connector as an argument in .get_modes()

2016-06-14 Thread Yakir Yang
It's better to pass the connector to platform driver in .get_modes() callback, just like what the .get_modes() helper function designed. Signed-off-by: Yakir Yang --- Changes in v3: - Avoid to change any internal driver state in .mode_valid interface. (Tomasz, reviewed at Google G

[PATCH v3 08/10] drm/rockchip: analogix_dp: correct the connector display color format and bpc

2016-06-14 Thread Yakir Yang
Rockchip VOP couldn't output YUV video format for eDP controller, so when driver detect connector support YUV video format, we need to hack it down to RGB888. Signed-off-by: Yakir Yang Acked-by: Mark Yao --- Changes in v3: - Hook the connector's color_formats in .get_modes directl

[PATCH v3 01/10] drm/bridge: analogix_dp: rename RK3288_DP to ROCKCHIP_DP

2016-06-14 Thread Yakir Yang
Rename RK3288_DP macros to ROCKCHIP_DP, prepare to add eDP support for more Rockchip chips. Signed-off-by: Yakir Yang Reviewed-by: Stéphane Marchesin Tested-by: Javier Martinez Canillas --- Changes in v3: - Correct the misspell of "marcos" in commit message (Dominik, reviewed

[PATCH v3 05/10] drm/rockchip: analogix_dp: add rk3399 eDP support

2016-06-14 Thread Yakir Yang
RK3399 and RK3288 shared the same eDP IP controller, only some light difference with VOP configure and GRF configure. Signed-off-by: Yakir Yang Acked-by: Mark Yao --- Changes in v3: - Give the "rk3399-edp" a separate line for clarity in document (Tomasz, reviewed at Google Gerrit)

[PATCH v3 06/10] drm/rockchip: analogix_dp: make panel detect to an optional action

2016-06-14 Thread Yakir Yang
Some boards don't need to declare a panel device node, like the display interface is DP monitors, so it's necessary to make the panel detect to an optional action. Signed-off-by: Yakir Yang Acked-by: Mark Yao --- Changes in v3: - Add the acked flag from Mark. Changes in v2: None d

[PATCH v3 09/10] drm/rockchip: analogix_dp: update the comments about why need to hardcode VOP output mode

2016-06-14 Thread Yakir Yang
The hardware IC designed that VOP must output the RGB10 video format to eDP contoller, and if eDP panel only support RGB8, then eDP contoller should cut down the video data, not via VOP contoller, that's why we need to hardcode the VOP output mode to RGA10 here. Signed-off-by: Yakir Yang

[PATCH v3 10/10] drm/bridge: analogix_dp: fix no drm hpd event when panel plug in

2016-06-14 Thread Yakir Yang
at just need to assign all hotplug enum with no-zero values. Reported-by: Dan Carpenter Signed-off-by: Yakir Yang Reviewed-by: Stéphane Marchesin Tested-by: Javier Martinez Canillas --- Changes in v3: - Add reviewed flag from Stéphane. [https://chromium-review.googlesource.com/#/c/346319/15

[PATCH v3 05/10] drm/rockchip: analogix_dp: add rk3399 eDP support

2016-06-15 Thread Yakir Yang
Doug, On 06/14/2016 11:24 PM, Doug Anderson wrote: > Yakir, > > On Tue, Jun 14, 2016 at 4:46 AM, Yakir Yang wrote: >> RK3399 and RK3288 shared the same eDP IP controller, only some light >> difference with VOP configure and GRF configure. >> >> Signed-off-by:

[PATCH v3 07/10] drm/bridge: analogix_dp: passing the connector as an argument in .get_modes()

2016-06-15 Thread Yakir Yang
On 06/15/2016 12:28 AM, Daniel Vetter wrote: > On Tue, Jun 14, 2016 at 06:26:56PM +0200, Daniel Vetter wrote: >> On Tue, Jun 14, 2016 at 07:46:29PM +0800, Yakir Yang wrote: >>> It's better to pass the connector to platform driver in .get_modes() >>> callback, just l

[PATCH 1/3] drm/rockchip: inno_hdmi: add audio support

2016-06-15 Thread Yakir Yang
Using the common hdmi-codec driver to support hdmi audio function. Signed-off-by: Yakir Yang --- drivers/gpu/drm/rockchip/inno_hdmi.c | 237 ++- drivers/gpu/drm/rockchip/inno_hdmi.h | 2 + 2 files changed, 237 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH 2/3] ARM: dts: rockchip: add simple sound card for RK3036 SoCs

2016-06-15 Thread Yakir Yang
Using I2S as the audio input source, and force the mclk_fs to 256. Signed-off-by: Yakir Yang --- arch/arm/boot/dts/rk3036.dtsi | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/rk3036.dtsi b/arch/arm/boot/dts/rk3036.dtsi index 843d2be..ecff071 100644

[PATCH 3/3] ARM: dts: rockchip: enable hdmi audio on rk3036-kylin

2016-06-15 Thread Yakir Yang
Enable the basic hdmi audio function on rk3036 kylin board. Signed-off-by: Yakir Yang --- arch/arm/boot/dts/rk3036-kylin.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/rk3036-kylin.dts b/arch/arm/boot/dts/rk3036-kylin.dts index 1df1557..070cfe1 100644 --- a/arch

[PATCH v3 0/10]

2016-06-16 Thread Yakir Yang
Tomasz, On 06/15/2016 05:27 PM, Tomasz Figa wrote: > Hi Yakir, > > Yakir Yang rock-chips.com> writes: >> RK3399 and RK3288 shared the same eDP IP controller, only some light >> difference with VOP configure and GRF configure. >> >> Also same misc fix to anal

[PATCH v3 05/10] drm/rockchip: analogix_dp: add rk3399 eDP support

2016-06-16 Thread Yakir Yang
Tomasz, On 06/15/2016 05:25 PM, Tomasz Figa wrote: > Hi Yakir, > > Yakir Yang rock-chips.com> writes: >>>>Required properties: >>>> -- compatible: "rockchip,rk3288-edp"; >>>> +- compatible: "rockchip,rk3288-edp", >>&g

[PATCH v3 0/10]

2016-06-22 Thread Yakir Yang
Archit, On 06/21/2016 09:46 PM, Archit Taneja wrote: > > > On 6/14/2016 5:15 PM, Yakir Yang wrote: >> RK3399 and RK3288 shared the same eDP IP controller, only some light >> difference with VOP configure and GRF configure. >> >> Also same misc fix to analogix_dp d

[PATCH v3.1 1/2] drm/rockchip: analogix_dp: introduce the pclk for grf

2016-06-22 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 --- Hi all, This is an external patch for a

[PATCH v3.1 2/2] dt-bindings: analogix_dp: rockchip: correct the wrong compatible name

2016-06-22 Thread Yakir Yang
t for rockchip variant of analogix_dp"). Reported-by: Tomasz Figa Signed-off-by: Yakir Yang --- Hi all, This is an external patch for analogix_dp misc cleanup thread [0] [0]: https://patchwork.kernel.org/patch/9175613/ BR, - Yakir .../devicetree/bindings/display/rockchip/analogix_dp-rockchip.tx

[PATCH v4 1/2] drm/rockchip: analogix_dp: introduce the pclk for grf

2016-06-23 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 --- Hi all, This is an external patch for a

[PATCH v4 2/2] dt-bindings: analogix_dp: rockchip: correct the wrong compatible name

2016-06-23 Thread Yakir Yang
t for rockchip variant of analogix_dp"). Reported-by: Tomasz Figa Signed-off-by: Yakir Yang --- Hi all, This is an external patch for analogix_dp misc cleanup thread [0] [0]: https://patchwork.kernel.org/patch/9175613/ BR, - Yakir Changes in v4: None Changes in v3: - Add this patch in v3 .

[PATCH v4.1 1/2] drm/rockchip: analogix_dp: introduce the pclk for grf

2016-06-23 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 --- Hi all, This is an external patch for a

[PATCH v1 0/5] Enable graphic support on RK3288 EVB boards

2016-06-28 Thread Yakir Yang
Hi Heiko, This series just want to enable the graphic support on RK3288 EVB boards, most of them are DTS changes, but still have one change about new eDP panel support. Thanks, - Yakir Yakir Yang (5): dt-bindings: Add support for LG LP079QX1-SP0V 1536x2048 panel drm/panel: simple: Add

[PATCH v1 1/5] dt-bindings: Add support for LG LP079QX1-SP0V 1536x2048 panel

2016-06-28 Thread Yakir Yang
The LG LP079QX1-SP0V is an 7.9" QXGA TFT with LED Backlight unit and 32 pins eDP interface. This module supports 1536x2048 mode. Signed-off-by: Yakir Yang --- .../devicetree/bindings/display/panel/lg,lp079qx1-sp0v.txt | 7 +++ 1 file changed, 7 insertions(+) create mode 1

[PATCH v1 3/5] ARM: dts: rockchip: add eDP/panel display device nodes for rk3288-evb

2016-06-28 Thread Yakir Yang
The default eDP panel on RK3288 EVB board is LG LP079QX1-SP0V TFT LCD, we haven't declared the panel regulator in the 'panel-simple' device node here, so the specific board like ACT8846 / RK8080 need to support the panel power supply. Signed-off-by: Yakir Yang --- arch/arm/

[PATCH v3 1/2] drm: rockchip/hdmi: add Innosilicon HDMI support

2016-01-18 Thread Yakir Yang
gt; > Thanks:-) > > On 2016年01月15日 17:38, Yakir Yang wrote: >> The Innosilicon HDMI is a low power HDMI 1.4 transmitter >> IP, and it have been integrated on some rockchip CPUs >> (like RK3036, RK312x). >> >> Signed-off-by: Yakir Yang >> --- >>

[PATCH v12 0/18] Add Analogix Core Display Port Driver

2016-01-18 Thread Yakir Yang
Hi Heiko, Sorry for the delay reply ;) On 01/17/2016 10:25 PM, Heiko Stuebner wrote: > Hi Yakir, > > Am Mittwoch, 13. Januar 2016, 15:59:51 schrieb Heiko Stuebner: >> Am Mittwoch, 23. Dezember 2015, 20:25:38 schrieb Yakir Yang: >>> The Samsung Exynos eDP controller

[PATCH v4 0/1] Introduce Innosilicon HDMI driver on Rockchip platforms

2016-01-18 Thread Yakir Yang
e encoder DPMS function - Keep HDMI PLL power on in standby mode Changes in v2: - Using DRM atomic helper functions for connector init (Mark) - Remove "hdmi->connector.encoder = encoder;" (Mark) Yakir Yang (1): drm/rockchip: hdmi: add Innosilicon HDMI support drivers/gpu/drm/ro

[PATCH v4] drm/rockchip: hdmi: add Innosilicon HDMI support

2016-01-18 Thread Yakir Yang
The Innosilicon HDMI is a low power HDMI 1.4 transmitter IP, and it have been integrated on some rockchip CPUs (like RK3036, RK312x). Signed-off-by: Yakir Yang --- Changes in v4: - Modify the commit title "drm/rockchip: hdmi: ..." (Mark) - Correct the "DKMS" to "D

[PATCH v4] drm/rockchip: hdmi: add Innosilicon HDMI support

2016-01-19 Thread Yakir Yang
Hi Russell, Thanks for your comments :-D On 01/19/2016 01:15 AM, Russell King - ARM Linux wrote: > Hi, > > Some comments below... > > On Mon, Jan 18, 2016 at 10:42:20PM +0800, Yakir Yang wrote: >> +static int inno_hdmi_config_video_avi(struct inno_hdmi *hdmi) &g

[PATCH v5 0/1] Introduce Innosilicon HDMI driver on Rockchip platforms

2016-01-19 Thread Yakir Yang
power on in standby mode Changes in v2: - Using DRM atomic helper functions for connector init (Mark) - Remove "hdmi->connector.encoder = encoder;" (Mark) Yakir Yang (1): drm/rockchip: hdmi: add Innosilicon HDMI support drivers/gpu/drm/rockchip/Kconfig | 8 + drivers/

[PATCH v5] drm/rockchip: hdmi: add Innosilicon HDMI support

2016-01-19 Thread Yakir Yang
The Innosilicon HDMI is a low power HDMI 1.4 transmitter IP, and it have been integrated on some rockchip CPUs (like RK3036, RK312x). Signed-off-by: Yakir Yang --- Changes in v5: - Use hdmi_infoframe helper functions to packed the infoframe (Russell) - Remove the unused double

[PATCH v12.1 01/17] drm: bridge: analogix/dp: split exynos dp driver to bridge directory

2016-01-19 Thread Yakir Yang
t the connector. They reason why connector need register in helper driver is rockchip drm haven't implement the atomic API, but Exynos drm have implement it, so there would need two different connector helper functions, that's why we leave the connector register in helper driver. Signed-off

[PATCH v12.1 05/17] dt-bindings: add document for analogix display port driver

2016-01-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 Acked-by: Rob Herring --- There is no

[PATCH v12.1 06/17] ARM: dts: exynos/dp: remove some properties that deprecated by analogix_dp driver

2016-01-19 Thread Yakir Yang
compatibility is fully preserved, so there are no bisectability break that make this change in a separate patch. Signed-off-by: Yakir Yang Reviewed-by: Krzysztof Kozlowski Tested-by: Javier Martinez Canillas --- There is no new changes in v12.1, but just rebase the whole patches on top of Dave'

[PATCH v12.1 07/17] drm: rockchip: dp: add rockchip platform dp driver

2016-01-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 Tested-by: Javier Martinez Canillas --- Rebase the whole patches on top of Dave's drm-next branch [0] (

[PATCH v12.1 13/17] drm: bridge: analogix/dp: try force hpd after plug in lookup failed

2016-01-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 Acked-by: Rob Herring Te

[PATCH v12.1 07/17] drm: rockchip: dp: add rockchip platform dp driver

2016-01-22 Thread Yakir Yang
Hi Heiko, On 01/22/2016 03:11 AM, Heiko Stuebner wrote: > Hi Yakir, > > Am Dienstag, 19. Januar 2016, 18:04:53 schrieb 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 >>

[PATCH v13 0/17] Add Analogix Core Display Port Driver

2016-01-22 Thread Yakir Yang
ether driver need foce hpd when hpd detect failed. - move dp hpd detect to connector detect function. - Add edid modes parse support Changes in v2: - Remove new copyright (Jingoo) - Fix compiled failed due to analogix_dp_device misspell - Improved commit message more readable, and avoid using some

[PATCH v13 01/17] drm: bridge: analogix/dp: split exynos dp driver to bridge directory

2016-01-22 Thread Yakir Yang
t the connector. They reason why connector need register in helper driver is rockchip drm haven't implement the atomic API, but Exynos drm have implement it, so there would need two different connector helper functions, that's why we leave the connector register in helper driver. Signed-o

[PATCH v13 02/17] drm: bridge: analogix/dp: fix some obvious code style

2016-01-22 Thread Yakir Yang
Fix some obvious alignment problems, like alignment and line over 80 characters problems, make this easy to be maintained later. Signed-off-by: Yakir Yang Acked-by: Jingoo Han Reviewed-by: Krzysztof Kozlowski Tested-by: Javier Martinez Canillas --- Changes in v13: None Changes in v12: - Add

[PATCH v13 03/17] drm: bridge: analogix/dp: remove duplicate configuration of link rate and link count

2016-01-22 Thread Yakir Yang
2Gbps, 2.7Gbps, 5.4Gbps}. Signed-off-by: Yakir Yang Tested-by: Javier Martinez Canillas --- Changes in v13: None Changes in v12: - Remove the enum link_rate_type struct, using the marcos in drm_dp_helper.h (Jingoo) Changes in v11: None Changes in v10: None Changes in v9: None Changes in v8: None Ch

[PATCH v13 04/17] drm: bridge: analogix/dp: dynamic parse sync_pol & interlace & dynamic_range

2016-01-22 Thread Yakir Yang
: Yakir Yang Reviewed-by: Krzysztof Kozlowski Tested-by: Javier Martinez Canillas --- Changes in v13: None Changes in v12: None Changes in v11: None Changes in v10: None Changes in v9: None Changes in v8: None Changes in v7: - Back to use the of_property_read_bool() interfacs to provoid backward

[PATCH v13 05/17] dt-bindings: add document for analogix display port driver

2016-01-22 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 Acked-by: Rob Herring --- Changes in

[PATCH v13 06/17] ARM: dts: exynos/dp: remove some properties that deprecated by analogix_dp driver

2016-01-22 Thread Yakir Yang
compatibility is fully preserved, so there are no bisectability break that make this change in a separate patch. Signed-off-by: Yakir Yang Reviewed-by: Krzysztof Kozlowski Tested-by: Javier Martinez Canillas --- Changes in v13: None Changes in v12: None Changes in v11: None Changes in v10: None

[PATCH v13 07/17] drm: rockchip: dp: add rockchip platform dp driver

2016-01-22 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 Tested-by: Heiko Stuebner --- Changes in v13: - Use .enable instead of preprare/commit in encoder_helper_funcs

[PATCH v13 08/17] dt-bindings: add document for rockchip variant of analogix_dp

2016-01-22 Thread Yakir Yang
Rockchip DP driver is a helper driver of analogix_dp coder driver, so most of the DT property should be descriped in analogix_dp document. Signed-off-by: Yakir Yang Acked-by: Rob Herring Reviewed-by: Heiko Stuebner --- Changes in v13: None Changes in v12: None Changes in v11: None Changes in

[PATCH v13 09/17] phy: Add driver for rockchip Display Port PHY

2016-01-22 Thread Yakir Yang
Add phy driver for the Rockchip DisplayPort PHY module. This is required to get DisplayPort working in Rockchip SoCs. Signed-off-by: Yakir Yang Reviewed-by: Heiko Stuebner --- Changes in v13: None Changes in v12: - Re-order the include headers file alphabetically in phy-rockchip-dp.c (Jingoo

[PATCH v13 10/17] dt-bindings: add document for rockchip dp phy

2016-01-22 Thread Yakir Yang
Add dt binding documentation for rockchip display port PHY. Signed-off-by: Yakir Yang Acked-by: Rob Herring Reviewed-by: Heiko Stuebner --- Changes in v13: None Changes in v12: None Changes in v11: - Correct the title of this rockchip dp phy document(Rob) - Add the ack from Rob Herring

[PATCH v13 12/17] drm: bridge: analogix/dp: add max link rate and lane count limit for RK3288

2016-01-22 Thread Yakir Yang
There are some IP limit on rk3288 that only support 4 physical lanes of 2.7/1.6 Gbps/lane, so seprate them out by device_type flag. Signed-off-by: Yakir Yang Tested-by: Javier Martinez Canillas --- Changes in v13: None Changes in v12: None Changes in v11: None Changes in v10: - Remove the

[PATCH v13 11/17] drm: bridge: analogix/dp: add some rk3288 special registers setting

2016-01-22 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 v13: None Changes in v12: None Changes in v11: None Changes in v10: None Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6: None

[PATCH v13 13/17] drm: bridge: analogix/dp: try force hpd after plug in lookup failed

2016-01-22 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 Acked-by: Rob Herring Te

[PATCH v13 15/17] drm: bridge: analogix/dp: add edid modes parse in get_modes method

2016-01-22 Thread Yakir Yang
: drm/exynos: do not start enabling DP at bind() phase But for now driver need to read edid message in .get_modes() function, so controller must be inited in bind time, so we need to add controller init back. Signed-off-by: Yakir Yang Tested-by: Javier Martinez Canillas --- Changes in v13: None

[PATCH v13 14/17] drm: bridge: analogix/dp: move hpd detect to connector detect function

2016-01-22 Thread Yakir Yang
do not start enabling DP at bind() phase But for now the connector status don't hardcode to connected, need to operate dp phy in .detect function, so we need to revert parts if Gustavo Padovan's changes, add phy poweron function in bind time. Signed-off-by: Yakir Yang Tested-by: Javier M

[PATCH v13 16/17] drm: bridge: analogix/dp: add panel prepare/unprepare in suspend/resume time

2016-01-22 Thread Yakir Yang
Turn off the panel power in suspend time would help to reduce power waste. Signed-off-by: Yakir Yang --- Changes in v13: None Changes in v12: None Changes in v11: None Changes in v10: None Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes

[PATCH v13 17/17] drm: bridge: analogix/dp: Fix the possible dead lock in bridge disable time

2016-01-22 Thread Yakir Yang
sh before encoder disabled. The flush work in bridge disable time is try to ensure the HPD event won't be missed before display card disabled, actually we can take a fast respond way(interrupt thread) to update DRM HPD event to fix the delay update and possible dead lock. Signed-off-by: Yakir Y

[PATCH v3 1/2] drm: rockchip/hdmi: add Innosilicon HDMI support

2016-01-25 Thread Yakir Yang
p" can find your patch. >> >> and I have some advices mail inline. >> >> Thanks:-) >> >> On 2016年01月15日 17:38, Yakir Yang wrote: >>> The Innosilicon HDMI is a low power HDMI 1.4 transmitter >>> IP, and it have been integrated on some

[PATCH v6 0/1] Introduce Innosilicon HDMI driver on Rockchip platforms

2016-01-25 Thread Yakir Yang
. (Mark) Changes in v3: - Use encoder enable/disable function, and remove the encoder DPMS function - Keep HDMI PLL power on in standby mode Changes in v2: - Using DRM atomic helper functions for connector init (Mark) - Remove "hdmi->connector.encoder = encoder;" (Mark) Yakir Ya

[PATCH v6] drm/rockchip: hdmi: add Innosilicon HDMI support

2016-01-25 Thread Yakir Yang
The Innosilicon HDMI is a low power HDMI 1.4 transmitter IP, and it have been integrated on some rockchip CPUs (like RK3036, RK312x). Signed-off-by: Yakir Yang --- Changes in v6: - Rebase the Makefile/Kconfig files which add by Chris's rockchip-mipi driver (Caeser) Changes in v5:

[PATCH v6] drm/rockchip: hdmi: add Innosilicon HDMI support

2016-01-26 Thread Yakir Yang
Hi Paul, On 01/26/2016 08:45 AM, Paul Bolle wrote: > On ma, 2016-01-25 at 09:47 +0800, Yakir Yang wrote: >> --- a/drivers/gpu/drm/rockchip/Kconfig >> +++ b/drivers/gpu/drm/rockchip/Kconfig >> +config ROCKCHIP_INNO_HDMI >> +tristate "Rockchip specific

[PATCH v6 0/1] Introduce Innosilicon HDMI driver on Rockchip platforms

2016-01-26 Thread Yakir Yang
Hi Heiko, On 01/25/2016 08:47 PM, Heiko Stübner wrote: > Am Montag, 25. Januar 2016, 09:43:17 schrieb Yakir Yang: >> Here are a brief introduction to Innosilicon HDMI IP: >>- Support HDMI 1.4a, HDCP 1.2 and DVI 1.0 standard compliant transmitter >>- Support HD

[PATCH v7 0/2] Add Rockchip Inno-HDMI driver

2016-01-26 Thread Yakir Yang
ble/disable function, and remove the encoder DPMS function - Keep HDMI PLL power on in standby mode Changes in v2: - Using DRM atomic helper functions for connector init (Mark) - Remove "hdmi->connector.encoder = encoder;" (Mark) - Add the Acked-by tags from Rob - Correct the misspell &

[PATCH v7 1/2] drm/rockchip: hdmi: add Innosilicon HDMI support

2016-01-26 Thread Yakir Yang
The Innosilicon HDMI is a low power HDMI 1.4 transmitter IP, and it have been integrated on some rockchip CPUs (like RK3036, RK312x). Signed-off-by: Yakir Yang --- Changes in v7: - Correct the module licnese statement (Paul) - MODULE_LICENSE("GPL"); + MODULE_LICENSE("GP

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

2016-01-26 Thread Yakir Yang
Signed-off-by: Yakir Yang Signed-off-by: Yakir Yang Acked-by: Rob Herring --- 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 - Correct the misspell "rk3036-dw-hdmi" (Heiko) .

[PATCH v2 1/2] drm: rockchip/hdmi: add Innosilicon HDMI support

2016-01-29 Thread Yakir Yang
Hi ZhengYang, Thanks for your comments ;) On 01/29/2016 02:17 PM, 郑阳 wrote: > 在 2016年01月07日 18:03, Yakir Yang 写道: >> diff --git a/drivers/gpu/drm/rockchip/inno_hdmi.c >> b/drivers/gpu/drm/rockchip/inno_hdmi.c >> new file mode 100644 >> index 00

[PATCH v8 0/2] Add Rockchip Inno-HDMI driver

2016-01-29 Thread Yakir Yang
elper functions. (Mark) Changes in v3: - Use encoder enable/disable function, and remove the encoder DPMS function - Keep HDMI PLL power on in standby mode Changes in v2: - Using DRM atomic helper functions for connector init (Mark) - Remove "hdmi->connector.encoder = encoder;" (Mark)

[PATCH v8 1/2] drm/rockchip: hdmi: add Innosilicon HDMI support

2016-01-29 Thread Yakir Yang
The Innosilicon HDMI is a low power HDMI 1.4 transmitter IP, and it have been integrated on some rockchip CPUs (like RK3036, RK312x). Signed-off-by: Yakir Yang --- Changes in v8: - Don't check whether encoder output format is RGB colorspace, cause driver default configure the output color

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

2016-01-29 Thread Yakir Yang
Signed-off-by: Yakir Yang Signed-off-by: Yakir Yang Acked-by: Rob Herring --- 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 - Correct the misspell "rk3036-dw-hdmi&qu

<    1   2   3   4   5   6   7   8   >