[PATCH] drm: sysfs: Add to get current mode

2020-08-05 Thread Sandy Huang
add this node to get the current true mode. Signed-off-by: Sandy Huang --- drivers/gpu/drm/drm_sysfs.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/drivers/gpu/drm/drm_sysfs.c b/drivers/gpu/drm/drm_sysfs.c index 939f0032aab1..f39bcd34853b 100644 --- a

[PATCH v2] drm/of: Consider the state in which the ep is disabled

2020-07-07 Thread Sandy Huang
don't mask possible_crtcs if remote-point is disabled. Signed-off-by: Sandy Huang --- drivers/gpu/drm/drm_of.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/drm_of.c b/drivers/gpu/drm/drm_of.c index fdb05fbf72a0..565f05f5f11b 100644 --- a/drivers/gpu/drm/drm_of.c

[PATCH] drm/of: Consider the state in which the ep is disabled

2020-07-06 Thread Sandy Huang
don't mask possible_crtcs if remote-point is disabled. Signed-off-by: Sandy Huang --- drivers/gpu/drm/drm_of.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/drm_of.c b/drivers/gpu/drm/drm_of.c index fdb05fbf72a0..f5f250435add 100644 --- a/drivers/gpu/drm/drm

[PATCH v2] drm/rockchip: vop: fix vop full rgb24 r/b color error

2020-06-19 Thread Sandy Huang
RGB888 format msb is red component and the lsb is blue component, at vop full platform this is swapped, and this is different from vop lite and vop next, so add this patch to fix it. v2: move to has_rb_swapped() function. Signed-off-by: Sandy Huang --- drivers/gpu/drm/rockchip

[PATCH] drm/rockchip: vop: fix vop full rgb24 r/b color error

2020-06-18 Thread Sandy Huang
RGB888 format msb is red component and the lsb is blue component, at vop full platform this is swapped, and this is different from vop lite and vop next, so add this patch to fix it. Signed-off-by: Sandy Huang --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 8 1 file changed, 8

[PATCH] drm/rockchip: rgb: update SPDX license identifier

2019-01-23 Thread Sandy Huang
update SPDX License Identifier from GPL-2.0+ to GPL-2.0 and drop some GPL text. Signed-off-by: Sandy Huang --- drivers/gpu/drm/rockchip/rockchip_rgb.c | 11 +-- drivers/gpu/drm/rockchip/rockchip_rgb.h | 11 +-- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a

[PATCH] arm64: dts: rockchip: perfection vop property define for px30

2018-08-28 Thread Sandy Huang
Add display ports for display-subsystem and add reset property for vop node, if missing this two define, drm driver can't probe sucess. Signed-off-by: Sandy Huang --- arch/arm64/boot/dts/rockchip/px30.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boo

Re: [PATCH] drm/rockchip: vop: fixup linebuffer mode calc error

2018-04-19 Thread Sandy Huang
在 2018/4/17 19:14, Heiko Stuebner 写道: Hi Sandy, Am Dienstag, 17. April 2018, 12:15:07 CEST schrieb Sandy Huang: When video width is bigger than 3840 the linebuffer mode should be LB_YUV_3840X5. Can you explain that a bit better? I.e. when looking at the code, the very first check is width

[PATCH] drm/rockchip: vop: fixup linebuffer mode calc error

2018-04-17 Thread Sandy Huang
When video width is bigger than 3840 the linebuffer mode should be LB_YUV_3840X5. Signed-off-by: Sandy Huang --- drivers/gpu/drm/rockchip/rockchip_drm_vop.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.h b/drivers/gpu/drm

Re: [PATCH v2 10/43] drm/rockchip: add mutex vop lock

2018-01-29 Thread Sandy Huang
t(&vop->reg_lock); spin_lock_init(&vop->irq_lock); + mutex_init(&vop->vop_lock); ret = devm_request_irq(dev, vop->irq, vop_isr, IRQF_SHARED, dev_name(dev), vop); Reviewed-by: Sandy huang

Re: [PATCH v2 03/43] drm/rockchip: Respect page offset for PRIME mmap calls

2018-01-29 Thread Sandy Huang
vma); Reviewed-by: Sandy huang

Re: [PATCH v2 02/43] drm/rockchip: support prime import sg table

2018-01-29 Thread Sandy Huang
ze_t size, - struct sg_table *sgt); +rockchip_gem_prime_import_sg_table(struct drm_device *dev, + struct dma_buf_attachment *attach, + struct sg_table *sg); void *rockchip_gem_prime_vmap(struct drm_gem_object *obj); void rockchip_gem_prime_vunmap(struct drm_gem_object *obj, void *vaddr); Reviewed-by: Sandy huang

Re: [PATCH v2 01/43] drm/rockchip: Get rid of unnecessary struct fields

2018-01-29 Thread Sandy Huang
ice *master, void *data) spin_lock_init(&vop->reg_lock); spin_lock_init(&vop->irq_lock); - mutex_init(&vop->vsync_mutex); - ret = devm_request_irq(dev, vop->irq, vop_isr, IRQF_SHARED, dev_name(dev), vop); if

