[RESEND PATCH v11 PATCH 2/5] phy: Add USB Type-C PHY driver for rk3399

2016-08-12 Thread Chris Zhong
PHY deivces, the phy[0] for DP, and phy[1] for USB3. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Kever Yang <kever.y...@rock-chips.com> Reviewed-by: Guenter Roeck <gro...@chromium.org> Tested-by: Guenter Roeck <gro...@chromium.org> --- Changes

[RESEND PATCH v11 PATCH 0/5] Rockchip Type-C and DisplayPort driver

2016-08-12 Thread Chris Zhong
a err log when drm_of_encoder_active_endpoint_id - modify the dclk pin_pol to a single line Chris Zhong (5): Documentation: bindings: add dt doc for Rockchip USB Type-C PHY phy: Add USB Type-C PHY driver for rk3399 arm64: dts: rockchip: add Type-C phy for RK3399 Documentation: bindings: add dt d

[RESEND PATCH v11 PATCH 3/5] arm64: dts: rockchip: add Type-C phy for RK3399

2016-08-12 Thread Chris Zhong
There are 2 Type-C phy on RK3399, they are almost same, except the address of register. They support USB3.0 Type-C and DisplayPort1.3 Alt Mode on USB Type-C. Register a phy, supply it to USB3 controller and DP controller. Signed-off-by: Chris Zhong Reviewed-by: Guenter Roeck --- Changes

[RESEND PATCH v11 PATCH 2/5] phy: Add USB Type-C PHY driver for rk3399

2016-08-12 Thread Chris Zhong
PHY deivces, the phy[0] for DP, and phy[1] for USB3. Signed-off-by: Chris Zhong Signed-off-by: Kever Yang Reviewed-by: Guenter Roeck Tested-by: Guenter Roeck --- Changes in v11: - make a clearer demarcation between usb phy and dp phy. Changes in v10: - do not control dp select and hpd config

[RESEND PATCH v11 PATCH 1/5] Documentation: bindings: add dt doc for Rockchip USB Type-C PHY

2016-08-12 Thread Chris Zhong
This patch adds a binding that describes the Rockchip USB Type-C PHY for rk3399 Signed-off-by: Chris Zhong <z...@rock-chips.com> Reviewed-by: Tomasz Figa <tf...@chromium.org> Reviewed-by: Kever Yang <kever.y...@rock-chips.com> Reviewed-by: Guenter Roeck <li...@roeck-us.net&g

[RESEND PATCH v11 PATCH 4/5] Documentation: bindings: add dt documentation for cdn DP controller

2016-08-12 Thread Chris Zhong
This patch adds a binding that describes the cdn DP controller for rk3399. Signed-off-by: Chris Zhong <z...@rock-chips.com> Acked-by: Rob Herring <r...@kernel.org> --- Changes in v11: - refer dp phy Changes in v10: - add pclk_vio_grf clock Changes in v9: - modify the reference phy

[RESEND PATCH v11 PATCH 1/5] Documentation: bindings: add dt doc for Rockchip USB Type-C PHY

2016-08-12 Thread Chris Zhong
This patch adds a binding that describes the Rockchip USB Type-C PHY for rk3399 Signed-off-by: Chris Zhong Reviewed-by: Tomasz Figa Reviewed-by: Kever Yang Reviewed-by: Guenter Roeck Acked-by: Rob Herring --- Changes in v11: - make a clearer emarcation between usb phy and dp phy Changes

[RESEND PATCH v11 PATCH 4/5] Documentation: bindings: add dt documentation for cdn DP controller

2016-08-12 Thread Chris Zhong
This patch adds a binding that describes the cdn DP controller for rk3399. Signed-off-by: Chris Zhong Acked-by: Rob Herring --- Changes in v11: - refer dp phy Changes in v10: - add pclk_vio_grf clock Changes in v9: - modify the reference phy = < 0>, < 0>; Changes in v8: None C

[PATCH v11 PATCH 3/5] arm64: dts: rockchip: add Type-C phy for RK3399

2016-08-12 Thread Chris Zhong
There are 2 Type-C phy on RK3399, they are almost same, except the address of register. They support USB3.0 Type-C and DisplayPort1.3 Alt Mode on USB Type-C. Register a phy, supply it to USB3 controller and DP controller. Signed-off-by: Chris Zhong <z...@rock-chips.com> Reviewed-by: Guenter

[PATCH v11 PATCH 3/5] arm64: dts: rockchip: add Type-C phy for RK3399

2016-08-12 Thread Chris Zhong
There are 2 Type-C phy on RK3399, they are almost same, except the address of register. They support USB3.0 Type-C and DisplayPort1.3 Alt Mode on USB Type-C. Register a phy, supply it to USB3 controller and DP controller. Signed-off-by: Chris Zhong Reviewed-by: Guenter Roeck --- Changes

[PATCH v11 PATCH 4/5] Documentation: bindings: add dt documentation for cdn DP controller

2016-08-12 Thread Chris Zhong
This patch adds a binding that describes the cdn DP controller for rk3399. Signed-off-by: Chris Zhong <z...@rock-chips.com> Acked-by: Rob Herring <r...@kernel.org> --- Changes in v11: - refer dp phy Changes in v10: - add pclk_vio_grf clock Changes in v9: - modify the reference phy

[PATCH v11 PATCH 5/5] drm/rockchip: cdn-dp: add cdn DP support for rk3399

2016-08-12 Thread Chris Zhong
/firmware/rockchip/dptx.bin. The uCPU in charge of aux communication and link training, the host use mailbox to communicate with the ucpu. The dclk pin_pol of vop must not be invert for DP. Signed-off-by: Chris Zhong <z...@rock-chips.com> Reviewed-by: Sean Paul <seanp...@chromium.org> Acked-

