From patchwork Mon Mar 3 15:13:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 3754921 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 9E833BF13A for ; Mon, 3 Mar 2014 15:13:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 433A9203DA for ; Mon, 3 Mar 2014 15:13:56 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 6E46E203B6 for ; Mon, 3 Mar 2014 15:13:53 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7F8D4FB348; Mon, 3 Mar 2014 07:13:51 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pb0-f45.google.com (mail-pb0-f45.google.com [209.85.160.45]) by gabe.freedesktop.org (Postfix) with ESMTP id 4F72AFB348 for ; Mon, 3 Mar 2014 07:13:48 -0800 (PST) Received: by mail-pb0-f45.google.com with SMTP id uo5so3140862pbc.18 for ; Mon, 03 Mar 2014 07:13:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=T85r3QxuEUg854Fepe3XR/meJ44ODetrBHEyVT933p0=; b=JpYYC9VRwZyAnqVT1UiGXNaP99Hl1gjtz784dYIE3CMuGMet2Hnu7gpGWuPH2EjJ2F QWlOLXnfe4r9YxKUpUS61p7lTn0U2V1lYZauufg4CRiTigxTIOnVL4AAo1X7qsBoEImT H7JNeXtSL8MrEopbIlFMPSqbPgu4QhD6F6owcdOxWWTrGLggiUj3RoWNQjUb+XSJmWWD f9VsK6noY5sBtUGPUAan7cKHwB6/l1/8WLi2YbNUYqhUYQZ/HRe2Gk3DhZZ4MD/jM3C2 5MmdUY/OT6BWkCX9QBXWWc/mPv5aSpV5scbjwvNkmWfbpMoRwPzzqOXX3GeWfr+aFEzz Y2Pg== X-Received: by 10.68.202.37 with SMTP id kf5mr20422856pbc.38.1393859628013; Mon, 03 Mar 2014 07:13:48 -0800 (PST) Received: from localhost.localdomain ([59.11.200.146]) by mx.google.com with ESMTPSA id js7sm37466846pbc.35.2014.03.03.07.13.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 03 Mar 2014 07:13:45 -0800 (PST) From: inki.dae@samsung.com To: airlied@linux.ie, dri-devel@lists.freedesktop.org Subject: [RFC PATCH 2/3] drm/exynos: add super device support Date: Tue, 4 Mar 2014 00:13:40 +0900 Message-Id: <1393859620-3764-1-git-send-email-inki.dae@samsung.com> X-Mailer: git-send-email 1.8.0.rc3.16.g8ead1bf In-Reply-To: <1393853413-22641-3-git-send-email-inki.dae@samsung.com> References: <1393853413-22641-3-git-send-email-inki.dae@samsung.com> Cc: t.stanislaws@samsung.com, a.hajda@samsung.com, Kyungmin Park 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@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org X-Spam-Status: No, score=-4.1 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 From: Inki Dae This patch adds super device support to bind sub drivers using device tree. For this, we should add a super device node to each machine dt files like below example, exynos-drm { compatible = "samsung,exynos-drm"; crtcs = <&fimd>; connectors = <&dsi>; }; crtcs propery can declare crtc device nodes, fimd and mixer. And connectors propery can declare connector device nodes, MIPI-DSI, eDP, and HDMI. With this patch, we can resolve the probing order issue without some lists. So this patch also removes unnecessary lists and stuff related to these lists. Signed-off-by: Inki Dae Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_dp_core.c | 45 ++++--- drivers/gpu/drm/exynos/exynos_drm_core.c | 204 +----------------------------- drivers/gpu/drm/exynos/exynos_drm_crtc.c | 17 +++ drivers/gpu/drm/exynos/exynos_drm_crtc.h | 4 + drivers/gpu/drm/exynos/exynos_drm_drv.c | 209 +++++++++++++++++-------------- drivers/gpu/drm/exynos/exynos_drm_drv.h | 57 +++------ drivers/gpu/drm/exynos/exynos_drm_dsi.c | 48 ++++--- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 48 +++++-- drivers/gpu/drm/exynos/exynos_drm_vidi.c | 61 ++++++--- drivers/gpu/drm/exynos/exynos_hdmi.c | 46 ++++--- drivers/gpu/drm/exynos/exynos_mixer.c | 54 ++++++-- 11 files changed, 374 insertions(+), 419 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_dp_core.c b/drivers/gpu/drm/exynos/exynos_dp_core.c index a59bca9..cb9aa58 100644 --- a/drivers/gpu/drm/exynos/exynos_dp_core.c +++ b/drivers/gpu/drm/exynos/exynos_dp_core.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include