From patchwork Wed Oct 16 19:26:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Paul X-Patchwork-Id: 3057541 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D910CBF924 for ; Wed, 16 Oct 2013 21:01:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 467AE204B2 for ; Wed, 16 Oct 2013 21:01:04 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 9AA19204AD for ; Wed, 16 Oct 2013 21:01:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 89A01E678B for ; Wed, 16 Oct 2013 14:01:02 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qc0-f170.google.com (mail-qc0-f170.google.com [209.85.216.170]) by gabe.freedesktop.org (Postfix) with ESMTP id 99F32E785F for ; Wed, 16 Oct 2013 12:27:40 -0700 (PDT) Received: by mail-qc0-f170.google.com with SMTP id n9so878481qcw.1 for ; Wed, 16 Oct 2013 12:27:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=GAzwg7idEC0dMfuHveRLB/Hm3AE/qdtgQYvoveFjg4o=; b=bKXeTOPdfar5A0smpXzrdhe1u7vt+Uouq0udfb+CfukvCt+pQiiUiYwTxKbAtNVFMv 9CHboD7jow6CJE+mS6IodEUAffKFjnDgCo2/kFtXTV41QSMEW4DRySBVsWoFFCYfYNlV jGg0ZMapVpWr83oKL2kgxm6JfdWf220h8t5Gs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=GAzwg7idEC0dMfuHveRLB/Hm3AE/qdtgQYvoveFjg4o=; b=blJqRo2GaxqXaA568PLNc7uU2UbT1l5irvIMAPyCWwoAnHdDy3l/MfUlB6ZiwX/gPz obS+az+m3UyyvhjjQ0KSplbJjFFTZVlbcBxTZP7wMXGag6NKcBp4Nhs/uW0ma8LJr5YU lO5juzH+CkVLi2mtgaCuuXdNRq6ZyHww5+KVJbjRy2/DaO7VhEV3lssmHGGbnIsZfuh3 HMAlw01etcA02Kbs9X5bIUSsj/bXNP5OYTXRtkKf+hoU+RT4xFIPgqM2cqoyZArVSDnq yt0VWqSTtFC/bdVAvCdfqxJVjnS7OUP9prheIvxJOYzagC82dmiFECFdI1t0M3dk5p/1 GpkA== X-Gm-Message-State: ALoCoQnl6+oB/9VDHBVmCJ66xS6k9DTZAXLoUuh66k5J9LnlJY4YN0IBTmpOpfIUXyJyCorUkxTD X-Received: by 10.224.123.13 with SMTP id n13mr7040816qar.33.1381951659925; Wed, 16 Oct 2013 12:27:39 -0700 (PDT) Received: from seanpaul-glaptop.roam.corp.google.com (cpe-173-095-180-236.nc.res.rr.com. [173.95.180.236]) by mx.google.com with ESMTPSA id 4sm167771575qak.11.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 16 Oct 2013 12:27:38 -0700 (PDT) From: Sean Paul To: dri-devel@lists.freedesktop.org, inki.dae@samsung.com Subject: [PATCH v2 22/26] drm/exynos: Move display implementation into dp Date: Wed, 16 Oct 2013 15:26:52 -0400 Message-Id: <1381951616-12548-23-git-send-email-seanpaul@chromium.org> X-Mailer: git-send-email 1.8.4 In-Reply-To: <1381951616-12548-1-git-send-email-seanpaul@chromium.org> References: <1381951616-12548-1-git-send-email-seanpaul@chromium.org> Cc: marcheu@chromium.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch moves the exynos_drm_display implementation from fimd into the dp driver. This will allow for tighter integration of the dp driver into the exynos drm driver. Signed-off-by: Sean Paul --- Changes in v2: None .../devicetree/bindings/video/exynos_dp.txt | 17 +++ .../devicetree/bindings/video/samsung-fimd.txt | 2 + drivers/gpu/drm/exynos/exynos_dp_core.c | 137 ++++++++++++++++----- drivers/gpu/drm/exynos/exynos_dp_core.h | 5 + drivers/gpu/drm/exynos/exynos_drm_drv.c | 14 +++ drivers/gpu/drm/exynos/exynos_drm_drv.h | 1 + drivers/gpu/drm/exynos/exynos_drm_fimd.c | 78 +++--------- 7 files changed, 156 insertions(+), 98 deletions(-) diff --git a/Documentation/devicetree/bindings/video/exynos_dp.txt b/Documentation/devicetree/bindings/video/exynos_dp.txt index 84f10c1..a073e15 100644 --- a/Documentation/devicetree/bindings/video/exynos_dp.txt +++ b/Documentation/devicetree/bindings/video/exynos_dp.txt @@ -45,6 +45,8 @@ Required properties for dp-controller: -samsung,lane-count: number of lanes supported by the panel. LANE_COUNT1 = 1, LANE_COUNT2 = 2, LANE_COUNT4 = 4 + - display-timings: timings for the connected panel as described by + Documentation/devicetree/bindings/video/display-timing.txt Optional properties for dp-controller: -interlaced: @@ -83,4 +85,19 @@ Board Specific portion: samsung,color-depth = <1>; samsung,link-rate = <0x0a>; samsung,lane-count = <4>; + + display-timings { + native-mode = <&lcd_timing>; + lcd_timing: 1366x768 { + clock-frequency = <70589280>; + hactive = <1366>; + vactive = <768>; + hfront-porch = <40>; + hback-porch = <40>; + hsync-len = <32>; + vback-porch = <10>; + vfront-porch = <12>; + vsync-len = <6>; + }; + }; }; diff --git a/Documentation/devicetree/bindings/video/samsung-fimd.txt b/Documentation/devicetree/bindings/video/samsung-fimd.txt index 778838a..fa465c3 100644 --- a/Documentation/devicetree/bindings/video/samsung-fimd.txt +++ b/Documentation/devicetree/bindings/video/samsung-fimd.txt @@ -39,6 +39,8 @@ Required properties: Optional Properties: - samsung,power-domain: a phandle to FIMD power domain node. +- samsung,invert-vden: video enable signal is inverted +- samsung,invert_vclk: video clock signal is inverted Example: diff --git a/drivers/gpu/drm/exynos/exynos_dp_core.c b/drivers/gpu/drm/exynos/exynos_dp_core.c index 089ae22..13ea8b7 100644 --- a/drivers/gpu/drm/exynos/exynos_dp_core.c +++ b/drivers/gpu/drm/exynos/exynos_dp_core.c @@ -18,9 +18,12 @@ #include #include #include +#include