[PATCH v11 PATCH 4/5] Documentation: bindings: add dt documentation for cdn DP controller

2016-08-12 Thread Chris Zhong
This patch adds a binding that describes the cdn DP controller for rk3399. Signed-off-by: Chris Zhong Acked-by: Rob Herring --- Changes in v11: - refer dp phy Changes in v10: - add pclk_vio_grf clock Changes in v9: - modify the reference phy = < 0>, < 0>; Changes in v8: None C

[PATCH v11 PATCH 5/5] drm/rockchip: cdn-dp: add cdn DP support for rk3399

2016-08-12 Thread Chris Zhong
/firmware/rockchip/dptx.bin. The uCPU in charge of aux communication and link training, the host use mailbox to communicate with the ucpu. The dclk pin_pol of vop must not be invert for DP. Signed-off-by: Chris Zhong Reviewed-by: Sean Paul Acked-by: Mark Yao --- Changes in v11: - add best_encoder back

[PATCH v11 PATCH 0/5] Rockchip Type-C and DisplayPort driver

2016-08-12 Thread Chris Zhong
ove ADDR_ADJ define - use devm_clk_get(>dev, "tcpdcore") - add extcon node description - add #sound-dai-cells description - use extcon API - use hdmi-codec for the DP Asoc - do not initialize the "ret" - printk a err log when drm_of_encoder_active_endpoint_id - modify the dclk pi

[PATCH v11 PATCH 0/5] Rockchip Type-C and DisplayPort driver

2016-08-12 Thread Chris Zhong
ove ADDR_ADJ define - use devm_clk_get(>dev, "tcpdcore") - add extcon node description - add #sound-dai-cells description - use extcon API - use hdmi-codec for the DP Asoc - do not initialize the "ret" - printk a err log when drm_of_encoder_active_endpoint_id - modify the dclk pi

[PATCH v11 PATCH 2/5] phy: Add USB Type-C PHY driver for rk3399

2016-08-12 Thread Chris Zhong
PHY deivces, the phy[0] for DP, and phy[1] for USB3. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v11: - make a clearer demarcation between usb phy and dp phy. Changes in v10: - do not control dp select an

[PATCH v11 PATCH 1/5] Documentation: bindings: add dt doc for Rockchip USB Type-C PHY

2016-08-12 Thread Chris Zhong
This patch adds a binding that describes the Rockchip USB Type-C PHY for rk3399 Signed-off-by: Chris Zhong <z...@rock-chips.com> Reviewed-by: Tomasz Figa <tf...@chromium.org> Reviewed-by: Kever Yang <kever.y...@rock-chips.com> Acked-by: Rob Herring <r...@kernel.org> ---

[PATCH v11 PATCH 2/5] phy: Add USB Type-C PHY driver for rk3399

2016-08-12 Thread Chris Zhong
PHY deivces, the phy[0] for DP, and phy[1] for USB3. Signed-off-by: Chris Zhong Signed-off-by: Kever Yang --- Changes in v11: - make a clearer demarcation between usb phy and dp phy. Changes in v10: - do not control dp select and hpd config in phy driver Changes in v9: - the new_mode should

[PATCH v11 PATCH 1/5] Documentation: bindings: add dt doc for Rockchip USB Type-C PHY

2016-08-12 Thread Chris Zhong
This patch adds a binding that describes the Rockchip USB Type-C PHY for rk3399 Signed-off-by: Chris Zhong Reviewed-by: Tomasz Figa Reviewed-by: Kever Yang Acked-by: Rob Herring --- Changes in v11: - make a clearer emarcation between usb phy and dp phy Changes in v10: - remove rockchip

[v10.2 PATCH 5/5] drm/rockchip: cdn-dp: add cdn DP support for rk3399

2016-08-11 Thread Chris Zhong
/firmware/rockchip/dptx.bin. The uCPU in charge of aux communication and link training, the host use mailbox to communicate with the ucpu. The dclk pin_pol of vop must not be invert for DP. Signed-off-by: Chris Zhong <z...@rock-chips.com> Reviewed-by: Sean Paul <seanp...@chromium.org> Acked-

[v10.2 PATCH 5/5] drm/rockchip: cdn-dp: add cdn DP support for rk3399

2016-08-11 Thread Chris Zhong
/firmware/rockchip/dptx.bin. The uCPU in charge of aux communication and link training, the host use mailbox to communicate with the ucpu. The dclk pin_pol of vop must not be invert for DP. Signed-off-by: Chris Zhong Reviewed-by: Sean Paul Acked-by: Mark Yao --- Changes in v10.2: - remove best_encoder

Re: [v2 PATCH] clk: rockchip: mark rk3399 hdcp_noc and vio_noc as critical

2016-08-11 Thread Chris Zhong
Hi Heiko On 08/12/2016 06:17 AM, Heiko Stübner wrote: Am Dienstag, 9. August 2016, 11:02:33 schrieb Chris Zhong: Fix incorrect rk3399 aclk_vio gating bit, it should be 0, not 10. With this modification, the aclk_vio_noc should be put into critical list, since it is required by VOP

Re: [v2 PATCH] clk: rockchip: mark rk3399 hdcp_noc and vio_noc as critical

2016-08-11 Thread Chris Zhong
Hi Heiko On 08/12/2016 06:17 AM, Heiko Stübner wrote: Am Dienstag, 9. August 2016, 11:02:33 schrieb Chris Zhong: Fix incorrect rk3399 aclk_vio gating bit, it should be 0, not 10. With this modification, the aclk_vio_noc should be put into critical list, since it is required by VOP

[v10.1 PATCH 5/5] drm/rockchip: cdn-dp: add cdn DP support for rk3399