Re: [PATCH 04/19] drm/rockchip: Use the alpha format helper

2018-01-15 Thread Sandy Huang
OR_M0(ALPHA_SRC_INVERSE)); val = SRC_ALPHA_EN(1) | SRC_COLOR_M0(ALPHA_SRC_PRE_MUL) | remove dead email: Mark Yao Acked-by: Sandy huang

Re: [PATCH] MAINTAINERS: change maintainer for Rockchip drm drivers

2017-11-26 Thread Sandy Huang
itself now. I've also re-added Sandy to the recipients] Am Montag, 20. November 2017, 08:48:48 CET schrieb Daniel Vetter: On Mon, Nov 13, 2017 at 06:15:31PM +0800, Mark Yao wrote: For personal reasons, Mark Yao will leave rockchip, can not continue maintain drm/rockchip, Sandy Huang will take

Re: [PATCH] drm/rockchip: dma-mapping: Use vma_pages helper

2017-11-26 Thread Sandy Huang
Thanks, this update has merged to drm-misc-next months ago: https://patchwork.freedesktop.org/patch/178255/ 在 2017/11/22 23:24, Vasyl Gomonovych 写道: Use vma_pages function on vma object instead of explicit computation. ./drivers/gpu/drm/rockchip/rockchip_drm_gem.c:223:34-40: WARNING: Consider

Re: [PATCH 0/2] add support rk3126 vop support

2017-11-16 Thread Sandy Huang
pushed to drm-misc-next. 在 2017/11/14 19:27, Sandy Huang 写道: The following patch add support RK3126 vop support, there is only one VOP at RK3126, and the RK3126 VOP register layout is similar with RK3036, so some feature can reuse with RK3036. Sandy Huang (2): dt-bindings: add document for

[PATCH 0/2] add support rk3126 vop support

2017-11-14 Thread Sandy Huang
The following patch add support RK3126 vop support, there is only one VOP at RK3126, and the RK3126 VOP register layout is similar with RK3036, so some feature can reuse with RK3036. Sandy Huang (2): dt-bindings: add document for rk3126-vop drm/rockchip: vop: add rk3126 vop support

[PATCH 2/2] drm/rockchip: vop: add rk3126 vop support

2017-11-14 Thread Sandy Huang
RK3126 vop register layout is similar with rk3036, so some feature can reuse with rk3036. RK3126 support two overlay plane and one hwc plane, max output resolution is 1080p. it support IOMMU, and its IOMMU same as rk3288's Signed-off-by: Sandy Huang --- drivers/gpu/drm/roc

[PATCH 1/2] dt-bindings: add document for rk3126-vop

2017-11-14 Thread Sandy Huang
Signed-off-by: Sandy Huang --- Documentation/devicetree/bindings/display/rockchip/rockchip-vop.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/rockchip/rockchip-vop.txt b/Documentation/devicetree/bindings/display/rockchip/rockchip-vop.txt index

[PATCH v4 4/4] drm/rockchip: vop: Add more RGB output interface type

2017-11-01 Thread Sandy Huang
This patch add serial RGB output interface for rockchip vop, the more info about serial RGB output interface described at the following file: Documentation/devicetree/bindings/display/panel/panel-rgb.txt Signed-off-by: Sandy Huang Reviewed-by: Sean Paul --- Changes in v4: None Changes in v3

[PATCH v4 3/4] drm/rockchip: Add support for Rockchip Soc RGB output interface

2017-11-01 Thread Sandy Huang
Some Rockchip CRTCs, like rv1108, can directly output parallel and serial RGB data to panel or conversion chip, so we add this driver to probe encoder and connector. Signed-off-by: Sandy Huang Reviewed-by: Sean Paul Reviewed-by: Mark Yao --- Changes in v4: 1. add ROCKCHIP_RGB depend on

[PATCH v4 2/4] devicetree/bindings: display: Add document for rockchip RGB output

2017-11-01 Thread Sandy Huang
This path add support rv1108 rgb output interface driver. Signed-off-by: Sandy Huang --- Changes in v4: None Changes in v3: move rgb-mode to panel node which describe at: Documentation/devicetree/bindings/display/panel/panel-rgb.txt Changes in v2: 1. rename rockchip,rgb-mode to rgb-mode; 2

[PATCH v4 0/4] Add support rockchip RGB output interface

2017-11-01 Thread Sandy Huang
This patches add support rockchip RGB output, Some Rockchip CRTCs, like rv1108, can directly output parallel and serial RGB data to panel or to conversion chip. So we add this driver to probe encoder and connector to support this case. Sandy Huang (4): devicetree/bindings: display: Add

[PATCH v4 1/4] devicetree/bindings: display: Add doucument for RGB panels

