Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932591AbbHHDzZ (ORCPT ); Fri, 7 Aug 2015 23:55:25 -0400 Received: from regular1.263xmail.com ([211.150.99.140]:49007 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751521AbbHHDzX (ORCPT ); Fri, 7 Aug 2015 23:55:23 -0400 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: ykk@rock-chips.com X-FST-TO: nel@lists.infradead.org X-SENDER-IP: 172.245.48.13 X-LOGIN-NAME: ykk@rock-chips.com X-UNIQUE-TAG: <2d5ef93203d0fe297f12e4ddfe4bab6b> X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 1 Subject: Re: [PATCH v2 4/8] drm: rockchip/dp: add rockchip platform dp driver To: =?UTF-8?Q?Heiko_St=c3=bcbner?= References: <1438943674-18191-1-git-send-email-ykk@rock-chips.com> <1438944380-18897-1-git-send-email-ykk@rock-chips.com> <1730542.s7otqjtiXD@diego> Cc: Russell King , Fabio Estevam , Jingoo Han , Inki Dae , djkurtz@google.com, dianders@google.com, seanpaul@google.com, joe@perches.com, Takashi Iwai , Andrzej Hajda , Thierry Reding , Philipp Zabel , David Airlie , Gustavo Padovan , Seung-Woo Kim , Kyungmin Park , Krzysztof Kozlowski , Kukjin Kim , Ajay Kumar , Joonyoung Shim , Vincent Palatin , Mark Yao , Andy Yan , ajaynumb@gmail.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-ker@NULL.NULL, nel@lists.infradead.org From: Yakir Yang Message-ID: <55C57D7E.6080800@rock-chips.com> Date: Sat, 8 Aug 2015 11:54:38 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <1730542.s7otqjtiXD@diego> 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 Content-Length: 10760 Lines: 328 Hi Hekio, 在 2015/8/8 6:46, Heiko Stübner 写道: > Hi Yakir, > > > I think this Rockchip portion is missing a devicetree binding. Oh, thanks, I would complete it in next ;) > You have the ability to power down the actual edp phy by using > grf_edp_iddq_en from GRF_SOC_CON12. This is similar to how the > rk3288 usb-phy gets put into a deeper state. So maybe you could > provide a phy driver (drivers/phy) for this similar to what the > exynos-dp does. Okay, so I need to add a new phy-rockchip-dp.c, include power_on/power_off ops, thanks. > > Some more stuff inline. But I guess by no means complete, as I'm > still trying to integrate this into my development-tree. > > > Am Freitag, 7. August 2015, 05:46:20 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 >> sclk_edp in platform driver. >> >> Signed-off-by: Yakir Yang >> --- >> Changes in v2: None >> >> drivers/gpu/drm/rockchip/Kconfig | 10 + >> drivers/gpu/drm/rockchip/Makefile | 1 + >> drivers/gpu/drm/rockchip/analogix_dp-rockchip.c | 419 >> ++++++++++++++++++++++++ 3 files changed, 430 insertions(+) >> create mode 100644 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c >> >> diff --git a/drivers/gpu/drm/rockchip/Kconfig >> b/drivers/gpu/drm/rockchip/Kconfig index 35215f6..096ed77 100644 >> --- a/drivers/gpu/drm/rockchip/Kconfig >> +++ b/drivers/gpu/drm/rockchip/Kconfig >> @@ -25,3 +25,13 @@ config ROCKCHIP_DW_HDMI >> for the Synopsys DesignWare HDMI driver. If you want to >> enable HDMI on RK3288 based SoC, you should selet this >> option. >> + >> + > nit: double blank line Done, > >> +config ROCKCHIP_ANALOGIX_DP >> + tristate "Rockchip specific extensions for Analogix DP driver" >> + depends on DRM_ROCKCHIP >> + select DRM_ANALOGIX_DP >> + help >> + This selects support for Rockchip SoC specific extensions >> + for the Analogix Core DP driver. If you want to enable DP >> + on RK3288 based SoC, you should selet this option. > [...] > > >> diff --git a/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c >> b/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c new file mode 100644 >> index 0000000..2f86e5e >> --- /dev/null >> +++ b/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c >> @@ -0,0 +1,419 @@ >> +/* >> + * Rockchip SoC DP (Display Port) interface driver. >> + * >> + * Copyright (C) Fuzhou Rockchip Electronics Co., Ltd. >> + * Author: Andy Yan >> + * Yakir Yang >> + * Jeff Chen >> + * >> + * This program is free software; you can redistribute it and/or modify it >> + * under the terms of the GNU General Public License as published by the >> + * Free Software Foundation; either version 2 of the License, or (at your >> + * option) any later version. >> + */ >> +#include >> +#include >> +#include >> +#include >> +#include >> + >> +#include >> +#include >> +#include >> +#include >> +#include >> + >> +#include