2016-08-10 Thread Chris Zhong
/firmware/rockchip/dptx.bin. The uCPU in charge of aux communication and link training, the host use mailbox to communicate with the ucpu. The dclk pin_pol of vop must not be invert for DP. Signed-off-by: Chris Zhong <z...@rock-chips.com> Reviewed-by: Sean Paul <seanp...@chromium.org> Acked-

[v10.1 PATCH 5/5] drm/rockchip: cdn-dp: add cdn DP support for rk3399

2016-08-10 Thread Chris Zhong
/firmware/rockchip/dptx.bin. The uCPU in charge of aux communication and link training, the host use mailbox to communicate with the ucpu. The dclk pin_pol of vop must not be invert for DP. Signed-off-by: Chris Zhong Reviewed-by: Sean Paul Acked-by: Mark Yao --- Changes in v10.1: - support read sink

Re: [v10 PATCH 0/5] Rockchip Type-C and DisplayPort driver

2016-08-10 Thread Chris Zhong
Hi Chanwoo On 08/10/2016 08:37 AM, Chanwoo Choi wrote: Hi Chris, On 2016년 08월 10일 08:32, Chris Zhong wrote: Hi all This series patch is for rockchip Type-C phy and DisplayPort controller driver. The USB Type-C PHY is designed to support the USB3 and DP applications. The PHY basically has

Re: [v10 PATCH 0/5] Rockchip Type-C and DisplayPort driver

2016-08-10 Thread Chris Zhong
Hi Chanwoo On 08/10/2016 08:37 AM, Chanwoo Choi wrote: Hi Chris, On 2016년 08월 10일 08:32, Chris Zhong wrote: Hi all This series patch is for rockchip Type-C phy and DisplayPort controller driver. The USB Type-C PHY is designed to support the USB3 and DP applications. The PHY basically has

[v10 PATCH 0/5] Rockchip Type-C and DisplayPort driver

2016-08-09 Thread Chris Zhong
API - use hdmi-codec for the DP Asoc - do not initialize the "ret" - printk a err log when drm_of_encoder_active_endpoint_id - modify the dclk pin_pol to a single line Chris Zhong (5): Documentation: bindings: add dt doc for Rockchip USB Type-C PHY phy: Add USB Type-C PHY d

[v10 PATCH 5/5] drm/rockchip: cdn-dp: add cdn DP support for rk3399

2016-08-09 Thread Chris Zhong
/firmware/rockchip/dptx.bin. The uCPU in charge of aux communication and link training, the host use mailbox to communicate with the ucpu. The dclk pin_pol of vop must not be invert for DP. Signed-off-by: Chris Zhong <z...@rock-chips.com> Reviewed-by: Sean Paul <seanp...@chromium.org> Acked-

[v10 PATCH 0/5] Rockchip Type-C and DisplayPort driver

2016-08-09 Thread Chris Zhong
API - use hdmi-codec for the DP Asoc - do not initialize the "ret" - printk a err log when drm_of_encoder_active_endpoint_id - modify the dclk pin_pol to a single line Chris Zhong (5): Documentation: bindings: add dt doc for Rockchip USB Type-C PHY phy: Add USB Type-C PHY d

[v10 PATCH 5/5] drm/rockchip: cdn-dp: add cdn DP support for rk3399

2016-08-09 Thread Chris Zhong
/firmware/rockchip/dptx.bin. The uCPU in charge of aux communication and link training, the host use mailbox to communicate with the ucpu. The dclk pin_pol of vop must not be invert for DP. Signed-off-by: Chris Zhong Reviewed-by: Sean Paul Acked-by: Mark Yao --- Changes in v10: - control the grf_clk

[v10 PATCH 3/5] arm64: dts: rockchip: add Type-C phy for RK3399

2016-08-09 Thread Chris Zhong
There are 2 Type-C phy on RK3399, they are almost same, except the address of register. They support USB3.0 Type-C and DisplayPort1.3 Alt Mode on USB Type-C. Register a phy, supply it to USB3 controller and DP controller. Signed-off-by: Chris Zhong <z...@rock-chips.com> Reviewed-by: Guenter

[v10 PATCH 3/5] arm64: dts: rockchip: add Type-C phy for RK3399

2016-08-09 Thread Chris Zhong
There are 2 Type-C phy on RK3399, they are almost same, except the address of register. They support USB3.0 Type-C and DisplayPort1.3 Alt Mode on USB Type-C. Register a phy, supply it to USB3 controller and DP controller. Signed-off-by: Chris Zhong Reviewed-by: Guenter Roeck --- Changes

[v10 PATCH 4/5] Documentation: bindings: add dt documentation for cdn DP controller

2016-08-09 Thread Chris Zhong
This patch adds a binding that describes the cdn DP controller for rk3399. Signed-off-by: Chris Zhong <z...@rock-chips.com> Acked-by: Rob Herring <r...@kernel.org> --- Changes in v10: - add pclk_vio_grf clock Changes in v9: - modify the reference phy = < 0>, < 0>; Cha

[v10 PATCH 4/5] Documentation: bindings: add dt documentation for cdn DP controller

2016-08-09 Thread Chris Zhong
This patch adds a binding that describes the cdn DP controller for rk3399. Signed-off-by: Chris Zhong Acked-by: Rob Herring --- Changes in v10: - add pclk_vio_grf clock Changes in v9: - modify the reference phy = < 0>, < 0>; Changes in v8: None Changes in v7: None Changes

[v10 PATCH 1/5] Documentation: bindings: add dt doc for Rockchip USB Type-C PHY

2016-08-09 Thread Chris Zhong
This patch adds a binding that describes the Rockchip USB Type-C PHY for rk3399 Signed-off-by: Chris Zhong <z...@rock-chips.com> Reviewed-by: Tomasz Figa <tf...@chromium.org> Reviewed-by: Kever Yang <kever.y...@rock-chips.com> Acked-by: Rob Herring <r...@kernel.org> ---

