From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934090AbcHJUdg (ORCPT ); Wed, 10 Aug 2016 16:33:36 -0400 Received: from irl-smtp01.263.net ([54.76.167.174]:45986 "EHLO smtphy.263.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932937AbcHJSQw (ORCPT ); Wed, 10 Aug 2016 14:16:52 -0400 X-Greylist: delayed 604 seconds by postgrey-1.27 at vger.kernel.org; Wed, 10 Aug 2016 14:16:51 EDT X-263anti-spam: KSV:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 4 X-ADDR-CHECKED: 0 X-RL-SENDER: zyw@rock-chips.com X-FST-TO: cpgs@samsung.com X-SENDER-IP: 104.132.1.77 X-LOGIN-NAME: zyw@rock-chips.com X-UNIQUE-TAG: X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 Subject: Re: [v10 PATCH 0/5] Rockchip Type-C and DisplayPort driver To: Chanwoo Choi , dianders@chromium.org, tfiga@chromium.org, heiko@sntech.de, yzq@rock-chips.com, groeck@chromium.org, myungjoo.ham@samsung.com, wulf@rock-chips.com, marcheu@chromium.org References: <1470785557-21974-1-git-send-email-zyw@rock-chips.com> <57AA772C.1010303@samsung.com> Cc: linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, Guenter Roeck , Will Deacon , dri-devel@lists.freedesktop.org, Kever Yang , Kumar Gala , linux-kernel@vger.kernel.org, Ian Campbell , Rob Herring , Mark Yao , Pawel Moll , Kishon Vijay Abraham I , Mark Rutland , Catalin Marinas , linux-arm-kernel@lists.infradead.org, David Airlie , "cpgs (cpgs@samsung.com)" From: Chris Zhong Message-ID: <57AB6BA2.8010402@rock-chips.com> Date: Thu, 11 Aug 2016 02:00:02 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <57AA772C.1010303@samsung.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 two main components: USB3 and DisplyPort. USB3 >> operates in SuperSpeed mode and the DP can operate at RBR, HBR and HBR2 >> data rates. The Type-C cable orientation detection and Power Delivery >> (PD) is accomplished using a PD PHY or a exernal PD chip. >> >> The DP controller is compliant with DisplayPort Specification, >> Version 1.3, This IP is compatible with the rockchip type-c PHY IP. >> There is a uCPU in DP controller, it need a firmware to work, please >> put the firmware file[0] to /lib/firmware/rockchip/dptx.bin. The uCPU >> in charge of aux communication and link training, the host use mailbox >> to communicate with the ucpu. >> >> The DP contoller has register a notification with extcon API, to get the >> alt mode from PD, the PD driver need call the devm_extcon_dev_allocate >> to create a extcon device and use extcon_set_state to notify DP >> controller. And call extcon_set_cable_property to set orientation. >> >> About the DP audio, cdn-dp registered 2 DAIs: 0 is I2S, 1 is SPDIF. >> We can reference them in simple-card. >> >> This series is based on Mark Yao's branch[1] and Chanwoo Choi's >> extcon-next branch[2], and the clk patch[3]. >> >> I test this patches on the rk3399-evb board, with a fusb302 driver, >> this branch has no rk3399.dtsi, so the patch about dts is not included >> in this series. >> >> >From V9, the Type-C PHY is split into two PHYs: DP and USB3. The PHY >> will be init, no matter which PHY be power_on. The DP module will >> enter A2 mode (standby mode) after phy_init, if DP PHY is powered on, >> the DP module will enter to A0 mode(running mode). Then if DP PHY is >> powered off, DP module will back to A2 mode. If everything is >> un-plugged, phy will be deinit. >> >> [0] >> https://patchwork.kernel.org/patch/9249693/ >> [1] >> https://github.com/markyzq/kernel-drm-rockchip/tree/drm-rockchip-next-2016-05-23 >> [2] >> https://git.kernel.org/cgit/linux/kernel/git/chanwoo/extcon.git/log/?h=extcon-test >> - extcon: Add the extcon_type to gather each connector into five category >> - extcon: Add the support for extcon property according to extcon type >> - extcon: Add the support for the capability of each property >> - extcon: Rename the extcon_set/get_state() to maintain the function naming >> pattern >> - extcon: Add the synchronization extcon APIs to support the notification >> - extcon: Add EXTCON_DISP_DP and the property for USB Type-C > The extcon patches are merged on extcon-next branch. > So, you can check them on both extcon git and linux-next git repo. Oh, did not notice these extcon patches has landed. I will remove this section, if next version DP is required. > [snip] > > Regards, > Chanwoo Choi > > > > From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Zhong Subject: Re: [v10 PATCH 0/5] Rockchip Type-C and DisplayPort driver Date: Thu, 11 Aug 2016 02:00:02 +0800 Message-ID: <57AB6BA2.8010402@rock-chips.com> References: <1470785557-21974-1-git-send-email-zyw@rock-chips.com> <57AA772C.1010303@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; Format="flowed" Content-Transfer-Encoding: base64 Return-path: In-Reply-To: <57AA772C.1010303-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+glpar-linux-rockchip=m.gmane.org-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org To: Chanwoo Choi , dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org, tfiga-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org, heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org, yzq-TNX95d0MmH7DzftRWevZcw@public.gmane.org, groeck-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org, myungjoo.ham-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org, wulf-TNX95d0MmH7DzftRWevZcw@public.gmane.org, marcheu-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org Cc: Mark Rutland , devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Pawel Moll , Ian Campbell , David Airlie , Catalin Marinas , Will Deacon , Kever Yang , dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Rob Herring , linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, "cpgs (cpgs-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org)" , Kumar Gala , Kishon Vijay Abraham I , Guenter Roeck , Mark Yao List-Id: devicetree@vger.kernel.org SGkgQ2hhbndvbwoKT24gMDgvMTAvMjAxNiAwODozNyBBTSwgQ2hhbndvbyBDaG9pIHdyb3RlOgo+ IEhpIENocmlzLAo+Cj4gT24gMjAxNuuFhCAwOOyblCAxMOydvCAwODozMiwgQ2hyaXMgWmhvbmcg d3JvdGU6Cj4+IEhpIGFsbAo+Pgo+PiBUaGlzIHNlcmllcyBwYXRjaCBpcyBmb3Igcm9ja2NoaXAg VHlwZS1DIHBoeSBhbmQgRGlzcGxheVBvcnQgY29udHJvbGxlcgo+PiBkcml2ZXIuCj4+Cj4+IFRo ZSBVU0IgVHlwZS1DIFBIWSBpcyBkZXNpZ25lZCB0byBzdXBwb3J0IHRoZSBVU0IzIGFuZCBEUCBh cHBsaWNhdGlvbnMuCj4+IFRoZSBQSFkgYmFzaWNhbGx5IGhhcyB0d28gbWFpbiBjb21wb25lbnRz OiBVU0IzIGFuZCBEaXNwbHlQb3J0LiBVU0IzCj4+IG9wZXJhdGVzIGluIFN1cGVyU3BlZWQgbW9k ZSBhbmQgdGhlIERQIGNhbiBvcGVyYXRlIGF0IFJCUiwgSEJSIGFuZCBIQlIyCj4+IGRhdGEgcmF0 ZXMuIFRoZSBUeXBlLUMgY2FibGUgb3JpZW50YXRpb24gZGV0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l eHQgZ2l0IHJlcG8uCk9oLCBkaWQgbm90IG5vdGljZSB0aGVzZSBleHRjb24gcGF0Y2hlcyBoYXMg bGFuZGVkLgpJIHdpbGwgcmVtb3ZlIHRoaXMgc2VjdGlvbiwgaWYgbmV4dCB2ZXJzaW9uIERQIGlz IHJlcXVpcmVkLgo+IFtzbmlwXQo+Cj4gUmVnYXJkcywKPiBDaGFud29vIENob2kKPgo+Cj4KPgoK CgpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwpMaW51eC1y b2NrY2hpcCBtYWlsaW5nIGxpc3QKTGludXgtcm9ja2NoaXBAbGlzdHMuaW5mcmFkZWFkLm9yZwpo dHRwOi8vbGlzdHMuaW5mcmFkZWFkLm9yZy9tYWlsbWFuL2xpc3RpbmZvL2xpbnV4LXJvY2tjaGlw Cg== From mboxrd@z Thu Jan 1 00:00:00 1970 From: zyw@rock-chips.com (Chris Zhong) Date: Thu, 11 Aug 2016 02:00:02 +0800 Subject: [v10 PATCH 0/5] Rockchip Type-C and DisplayPort driver In-Reply-To: <57AA772C.1010303@samsung.com> References: <1470785557-21974-1-git-send-email-zyw@rock-chips.com> <57AA772C.1010303@samsung.com> Message-ID: <57AB6BA2.8010402@rock-chips.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 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 two main components: USB3 and DisplyPort. USB3 >> operates in SuperSpeed mode and the DP can operate at RBR, HBR and HBR2 >> data rates. The Type-C cable orientation detection and Power Delivery >> (PD) is accomplished using a PD PHY or a exernal PD chip. >> >> The DP controller is compliant with DisplayPort Specification, >> Version 1.3, This IP is compatible with the rockchip type-c PHY IP. >> There is a uCPU in DP controller, it need a firmware to work, please >> put the firmware file[0] to /lib/firmware/rockchip/dptx.bin. The uCPU >> in charge of aux communication and link training, the host use mailbox >> to communicate with the ucpu. >> >> The DP contoller has register a notification with extcon API, to get the >> alt mode from PD, the PD driver need call the devm_extcon_dev_allocate >> to create a extcon device and use extcon_set_state to notify DP >> controller. And call extcon_set_cable_property to set orientation. >> >> About the DP audio, cdn-dp registered 2 DAIs: 0 is I2S, 1 is SPDIF. >> We can reference them in simple-card. >> >> This series is based on Mark Yao's branch[1] and Chanwoo Choi's >> extcon-next branch[2], and the clk patch[3]. >> >> I test this patches on the rk3399-evb board, with a fusb302 driver, >> this branch has no rk3399.dtsi, so the patch about dts is not included >> in this series. >> >> >From V9, the Type-C PHY is split into two PHYs: DP and USB3. The PHY >> will be init, no matter which PHY be power_on. The DP module will >> enter A2 mode (standby mode) after phy_init, if DP PHY is powered on, >> the DP module will enter to A0 mode(running mode). Then if DP PHY is >> powered off, DP module will back to A2 mode. If everything is >> un-plugged, phy will be deinit. >> >> [0] >> https://patchwork.kernel.org/patch/9249693/ >> [1] >> https://github.com/markyzq/kernel-drm-rockchip/tree/drm-rockchip-next-2016-05-23 >> [2] >> https://git.kernel.org/cgit/linux/kernel/git/chanwoo/extcon.git/log/?h=extcon-test >> - extcon: Add the extcon_type to gather each connector into five category >> - extcon: Add the support for extcon property according to extcon type >> - extcon: Add the support for the capability of each property >> - extcon: Rename the extcon_set/get_state() to maintain the function naming >> pattern >> - extcon: Add the synchronization extcon APIs to support the notification >> - extcon: Add EXTCON_DISP_DP and the property for USB Type-C > The extcon patches are merged on extcon-next branch. > So, you can check them on both extcon git and linux-next git repo. Oh, did not notice these extcon patches has landed. I will remove this section, if next version DP is required. > [snip] > > Regards, > Chanwoo Choi > > > >