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 > > > >