[v10 PATCH 2/5] phy: Add USB Type-C PHY driver for rk3399

2016-08-09 Thread Chris Zhong
PHY deivces, the phy[0] for DP, and phy[1] for USB3. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v10: - do not control dp select and hpd config in phy driver Changes in v9: - the new_mode should be int n

[v10 PATCH 1/5] Documentation: bindings: add dt doc for Rockchip USB Type-C PHY

2016-08-09 Thread Chris Zhong
This patch adds a binding that describes the Rockchip USB Type-C PHY for rk3399 Signed-off-by: Chris Zhong Reviewed-by: Tomasz Figa Reviewed-by: Kever Yang Acked-by: Rob Herring --- Changes in v10: - remove rockchip,uphy-dp-sel property Changes in v9: - change #phy-cells to 1 Changes

[v10 PATCH 2/5] phy: Add USB Type-C PHY driver for rk3399

2016-08-09 Thread Chris Zhong
PHY deivces, the phy[0] for DP, and phy[1] for USB3. Signed-off-by: Chris Zhong Signed-off-by: Kever Yang --- Changes in v10: - do not control dp select and hpd config in phy driver Changes in v9: - the new_mode should be int not u8 - move mutex_lock(>lock); to earlier pl

[v2 PATCH] clk: rockchip: mark rk3399 hdcp_noc and vio_noc as critical

2016-08-09 Thread Chris Zhong
them. Signed-off-by: Chris Zhong <z...@rock-chips.com> --- drivers/clk/rockchip/clk-rk3399.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/clk/rockchip/clk-rk3399.c b/drivers/clk/rockchip/clk-rk3399.c index b173711a..676b017 100644 --- a/drivers/clk/rockch

[v2 PATCH] clk: rockchip: mark rk3399 hdcp_noc and vio_noc as critical

2016-08-09 Thread Chris Zhong
them. Signed-off-by: Chris Zhong --- drivers/clk/rockchip/clk-rk3399.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/clk/rockchip/clk-rk3399.c b/drivers/clk/rockchip/clk-rk3399.c index b173711a..676b017 100644 --- a/drivers/clk/rockchip/clk-rk3399.c +++ b

[PATCH] clk: rockchip: mark rk3399 hdcp_noc and pclk_vio_grf as critical

2016-08-03 Thread Chris Zhong
The Type-C DP need these clocks: aclk_hdcp_noc, hclk_hdcp_noc, pclk_hdcp_noc, pclk_vio_grf. Mark them as critical to avoid someone close them. Signed-off-by: Chris Zhong <z...@rock-chips.com> --- drivers/clk/rockchip/clk-rk3399.c | 4 1 file changed, 4 insertions(+) diff --git a/d

[PATCH] clk: rockchip: mark rk3399 hdcp_noc and pclk_vio_grf as critical

2016-08-03 Thread Chris Zhong
The Type-C DP need these clocks: aclk_hdcp_noc, hclk_hdcp_noc, pclk_hdcp_noc, pclk_vio_grf. Mark them as critical to avoid someone close them. Signed-off-by: Chris Zhong --- drivers/clk/rockchip/clk-rk3399.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/clk/rockchip/clk

[v9.2 PATCH 3/6] phy: Add USB Type-C PHY driver for rk3399

2016-08-02 Thread Chris Zhong
PHY deivces, the phy[0] for DP, and phy[1] for USB3. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v9.2: - the new_mode should be int not u8 - move mutex_lock(>lock); to earlier place. in rockchip_usb

[v9.2 PATCH 3/6] phy: Add USB Type-C PHY driver for rk3399

2016-08-02 Thread Chris Zhong
PHY deivces, the phy[0] for DP, and phy[1] for USB3. Signed-off-by: Chris Zhong Signed-off-by: Kever Yang --- Changes in v9.2: - the new_mode should be int not u8 - move mutex_lock(>lock); to earlier place. in rockchip_usb3_phy_power_off Changes in v9.1: - better mutex lock for phy m

[v9.1 PATCH 3/6] phy: Add USB Type-C PHY driver for rk3399

2016-08-02 Thread Chris Zhong
PHY deivces, the phy[0] for DP, and phy[1] for USB3. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v9.1: - better mutex lock for phy mode and flip Changes in v9: - split the Type-C PHY into two PHYs: USB3 and

[v9.1 PATCH 3/6] phy: Add USB Type-C PHY driver for rk3399

2016-08-02 Thread Chris Zhong
PHY deivces, the phy[0] for DP, and phy[1] for USB3. Signed-off-by: Chris Zhong Signed-off-by: Kever Yang --- Changes in v9.1: - better mutex lock for phy mode and flip Changes in v9: - split the Type-C PHY into two PHYs: USB3 and DP Changes in v8: - set the default cable id

Re: [v9 PATCH 3/6] phy: Add USB Type-C PHY driver for rk3399

2016-08-02 Thread Chris Zhong
Hi Guenter On 08/03/2016 04:22 AM, Guenter Roeck wrote: On Tue, Aug 2, 2016 at 5:45 AM, Chris Zhong <z...@rock-chips.com> wrote: Add a PHY provider driver for the rk3399 SoC Type-c PHY. The USB Type-C PHY is designed to support the USB3 and DP applications. The PHY basically has tw

Re: [v9 PATCH 3/6] phy: Add USB Type-C PHY driver for rk3399

2016-08-02 Thread Chris Zhong
Hi Guenter On 08/03/2016 04:22 AM, Guenter Roeck wrote: On Tue, Aug 2, 2016 at 5:45 AM, Chris Zhong wrote: Add a PHY provider driver for the rk3399 SoC Type-c PHY. The USB Type-C PHY is designed to support the USB3 and DP applications. The PHY basically has two main components: USB3