2017-11-01 Thread Sandy Huang
Describe the panel property rgb-mode for parallel and serial RGB output interface, include the connection relations for each mode. Signed-off-by: Sandy Huang --- Changes: .../bindings/display/panel/panel-rgb.txt | 116 + 1 file changed, 116 insertions(+) create

Re: [PATCH v2 1/3] dt-bindings: Add document for rockchip RGB output interface

2017-10-09 Thread Sandy Huang
在 2017/10/9 21:05, Rob Herring 写道: On Mon, Oct 9, 2017 at 3:06 AM, Sandy Huang wrote: Hi rob, Thanks for your reply. 在 2017/10/4 5:56, Rob Herring 写道: On Fri, Sep 22, 2017 at 11:00:26AM +0800, Sandy Huang wrote: This path add support rv1108 rgb output interface driver. Signed-off

[PATCH v3 4/4] drm/rockchip: vop: Add more RGB output interface type

2017-10-09 Thread Sandy Huang
This patch add serial RGB output interface for rockchip vop, the more info about serial RGB output interface described at the following file: Documentation/devicetree/bindings/display/panel/panel-rgb.txt Signed-off-by: Sandy Huang --- Changes in v3: None Changes in v2: None drivers/gpu/drm

[PATCH v3 1/4] devicetree/bindings: display: Add doucument for RGB panels

2017-10-09 Thread Sandy Huang
Describe the panel property rgb-mode for parallel and serial RGB output interface, include the connection relations for each mode. Signed-off-by: Sandy Huang --- .../bindings/display/panel/panel-rgb.txt | 116 + 1 file changed, 116 insertions(+) create mode 100644

[PATCH v3 2/4] devicetree/bindings: display: Add document for rockchip RGB output

2017-10-09 Thread Sandy Huang
This path add support rv1108 rgb output interface driver. Signed-off-by: Sandy Huang --- Changes in v3: move rgb-mode to panel node which describe at: Documentation/devicetree/bindings/display/panel/panel-rgb.txt Changes in v2: 1. rename rockchip,rgb-mode to rgb-mode; 2. delete reg for

[PATCH v3 3/4] drm/rockchip: Add support for Rockchip Soc RGB output interface

2017-10-09 Thread Sandy Huang
Some Rockchip CRTCs, like rv1108, can directly output parallel and serial RGB data to panel or conversion chip, so we add this driver to probe encoder and connector. Signed-off-by: Sandy Huang --- Changes in v3: update for rgb-mode move to panel node. Changes in v2: 1. add error log when

Re: [PATCH v2 1/3] dt-bindings: Add document for rockchip RGB output interface

2017-10-09 Thread Sandy Huang
Hi rob, Thanks for your reply. 在 2017/10/4 5:56, Rob Herring 写道: On Fri, Sep 22, 2017 at 11:00:26AM +0800, Sandy Huang wrote: This path add support rv1108 rgb output interface driver. Signed-off-by: Sandy Huang --- Changes in v2: 1. rename rockchip,rgb-mode to rgb-mode; You can&#

[PATCH v3 0/4] Add support rockchip RGB output interface

2017-10-09 Thread Sandy Huang
This patches add support rockchip RGB output, Some Rockchip CRTCs, like rv1108, can directly output parallel and serial RGB data to panel or to conversion chip. So we add this driver to probe encoder and connector to support this case. Sandy Huang (4): devicetree/bindings: display: Add

Re: [PATCH v2 0/3] Add support rockchip RGB output interface

2017-09-30 Thread Sandy Huang
Do you have any suggests for this series of patches? Or apply to drm-misc-next? 在 2017/9/22 11:00, Sandy Huang 写道: This patches add support rockchip RGB output, Some Rockchip CRTCs, like rv1108, can directly output parallel and serial RGB data to panel or to conversion chip. So we add this

[PATCH v2 2/3] drm/rockchip: Add support for Rockchip Soc RGB output interface

2017-09-21 Thread Sandy Huang
Some Rockchip CRTCs, like rv1108, can directly output parallel and serial RGB data to panel or conversion chip, so we add this driver to probe encoder and connector. Signed-off-by: Sandy Huang --- Changes in v2: 1. add error log when probe failed; 2. update name_to_output_mode() according to

[PATCH v2 3/3] drm/rockchip: vop: Add more RGB output interface type

2017-09-21 Thread Sandy Huang
This patch add serial RGB output interface for rockchip vop, the more info about serial RGB output interface described at the following file: Documentation/devicetree/bindings/display/rockchip/rockchip-rgb.txt Signed-off-by: Sandy Huang --- No changes in v2: drivers/gpu/drm/rockchip

[PATCH v2 1/3] dt-bindings: Add document for rockchip RGB output interface

2017-09-21 Thread Sandy Huang
This path add support rv1108 rgb output interface driver. Signed-off-by: Sandy Huang --- Changes in v2: 1. rename rockchip,rgb-mode to rgb-mode; 2. delete reg for signle endpoint; .../bindings/display/rockchip/rockchip-rgb.txt | 78 ++ 1 file changed, 78 insertions