[v9 PATCH 1/6] extcon: Add EXTCON_DISP_DP and the property for USB Type-C

2016-08-02 Thread Chris Zhong
Add EXTCON_DISP_DP for the Display external connector. For Type-C connector the DisplayPort can work as an Alternate Mode(VESA DisplayPort Alt Mode on USB Type-C Standard). The Type-C support both normal and flipped orientation, so add a property to extcon. Signed-off-by: Chris Zhong <z...@r

[v9 PATCH 1/6] extcon: Add EXTCON_DISP_DP and the property for USB Type-C

2016-08-02 Thread Chris Zhong
Add EXTCON_DISP_DP for the Display external connector. For Type-C connector the DisplayPort can work as an Alternate Mode(VESA DisplayPort Alt Mode on USB Type-C Standard). The Type-C support both normal and flipped orientation, so add a property to extcon. Signed-off-by: Chris Zhong Signed-off

[v9 PATCH 0/6] Rockchip Type-C and DisplayPort driver

2016-08-02 Thread Chris Zhong
get clk failed - remove ADDR_ADJ define - use devm_clk_get(>dev, "tcpdcore") - add extcon node description - add #sound-dai-cells description - use extcon API - use hdmi-codec for the DP Asoc - do not initialize the "ret" - printk a err log when drm_of_encoder_active_endpoin

[v9 PATCH 0/6] Rockchip Type-C and DisplayPort driver

2016-08-02 Thread Chris Zhong
get clk failed - remove ADDR_ADJ define - use devm_clk_get(>dev, "tcpdcore") - add extcon node description - add #sound-dai-cells description - use extcon API - use hdmi-codec for the DP Asoc - do not initialize the "ret" - printk a err log when drm_of_encoder_active_endpoin

[v9 PATCH 3/6] phy: Add USB Type-C PHY driver for rk3399

2016-08-02 Thread Chris Zhong
PHY deivces, the phy[0] for DP, and phy[1] for USB3. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v9: - split the Type-C PHY into two PHYs: USB3 and DP Changes in v8: - set the default cable id to EXT

[v9 PATCH 5/6] Documentation: bindings: add dt documentation for cdn DP controller

2016-08-02 Thread Chris Zhong
This patch adds a binding that describes the cdn DP controller for rk3399. Signed-off-by: Chris Zhong <z...@rock-chips.com> Acked-by: Rob Herring <r...@kernel.org> --- Changes in v9: - modify the reference phy = < 0>, < 0>; Changes in v8: None Changes in v7: None Chang

[v9 PATCH 3/6] phy: Add USB Type-C PHY driver for rk3399

2016-08-02 Thread Chris Zhong
PHY deivces, the phy[0] for DP, and phy[1] for USB3. Signed-off-by: Chris Zhong Signed-off-by: Kever Yang --- Changes in v9: - split the Type-C PHY into two PHYs: USB3 and DP Changes in v8: - set the default cable id to EXTCON_USB_HOST - optimization Error log Changes in v7: - support new API

[v9 PATCH 5/6] Documentation: bindings: add dt documentation for cdn DP controller

2016-08-02 Thread Chris Zhong
This patch adds a binding that describes the cdn DP controller for rk3399. Signed-off-by: Chris Zhong Acked-by: Rob Herring --- Changes in v9: - modify the reference phy = < 0>, < 0>; Changes in v8: None Changes in v7: None Changes in v6: - add assigned-clocks and assigned-clock

[v9 PATCH 2/6] Documentation: bindings: add dt doc for Rockchip USB Type-C PHY

2016-08-02 Thread Chris Zhong
This patch adds a binding that describes the Rockchip USB Type-C PHY for rk3399 Signed-off-by: Chris Zhong <z...@rock-chips.com> Reviewed-by: Tomasz Figa <tf...@chromium.org> Reviewed-by: Kever Yang <kever.y...@rock-chips.com> Acked-by: Rob Herring <r...@kernel.org> ---

[v9 PATCH 2/6] Documentation: bindings: add dt doc for Rockchip USB Type-C PHY

2016-08-02 Thread Chris Zhong
This patch adds a binding that describes the Rockchip USB Type-C PHY for rk3399 Signed-off-by: Chris Zhong Reviewed-by: Tomasz Figa Reviewed-by: Kever Yang Acked-by: Rob Herring --- Changes in v9: - change #phy-cells to 1 Changes in v8: None Changes in v7: None Changes in v6: - add

[v9 PATCH 4/6] arm64: dts: rockchip: add Type-C phy for RK3399

2016-08-02 Thread Chris Zhong
There are 2 Type-C phy on RK3399, they are almost same, except the address of register. They support USB3.0 Type-C and DisplayPort1.3 Alt Mode on USB Type-C. Register a phy, supply it to USB3 controller and DP controller. Signed-off-by: Chris Zhong <z...@rock-chips.com> Reviewed-by: Guenter

[v9 PATCH 4/6] arm64: dts: rockchip: add Type-C phy for RK3399

2016-08-02 Thread Chris Zhong
There are 2 Type-C phy on RK3399, they are almost same, except the address of register. They support USB3.0 Type-C and DisplayPort1.3 Alt Mode on USB Type-C. Register a phy, supply it to USB3 controller and DP controller. Signed-off-by: Chris Zhong Reviewed-by: Guenter Roeck --- Changes in v9

[v9 PATCH 6/6] drm/rockchip: cdn-dp: add cdn DP support for rk3399

2016-08-02 Thread Chris Zhong
/firmware/rockchip/dptx.bin. The uCPU in charge of aux communication and link training, the host use mailbox to communicate with the ucpu. The dclk pin_pol of vop must not be invert for DP. Signed-off-by: Chris Zhong <z...@rock-chips.com> Reviewed-by: Sean Paul <seanp...@chromium.org> Acked-

[v9 PATCH 6/6] drm/rockchip: cdn-dp: add cdn DP support for rk3399

2016-08-02 Thread Chris Zhong
/firmware/rockchip/dptx.bin. The uCPU in charge of aux communication and link training, the host use mailbox to communicate with the ucpu. The dclk pin_pol of vop must not be invert for DP. Signed-off-by: Chris Zhong Reviewed-by: Sean Paul Acked-by: Mark Yao --- Changes in v9: - do not need reset

[v8 PATCH 0/6] Rockchip Type-C and DisplayPort driver

2016-07-29 Thread Chris Zhong
iled - remove ADDR_ADJ define - use devm_clk_get(>dev, "tcpdcore") - add extcon node description - add #sound-dai-cells description - use extcon API - use hdmi-codec for the DP Asoc - do not initialize the "ret" - printk a err log when drm_of_encoder_active_endpoint_id

[v8 PATCH 0/6] Rockchip Type-C and DisplayPort driver

2016-07-29 Thread Chris Zhong
iled - remove ADDR_ADJ define - use devm_clk_get(>dev, "tcpdcore") - add extcon node description - add #sound-dai-cells description - use extcon API - use hdmi-codec for the DP Asoc - do not initialize the "ret" - printk a err log when drm_of_encoder_active_endpoint_id

[v8 PATCH 4/6] arm64: dts: rockchip: add Type-C phy for RK3399

2016-07-29 Thread Chris Zhong
There are 2 Type-C phy on RK3399, they are almost same, except the address of register. They support USB3.0 Type-C and DisplayPort1.3 Alt Mode on USB Type-C. Register a phy, supply it to USB3 controller and DP controller. Signed-off-by: Chris Zhong <z...@rock-chips.com> Reviewed-by: Guenter

[v8 PATCH 6/6] drm/rockchip: cdn-dp: add cdn DP support for rk3399

2016-07-29 Thread Chris Zhong
/firmware/rockchip/dptx.bin. The uCPU in charge of aux communication and link training, the host use mailbox to communicate with the ucpu. The dclk pin_pol of vop must not be invert for DP. Signed-off-by: Chris Zhong <z...@rock-chips.com> Reviewed-by: Sean Paul <seanp...@chromium.org> Acked-

[v8 PATCH 4/6] arm64: dts: rockchip: add Type-C phy for RK3399

2016-07-29 Thread Chris Zhong
There are 2 Type-C phy on RK3399, they are almost same, except the address of register. They support USB3.0 Type-C and DisplayPort1.3 Alt Mode on USB Type-C. Register a phy, supply it to USB3 controller and DP controller. Signed-off-by: Chris Zhong Reviewed-by: Guenter Roeck --- Changes in v8

[v8 PATCH 6/6] drm/rockchip: cdn-dp: add cdn DP support for rk3399

2016-07-29 Thread Chris Zhong
/firmware/rockchip/dptx.bin. The uCPU in charge of aux communication and link training, the host use mailbox to communicate with the ucpu. The dclk pin_pol of vop must not be invert for DP. Signed-off-by: Chris Zhong Reviewed-by: Sean Paul Acked-by: Mark Yao --- Changes in v8: - optimization the err

[v8 PATCH 5/6] Documentation: bindings: add dt documentation for cdn DP controller

2016-07-29 Thread Chris Zhong
This patch adds a binding that describes the cdn DP controller for rk3399. Signed-off-by: Chris Zhong <z...@rock-chips.com> Acked-by: Rob Herring <r...@kernel.org> --- Changes in v8: None Changes in v7: None Changes in v6: - add assigned-clocks and assigned-clock-rates - add p

[v8 PATCH 3/6] phy: Add USB Type-C PHY driver for rk3399

2016-07-29 Thread Chris Zhong
-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v8: - set the default cable id to EXTCON_USB_HOST - optimization Error log Changes in v7: - support new API of extcon Changes in v6: - delete the support of PIN_ASSIGN_A/B - set

[v8 PATCH 5/6] Documentation: bindings: add dt documentation for cdn DP controller

2016-07-29 Thread Chris Zhong
This patch adds a binding that describes the cdn DP controller for rk3399. Signed-off-by: Chris Zhong Acked-by: Rob Herring --- Changes in v8: None Changes in v7: None Changes in v6: - add assigned-clocks and assigned-clock-rates - add power-domains Changes in v5: None Changes in v4: - add

[v8 PATCH 3/6] phy: Add USB Type-C PHY driver for rk3399

2016-07-29 Thread Chris Zhong
-by: Chris Zhong Signed-off-by: Kever Yang --- Changes in v8: - set the default cable id to EXTCON_USB_HOST - optimization Error log Changes in v7: - support new API of extcon Changes in v6: - delete the support of PIN_ASSIGN_A/B - set the default mode to MODE_DFP_USB - disable DP PLL at USB3 only

[v8 PATCH 1/6] extcon: Add EXTCON_DISP_DP and the property for USB Type-C

2016-07-29 Thread Chris Zhong
Add EXTCON_DISP_DP for the Display external connector. For Type-C connector the DisplayPort can work as an Alternate Mode(VESA DisplayPort Alt Mode on USB Type-C Standard). The Type-C support both normal and flipped orientation, so add a property to extcon. Signed-off-by: Chris Zhong <z...@r

[v8 PATCH 2/6] Documentation: bindings: add dt doc for Rockchip USB Type-C PHY