[PATCH v2 0/3] Add support rockchip RGB output interface

2017-09-21 Thread Sandy Huang
This patches add support rockchip RGB output, Some Rockchip CRTCs, like rv1108, can directly output parallel and serial RGB data to panel or to conversion chip. So we add this driver to probe encoder and connector to support this case. Sandy Huang (3): dt-bindings: Add document for rockchip RGB

Re: [PATCH 1/3] dt-bindings: Add document for rockchip RGB output interface

2017-09-21 Thread Sandy Huang
Hi rob, 在 2017/9/22 3:40, Rob Herring 写道: On Tue, Sep 19, 2017 at 9:57 PM, Sandy Huang wrote: 在 2017/9/20 9:51, Sandy Huang 写道: Hi rob, thanks for you review. 在 2017/9/19 22:46, Rob Herring 写道: On Thu, Sep 14, 2017 at 11:43:18AM +0800, Sandy Huang wrote: This path add support

Re: [PATCH 2/3] drm/rockchip: Add support for Rockchip Soc RGB output interface

2017-09-19 Thread Sandy Huang
Hi sean, Thanks for your review. 在 2017/9/20 7:02, Sean Paul 写道: On Thu, Sep 14, 2017 at 11:43:23AM +0800, Sandy Huang wrote: Like rockchip rv1108 crtc can directly output parallel and serial RGB data to panel or conversion chip, so we add this driver to probe encoder and connector

Re: [PATCH 1/3] dt-bindings: Add document for rockchip RGB output interface

2017-09-19 Thread Sandy Huang
在 2017/9/20 9:51, Sandy Huang 写道: Hi rob,     thanks for you review. 在 2017/9/19 22:46, Rob Herring 写道: On Thu, Sep 14, 2017 at 11:43:18AM +0800, Sandy Huang wrote: This path add support rv1108 rgb output interface driver. Signed-off-by: Sandy Huang ---   .../bindings/display/rockchip

Re: [PATCH 1/3] dt-bindings: Add document for rockchip RGB output interface

2017-09-19 Thread Sandy Huang
Hi rob, thanks for you review. 在 2017/9/19 22:46, Rob Herring 写道: On Thu, Sep 14, 2017 at 11:43:18AM +0800, Sandy Huang wrote: This path add support rv1108 rgb output interface driver. Signed-off-by: Sandy Huang --- .../bindings/display/rockchip/rockchip-rgb.txt | 80

[PATCH 2/3] drm/rockchip: Add support for Rockchip Soc RGB output interface

2017-09-13 Thread Sandy Huang
Like rockchip rv1108 crtc can directly output parallel and serial RGB data to panel or conversion chip, so we add this driver to probe encoder and connector. Signed-off-by: Sandy Huang --- drivers/gpu/drm/rockchip/Kconfig| 9 + drivers/gpu/drm/rockchip/Makefile | 1

[PATCH 1/3] dt-bindings: Add document for rockchip RGB output interface

2017-09-13 Thread Sandy Huang
This path add support rv1108 rgb output interface driver. Signed-off-by: Sandy Huang --- .../bindings/display/rockchip/rockchip-rgb.txt | 80 ++ 1 file changed, 80 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/rockchip/rockchip-rgb.txt

[PATCH 0/3] Add support rockchip RGB output interface

2017-09-13 Thread Sandy Huang
This patches add support some rockchip Soc like rv1108, the VOP can directly output parallel and serial RGB data to panel or to conversion chip. So we add this driver to probe encoder and connector to support this case. Sandy Huang (3): dt-bindings: Add document for rockchip RGB output

[PATCH 3/3] drm/rockchip: vop: Add more RGB output interface type

2017-09-13 Thread Sandy Huang
This patch add serial RGB output interface for rockchip vop, the more info about serial RGB output interface described at the following file: Documentation/devicetree/bindings/display/rockchip/rockchip-rgb.txt Signed-off-by: Sandy Huang --- drivers/gpu/drm/rockchip/rockchip_drm_vop.h | 2 ++ 1

[PATCH v8 1/3] dt-bindings: display: Add Document for Rockchip Soc LVDS

2017-09-02 Thread Sandy Huang
This patch add Document for Rockchip Soc RK3288 LVDS, This based on the patches from Mark yao and Heiko Stuebner. Signed-off-by: Mark yao Signed-off-by: Heiko Stuebner Signed-off-by: Sandy Huang --- Change the Signed-off order .../bindings/display/rockchip/rockchip-lvds.txt| 99

[PATCH v8 3/3] drm/rockchip: Add support for Rockchip Soc LVDS

2017-09-02 Thread Sandy Huang
This adds support for Rockchip soc lvds found on rk3288 Based on the patches from Mark yao and Heiko Stuebner. Signed-off-by: Mark Yao Signed-off-by: Heiko Stuebner Signed-off-by: Sandy Huang --- Change the Signed-off order drivers/gpu/drm/rockchip/Kconfig| 8 + drivers/gpu/drm

[PATCH v8 2/3] ARM: dts: Add LVDS info for rk3288

2017-09-02 Thread Sandy Huang
add LVDS info in rk3288.dtsi for LVDS driver This based on the patches from Mark yao and Heiko Stuebner. Signed-off-by: Mark yao Signed-off-by: Heiko Stuebner Signed-off-by: Sandy Huang --- Change the Signed-off order arch/arm/boot/dts/rk3288.dtsi | 52

[PATCH v8 0/3] Add support Rockchip Soc LVDS

2017-09-02 Thread Sandy Huang
rockchip_lvds_encoder_helper_funcs to atomic API - Add bridge function for RGB/LVDS convert to other output type - Fix some unreasonable define - Adapter to the latest rockchip DRM driver framework - Add pinctrl for RGB output type - Reseved some define for rockchip next Soc Sandy Huang (3): dt-bindings

Re: [PATCH v7 1/3] dt-bindings: display: Add Document for Rockchip Soc LVDS

2017-08-31 Thread Sandy Huang
Hi heiko, 在 2017/8/29 18:29, Heiko Stuebner 写道: Am Dienstag, 29. August 2017, 18:17:11 CEST schrieb Mark yao: On 2017年08月23日 14:26, Sandy Huang wrote: This patch add Document for Rockchip Soc RK3288 LVDS, This based on the patches from Mark yao and Heiko Stuebner. Signed-off-by: Sandy Huang

Re: [PATCH v6 1/3] dt-bindings: display: Add Document for Rockchip Soc LVDS

2017-08-22 Thread Sandy Huang
在 2017/8/22 10:48, Rob Herring 写道: On Fri, Aug 18, 2017 at 04:09:49PM +0800, Sandy Huang wrote: This patch add Document for Rockchip Soc RK3288 LVDS, This based on the patches from Mark yao and Heiko Stuebner. Signed-off-by: Sandy Huang Signed-off-by: Mark yao Signed-off-by: Heiko Stuebner

[PATCH v7 1/3] dt-bindings: display: Add Document for Rockchip Soc LVDS

2017-08-22 Thread Sandy Huang
This patch add Document for Rockchip Soc RK3288 LVDS, This based on the patches from Mark yao and Heiko Stuebner. Signed-off-by: Sandy Huang Signed-off-by: Mark yao Signed-off-by: Heiko Stuebner --- Changes according to Rob Herring's review. .../bindings/display/rockchip/roc

[PATCH v7 3/3] drm/rockchip: Add support for Rockchip Soc LVDS

2017-08-22 Thread Sandy Huang
This adds support for Rockchip soc lvds found on rk3288 Based on the patches from Mark yao and Heiko Stuebner Signed-off-by: Sandy Huang Signed-off-by: Mark Yao Signed-off-by: Heiko Stuebner --- drivers/gpu/drm/rockchip/Kconfig| 9 + drivers/gpu/drm/rockchip/Makefile

[PATCH v7 2/3] ARM: dts: Add LVDS info for rk3288

2017-08-22 Thread Sandy Huang
add LVDS info in rk3288.dtsi for LVDS driver This based on the patches from Mark yao and Heiko Stuebner. Signed-off-by: Sandy Huang Signed-off-by: Mark yao Signed-off-by: Heiko Stuebner --- arch/arm/boot/dts/rk3288.dtsi | 52 +++ 1 file changed, 52

[PATCH v7 0/3] Add support Rockchip Soc LVDS

2017-08-22 Thread Sandy Huang
rockchip_lvds_encoder_helper_funcs to atomic API - Add bridge function for RGB/LVDS convert to other output type - Fix some unreasonable define - Adapter to the latest rockchip DRM driver framework - Add pinctrl for RGB output type - Reseved some define for rockchip next Soc Sandy Huang (3): dt-bindings

[PATCH v6 1/3] dt-bindings: display: Add Document for Rockchip Soc LVDS

2017-08-18 Thread Sandy Huang
This patch add Document for Rockchip Soc RK3288 LVDS, This based on the patches from Mark yao and Heiko Stuebner. Signed-off-by: Sandy Huang Signed-off-by: Mark yao Signed-off-by: Heiko Stuebner --- Changes: - use data-mapping instead of rockchip,data-mapping and rockchip,data-width

[PATCH v6 2/3] ARM: dts: Add LVDS info for rk3288

2017-08-18 Thread Sandy Huang
add LVDS info in rk3288.dtsi for LVDS driver This based on the patches from Mark yao and Heiko Stuebner. Signed-off-by: Sandy Huang Signed-off-by: Mark yao Signed-off-by: Heiko Stuebner --- arch/arm/boot/dts/rk3288.dtsi | 52 +++ 1 file changed, 52

[PATCH v6 3/3] drm/rockchip: Add support for Rockchip Soc LVDS