2016-07-29 Thread Chris Zhong
This patch adds a binding that describes the Rockchip USB Type-C PHY for rk3399 Signed-off-by: Chris Zhong <z...@rock-chips.com> Reviewed-by: Tomasz Figa <tf...@chromium.org> Reviewed-by: Kever Yang <kever.y...@rock-chips.com> Acked-by: Rob Herring <r...@kernel.org>

[v8 PATCH 2/6] Documentation: bindings: add dt doc for Rockchip USB Type-C PHY

2016-07-29 Thread Chris Zhong
This patch adds a binding that describes the Rockchip USB Type-C PHY for rk3399 Signed-off-by: Chris Zhong Reviewed-by: Tomasz Figa Reviewed-by: Kever Yang Acked-by: Rob Herring --- Changes in v8: None Changes in v7: None Changes in v6: - add assigned-clocks and assigned-clock-rates

[v8 PATCH 1/6] extcon: Add EXTCON_DISP_DP and the property for USB Type-C

2016-07-29 Thread Chris Zhong
Add EXTCON_DISP_DP for the Display external connector. For Type-C connector the DisplayPort can work as an Alternate Mode(VESA DisplayPort Alt Mode on USB Type-C Standard). The Type-C support both normal and flipped orientation, so add a property to extcon. Signed-off-by: Chris Zhong Signed-off

[v7 PATCH 5/6] Documentation: bindings: add dt documentation for cdn DP controller

2016-07-27 Thread Chris Zhong
This patch adds a binding that describes the cdn DP controller for rk3399. Signed-off-by: Chris Zhong <z...@rock-chips.com> Acked-by: Rob Herring <r...@kernel.org> --- Changes in v7: None Changes in v6: - add assigned-clocks and assigned-clock-rates - add power-domains Changes

[v7 PATCH 5/6] Documentation: bindings: add dt documentation for cdn DP controller

2016-07-27 Thread Chris Zhong
This patch adds a binding that describes the cdn DP controller for rk3399. Signed-off-by: Chris Zhong Acked-by: Rob Herring --- Changes in v7: None Changes in v6: - add assigned-clocks and assigned-clock-rates - add power-domains Changes in v5: None Changes in v4: - add a reset node

[v7 PATCH 4/6] arm64: dts: rockchip: add Type-C phy for RK3399

2016-07-27 Thread Chris Zhong
There are 2 Type-C phy on RK3399, they are almost same, except the address of register. They support USB3.0 Type-C and DisplayPort1.3 Alt Mode on USB Type-C. Register a phy, supply it to USB3 controller and DP controller. Signed-off-by: Chris Zhong <z...@rock-chips.com> --- Changes in v7

[v7 PATCH 6/6] drm/rockchip: cdn-dp: add cdn DP support for rk3399

2016-07-27 Thread Chris Zhong
/firmware/rockchip/dptx.bin. The uCPU in charge of aux communication and link training, the host use mailbox to communicate with the ucpu. The dclk pin_pol of vop must not be invert for DP. Signed-off-by: Chris Zhong <z...@rock-chips.com> Reviewed-by: Sean Paul <seanp...@chromium.org> Acked-

[v7 PATCH 4/6] arm64: dts: rockchip: add Type-C phy for RK3399

2016-07-27 Thread Chris Zhong
There are 2 Type-C phy on RK3399, they are almost same, except the address of register. They support USB3.0 Type-C and DisplayPort1.3 Alt Mode on USB Type-C. Register a phy, supply it to USB3 controller and DP controller. Signed-off-by: Chris Zhong --- Changes in v7: None Changes in v6: None

[v7 PATCH 6/6] drm/rockchip: cdn-dp: add cdn DP support for rk3399

2016-07-27 Thread Chris Zhong
/firmware/rockchip/dptx.bin. The uCPU in charge of aux communication and link training, the host use mailbox to communicate with the ucpu. The dclk pin_pol of vop must not be invert for DP. Signed-off-by: Chris Zhong Reviewed-by: Sean Paul Acked-by: Mark Yao --- Changes in v7: - support firmware

[v7 PATCH 0/6] Rockchip Type-C and DisplayPort driver

2016-07-27 Thread Chris Zhong
dd #sound-dai-cells description - use extcon API - use hdmi-codec for the DP Asoc - do not initialize the "ret" - printk a err log when drm_of_encoder_active_endpoint_id - modify the dclk pin_pol to a single line Chris Zhong (6): extcon: Add EXTCON_DISP_DP and the property for USB Typ

[v7 PATCH 0/6] Rockchip Type-C and DisplayPort driver

2016-07-27 Thread Chris Zhong
dd #sound-dai-cells description - use extcon API - use hdmi-codec for the DP Asoc - do not initialize the "ret" - printk a err log when drm_of_encoder_active_endpoint_id - modify the dclk pin_pol to a single line Chris Zhong (6): extcon: Add EXTCON_DISP_DP and the property for USB Typ

[v7 PATCH 2/6] Documentation: bindings: add dt doc for Rockchip USB Type-C PHY

2016-07-27 Thread Chris Zhong
This patch adds a binding that describes the Rockchip USB Type-C PHY for rk3399 Signed-off-by: Chris Zhong <z...@rock-chips.com> Reviewed-by: Tomasz Figa <tf...@chromium.org> Reviewed-by: Kever Yang <kever.y...@rock-chips.com> Acked-by: Rob Herring <r...@kernel.org>

[v7 PATCH 3/6] phy: Add USB Type-C PHY driver for rk3399

2016-07-27 Thread Chris Zhong
-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Kever Yang <kever.y...@rock-chips.com> --- Changes in v7: - support new API of extcon Changes in v6: - delete the support of PIN_ASSIGN_A/B - set the default mode to MODE_DFP_USB - disable DP PLL at USB3 only mode Changes in v5: -

[v7 PATCH 1/6] extcon: Add EXTCON_DISP_DP and the property for USB Type-C