2017-08-18 Thread Sandy Huang
This adds support for Rockchip soc lvds found on rk3288 Based on the patches from Mark yao and Heiko Stuebner Signed-off-by: Sandy Huang Signed-off-by: Mark Yao Signed-off-by: Heiko Stuebner --- Changes: - remove drm_bridge_detach at rockchip_lvds_unbind, because this will be called

Re: [PATCH v5 1/3] dt-bindings: display: Add Document for Rockchip Soc LVDS

2017-08-18 Thread Sandy Huang
Hi Rob, 在 2017/8/18 4:56, Rob Herring 写道: On Tue, Aug 15, 2017 at 11:49:19AM +0800, Sandy Huang wrote: This patch add Document for Rockchip Soc RK3288 LVDS, This based on the patches from Mark yao and Heiko Stuebner. Signed-off-by: Sandy Huang Signed-off-by: Mark yao Signed-off-by: Heiko

[PATCH v6 0/3] Add support Rockchip Soc LVDS

2017-08-18 Thread Sandy Huang
rockchip_lvds_encoder_helper_funcs to atomic API - Add bridge function for RGB/LVDS convert to other output type - Fix some unreasonable define - Adapter to the latest rockchip DRM driver framework - Add pinctrl for RGB output type - Reseved some define for rockchip next Soc Sandy Huang (3): dt-bindings

Re: [PATCH v5 3/3] drm/rockchip: Add support for Rockchip Soc LVDS

2017-08-15 Thread Sandy Huang
在 2017/8/15 17:08, Wadim Egorov 写道: Am 15.08.2017 um 05:49 schrieb Sandy Huang: This adds support for Rockchip soc lvds found on rk3288 Based on the patches from Mark yao and Heiko Stuebner Signed-off-by: Sandy Huang Signed-off-by: Mark Yao Signed-off-by: Heiko Stuebner --- drivers

[PATCH v5 2/3] ARM: dts: Add LVDS info for rk3288

2017-08-14 Thread Sandy Huang
add LVDS info in rk3288.dtsi for LVDS driver This based on the patches from Mark yao and Heiko Stuebner. Signed-off-by: Sandy Huang Signed-off-by: Mark yao Signed-off-by: Heiko Stuebner --- arch/arm/boot/dts/rk3288.dtsi | 52 +++ 1 file changed, 52

Re: [PATCH v4 3/3] drm/rockchip: Add support for Rockchip Soc LVDS

2017-08-14 Thread Sandy Huang
Hi mark, Thanks for you review. 在 2017/8/15 9:53, Mark yao 写道: Hi Sandy On 2017年08月15日 08:56, Sandy Huang wrote: This adds support for Rockchip soc lvds found on rk3288 Based on the patches from Mark yao and Heiko Stuebner Signed-off-by: Sandy Huang Signed-off-by: Mark yao Signed-off

[PATCH v5 1/3] dt-bindings: display: Add Document for Rockchip Soc LVDS

2017-08-14 Thread Sandy Huang
This patch add Document for Rockchip Soc RK3288 LVDS, This based on the patches from Mark yao and Heiko Stuebner. Signed-off-by: Sandy Huang Signed-off-by: Mark yao Signed-off-by: Heiko Stuebner --- Changes according to Mark Yao reviews. .../bindings/display/rockchip/rockchip-lvds.txt

[PATCH v5 3/3] drm/rockchip: Add support for Rockchip Soc LVDS

2017-08-14 Thread Sandy Huang
This adds support for Rockchip soc lvds found on rk3288 Based on the patches from Mark yao and Heiko Stuebner Signed-off-by: Sandy Huang Signed-off-by: Mark Yao Signed-off-by: Heiko Stuebner --- drivers/gpu/drm/rockchip/Kconfig| 9 + drivers/gpu/drm/rockchip/Makefile

[PATCH v5 0/3] Add support Rockchip Soc LVDS

2017-08-14 Thread Sandy Huang
unreasonable define - Adapter to the latest rockchip DRM driver framework - Add pinctrl for RGB output type - Reseved some define for rockchip next Soc Sandy Huang (3): dt-bindings: display: Add Document for Rockchip Soc LVDS ARM: dts: Add LVDS info for rk3288 drm/rockchip: Add support for

[PATCH v4 2/3] ARM: dts: Add LVDS info for rk3288

2017-08-14 Thread Sandy Huang
add LVDS info in rk3288.dtsi for LVDS driver This based on the patches from Mark yao and Heiko Stuebner. Signed-off-by: Sandy Huang Signed-off-by: Mark yao Signed-off-by: Heiko Stuebner --- add ADD_ROCKCHIP_SUB_DRIVER(rockchip_lvds_driver, CONFIG_ROCKCHIP_LVDS); arch/arm/boot/dts/rk3288

[PATCH v4 3/3] drm/rockchip: Add support for Rockchip Soc LVDS

2017-08-14 Thread Sandy Huang
This adds support for Rockchip soc lvds found on rk3288 Based on the patches from Mark yao and Heiko Stuebner Signed-off-by: Sandy Huang Signed-off-by: Mark yao Signed-off-by: Heiko Stuebner --- drivers/gpu/drm/rockchip/Kconfig| 9 + drivers/gpu/drm/rockchip/Makefile

[PATCH v4 0/3] Add support Rockchip Soc LVDS

2017-08-14 Thread Sandy Huang
unreasonable define - Adapter to the latest rockchip DRM driver framework - Add pinctrl for RGB output type - Reseved some define for rockchip next Soc Sandy Huang (3): dt-bindings: display: Add Document for Rockchip Soc LVDS ARM: dts: Add LVDS info for rk3288 drm/rockchip: Add support for

[PATCH v4 1/3] dt-bindings: display: Add Document for Rockchip Soc LVDS

2017-08-14 Thread Sandy Huang
This patch add Document for Rockchip Soc RK3288 LVDS, This based on the patches from Mark yao and Heiko Stuebner. Signed-off-by: Sandy Huang Signed-off-by: Mark yao Signed-off-by: Heiko Stuebner --- .../bindings/display/rockchip/rockchip-lvds.txt| 106 + 1 file changed

Re: [PATCH v3 3/3] drm/rockchip: Add support for Rockchip Soc LVDS

2017-08-14 Thread Sandy Huang
hrieb Sandy Huang: Hi Wadim Egorov, Thanks for you remind me. this is stored in my local code and forget to send the patch, i will add it at V4 patches. This adds support for Rockchip soc lvds found on rk3288 Based on the patches from Mark yao and Heiko Stuebner Signed-off-by: Sandy Huang S

[PATCH v3 3/3] drm/rockchip: Add support for Rockchip Soc LVDS

2017-08-14 Thread Sandy Huang
This adds support for Rockchip soc lvds found on rk3288 Based on the patches from Mark yao and Heiko Stuebner Signed-off-by: Sandy Huang Signed-off-by: Mark yao Signed-off-by: Heiko Stuebner --- Changes: use drm_of_find_panel_or_bridge() to get panel or bridge. drivers/gpu/drm/rockchip

[PATCH v3 1/3] dt-bindings: display: Add Document for Rockchip Soc LVDS

2017-08-14 Thread Sandy Huang
This patch add Document for Rockchip Soc RK3288 LVDS, This based on the patches from Mark yao and Heiko Stuebner. Signed-off-by: Sandy Huang Signed-off-by: Mark yao Signed-off-by: Heiko Stuebner --- Changes: set lvds data-mapping to opctions. .../bindings/display/rockchip/rockchip

Re: [PATCH 1/3] dt-bindings: display: Add Document for Rockchip Soc LVDS

2017-08-13 Thread Sandy Huang
在 2017/8/11 23:38, Philipp Zabel 写道: On Wed, 2017-08-09 at 18:00 +0800, Sandy Huang wrote: This patch add Document for Rockchip Soc RK3288 LVDS, This based on the patches from Mark yao and Heiko Stuebner. Signed-off-by: Sandy Huang Signed-off-by: Mark yao Signed-off-by: Heiko Stuebner

Re: [PATCH 3/3] drm/rockchip: Add support for Rockchip Soc LVDS

2017-08-13 Thread Sandy Huang
在 2017/8/11 22:44, Sean Paul 写道: On Fri, Aug 11, 2017 at 10:15:16AM +0800, Sandy Huang wrote: 在 2017/8/11 2:05, Sean Paul 写道: On Thu, Aug 10, 2017 at 05:35:52PM +0800, Sandy Huang wrote: Hi Sean Paul, Thanks for your review. 在 2017/8/10 3:58, Sean Paul 写道: On Wed, Aug 09, 2017 at

Re: [PATCH 3/3] drm/rockchip: Add support for Rockchip Soc LVDS

2017-08-10 Thread Sandy Huang
在 2017/8/11 2:05, Sean Paul 写道: On Thu, Aug 10, 2017 at 05:35:52PM +0800, Sandy Huang wrote: Hi Sean Paul, Thanks for your review. 在 2017/8/10 3:58, Sean Paul 写道: On Wed, Aug 09, 2017 at 06:00:59PM +0800, Sandy Huang wrote: This adds support for Rockchip soc lvds found on rk3288 Based

Re: [PATCH 3/3] drm/rockchip: Add support for Rockchip Soc LVDS

2017-08-10 Thread Sandy Huang
sorry, it's a wrong email, send the v1 patch ,please ignore. 在 2017/8/10 17:49, Sandy Huang 写道: This adds support for Rockchip soc lvds found on rk3288 Based on the patches from Mark yao and Heiko Stuebner Signed-off-by: Sandy Huang Signed-off-by: Mark yao Signed-off-by: Heiko Stu

[PATCH v2 3/3] drm/rockchip: Add support for Rockchip Soc LVDS