2016-07-27 Thread Chris Zhong
Add EXTCON_DISP_DP for the Display external connector. For Type-C connector the DisplayPort can work as an Alternate Mode(VESA DisplayPort Alt Mode on USB Type-C Standard). The Type-C support both normal and flipped orientation, so add a property to extcon. Signed-off-by: Chris Zhong <z...@r

[v7 PATCH 2/6] Documentation: bindings: add dt doc for Rockchip USB Type-C PHY

2016-07-27 Thread Chris Zhong
This patch adds a binding that describes the Rockchip USB Type-C PHY for rk3399 Signed-off-by: Chris Zhong Reviewed-by: Tomasz Figa Reviewed-by: Kever Yang Acked-by: Rob Herring --- Changes in v7: None Changes in v6: - add assigned-clocks and assigned-clock-rates Changes in v5: None

[v7 PATCH 3/6] phy: Add USB Type-C PHY driver for rk3399

2016-07-27 Thread Chris Zhong
-by: Chris Zhong Signed-off-by: Kever Yang --- Changes in v7: - support new API of extcon Changes in v6: - delete the support of PIN_ASSIGN_A/B - set the default mode to MODE_DFP_USB - disable DP PLL at USB3 only mode Changes in v5: - support get property from extcon - remove PIN ASSIGN A/B support

[v7 PATCH 1/6] extcon: Add EXTCON_DISP_DP and the property for USB Type-C

2016-07-27 Thread Chris Zhong
Add EXTCON_DISP_DP for the Display external connector. For Type-C connector the DisplayPort can work as an Alternate Mode(VESA DisplayPort Alt Mode on USB Type-C Standard). The Type-C support both normal and flipped orientation, so add a property to extcon. Signed-off-by: Chris Zhong Signed-off

Re: [PATCH 5/6] extcon: Add the synchronization extcon APIs to support the notification

2016-07-27 Thread Chris Zhong
Hi Chanwoo On 07/26/2016 08:09 PM, Chanwoo Choi wrote: This patch adds the synchronization extcon APIs to support the notifications for both state and property. When extcon_*_sync() functions is called, the extcon informs the information from extcon provider to extcon client. The extcon driver

Re: [PATCH 5/6] extcon: Add the synchronization extcon APIs to support the notification

2016-07-27 Thread Chris Zhong
Hi Chanwoo On 07/26/2016 08:09 PM, Chanwoo Choi wrote: This patch adds the synchronization extcon APIs to support the notifications for both state and property. When extcon_*_sync() functions is called, the extcon informs the information from extcon provider to extcon client. The extcon driver

Re: [PATCH 2/6] extcon: Add the support for extcon property according to extcon type

2016-07-26 Thread Chris Zhong
Hi Chanwoo On 07/27/2016 11:57 AM, Chanwoo Choi wrote: On 2016년 07월 27일 12:51, Guenter Roeck wrote: On Tue, Jul 26, 2016 at 8:42 PM, Chanwoo Choi <cw00.c...@samsung.com> wrote: Hi Chris, On 2016년 07월 27일 11:09, Chris Zhong wrote: Hi Guernter On 07/27/2016 09:44 AM, Guenter Roeck wrot

Re: [PATCH 2/6] extcon: Add the support for extcon property according to extcon type

2016-07-26 Thread Chris Zhong
Hi Chanwoo On 07/27/2016 11:57 AM, Chanwoo Choi wrote: On 2016년 07월 27일 12:51, Guenter Roeck wrote: On Tue, Jul 26, 2016 at 8:42 PM, Chanwoo Choi wrote: Hi Chris, On 2016년 07월 27일 11:09, Chris Zhong wrote: Hi Guernter On 07/27/2016 09:44 AM, Guenter Roeck wrote: Hi Chris, On Tue, Jul 26

Re: [PATCH 2/6] extcon: Add the support for extcon property according to extcon type

2016-07-26 Thread Chris Zhong
Hi Guernter On 07/27/2016 09:44 AM, Guenter Roeck wrote: Hi Chris, On Tue, Jul 26, 2016 at 6:15 PM, Chris Zhong <z...@rock-chips.com> wrote: [ ... ] > + > +/* Properties of EXTCON_TYPE_DISP. */ > +#define EXTCON_PROP_DISP_MIN 150 > +#define EX

Re: [PATCH 2/6] extcon: Add the support for extcon property according to extcon type

2016-07-26 Thread Chris Zhong
Hi Guernter On 07/27/2016 09:44 AM, Guenter Roeck wrote: Hi Chris, On Tue, Jul 26, 2016 at 6:15 PM, Chris Zhong wrote: [ ... ] > + > +/* Properties of EXTCON_TYPE_DISP. */ > +#define EXTCON_PROP_DISP_MIN 150 > +#define EXTCON_PROP_DISP_MAX

Re: [PATCH 2/6] extcon: Add the support for extcon property according to extcon type

2016-07-26 Thread Chris Zhong
Hi Chanwoo On 07/27/2016 08:31 AM, Chanwoo Choi wrote: Hi Guenter, 2016년 7월 27일 수요일, Guenter Roeck>님이 작성한 메시지: On Tue, Jul 26, 2016 at 5:09 AM, Chanwoo Choi > wrote: > This patch support the extcon

Re: [PATCH 2/6] extcon: Add the support for extcon property according to extcon type

2016-07-26 Thread Chris Zhong
Hi Chanwoo On 07/27/2016 08:31 AM, Chanwoo Choi wrote: Hi Guenter, 2016년 7월 27일 수요일, Guenter Roeck>님이 작성한 메시지: On Tue, Jul 26, 2016 at 5:09 AM, Chanwoo Choi > wrote: > This patch support the extcon property for the external connector > because each

<    1   2   3   4   5   6   7   8   9   10   >