2017-08-10 Thread Sandy Huang
This adds support for Rockchip soc lvds found on rk3288 Based on the patches from Mark yao and Heiko Stuebner Signed-off-by: Sandy Huang Signed-off-by: Mark yao Signed-off-by: Heiko Stuebner --- Changes according to Sean Paul's reviews. drivers/gpu/drm/rockchip/Kconfig

[PATCH 3/3] drm/rockchip: Add support for Rockchip Soc LVDS

2017-08-10 Thread Sandy Huang
This adds support for Rockchip soc lvds found on rk3288 Based on the patches from Mark yao and Heiko Stuebner Signed-off-by: Sandy Huang Signed-off-by: Mark yao Signed-off-by: Heiko Stuebner --- drivers/gpu/drm/rockchip/Kconfig | 9 + drivers/gpu/drm/rockchip/Makefile| 1

Re: [PATCH 3/3] drm/rockchip: Add support for Rockchip Soc LVDS

2017-08-10 Thread Sandy Huang
Hi Sean Paul, Thanks for your review. 在 2017/8/10 3:58, Sean Paul 写道: On Wed, Aug 09, 2017 at 06:00:59PM +0800, Sandy Huang wrote: This adds support for Rockchip soc lvds found on rk3288 Based on the patches from Mark yao and Heiko Stuebner Signed-off-by: Sandy Huang Signed-off-by: Mark

[PATCH 2/3] ARM: dts: Add LVDS info for rk3288

2017-08-09 Thread Sandy Huang
add LVDS info in rk3288.dtsi for LVDS driver This based on the patches from Mark yao and Heiko Stuebner. Signed-off-by: Sandy Huang Signed-off-by: Mark yao Signed-off-by: Heiko Stuebner --- arch/arm/boot/dts/rk3288.dtsi | 52 +++ 1 file changed, 52

[PATCH 3/3] drm/rockchip: Add support for Rockchip Soc LVDS

2017-08-09 Thread Sandy Huang
This adds support for Rockchip soc lvds found on rk3288 Based on the patches from Mark yao and Heiko Stuebner Signed-off-by: Sandy Huang Signed-off-by: Mark yao Signed-off-by: Heiko Stuebner --- drivers/gpu/drm/rockchip/Kconfig | 9 + drivers/gpu/drm/rockchip/Makefile| 1

[PATCH 1/3] dt-bindings: display: Add Document for Rockchip Soc LVDS

2017-08-09 Thread Sandy Huang
This patch add Document for Rockchip Soc RK3288 LVDS, This based on the patches from Mark yao and Heiko Stuebner. Signed-off-by: Sandy Huang Signed-off-by: Mark yao Signed-off-by: Heiko Stuebner --- .../bindings/display/rockchip/rockchip-lvds.txt| 104 + 1 file changed

[PATCH 0/3] drm/rockchip: lvds: add support Rockchip Soc LVDS

2017-08-09 Thread Sandy Huang
rockchip_lvds_encoder_helper_funcs to atomic API - Add bridge function for RGB/LVDS convert to other output type - Fix some unreasonable define - Adapter to the latest rockchip DRM driver framework - Add pinctrl for RGB output type - Reseved some define for rockchip next Soc Sandy Huang (3): dt-bindings

Re: [PATCH v1.1] drm/rockchip: fix race with kms hotplug and fbdev

2017-08-03 Thread Sandy Huang
hip/rockchip_drm_drv.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) Reviewed-by: Sandy huang

Re: [PATCH 5/6] drm/rockchip: vop: report error when check resource error

2017-08-03 Thread Sandy Huang
+ DRM_ERROR("Invalid Source: Yuv format not support odd xpos\n"); return -EINVAL; + } return 0; } Reviewed-by: Sandy huang

Re: [PATCH 3/6] drm/rockchip: vop: fix NV12 video display error

2017-08-03 Thread Sandy Huang
+ vskiplines - 1) / vskiplines; + if (act_height == dst_h) + return GET_SCL_FT_BILI_DN(src_h, dst_h) / vskiplines; + return GET_SCL_FT_BILI_DN(act_height, dst_h); } Reviewed-by: Sandy huang

Re: [PATCH 4/6] drm/rockchip: vop: round_up pitches to word align

2017-08-03 Thread Sandy Huang
RGB888 : (win0_vir_width*3/4) + (win0_vir_width%3) RGB565 : ceil(win0_vir_width/2) YUV : ceil(win0_vir_width/4) Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Sandy huang

Re: [PATCH 2/6] drm/rockchip: vop: fix iommu page fault when resume

2017-08-03 Thread Sandy Huang
ism would keep tracing the modify, everything would be safe. Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 33 + 1 file changed, 15 insertions(+), 18 deletions(-) Reviewed-by: Sandy huang

Re: [PATCH 1/6] drm/rockchip: vop: no need wait vblank on crtc enable

2017-08-03 Thread Sandy Huang
Hi mark, 在 2017/7/31 17:49, Mark Yao 写道: Since atomic framework, crtc enable and disable are in pairs, no need to wait vblank. Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 36 - 1 file changed, 36 deletions(-) Reviewed-by: Sandy