Message ID | 1466758845-30958-2-git-send-email-meng.yi@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <dri-devel-bounces@lists.freedesktop.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 019C3607D3 for <patchwork-dri-devel@patchwork.kernel.org>; Sun, 26 Jun 2016 15:27:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E6D902849E for <patchwork-dri-devel@patchwork.kernel.org>; Sun, 26 Jun 2016 15:27:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DB6FA28544; Sun, 26 Jun 2016 15:27:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3DA042849E for <patchwork-dri-devel@patchwork.kernel.org>; Sun, 26 Jun 2016 15:27:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9C7D96E1B4; Sun, 26 Jun 2016 15:27:41 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0069.outbound.protection.outlook.com [65.55.169.69]) by gabe.freedesktop.org (Postfix) with ESMTPS id C7DC56EA7B for <dri-devel@lists.freedesktop.org>; Fri, 24 Jun 2016 09:11:27 +0000 (UTC) Received: from DM2PR03CA0043.namprd03.prod.outlook.com (10.141.96.42) by BL2PR03MB468.namprd03.prod.outlook.com (10.141.92.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.523.12; Fri, 24 Jun 2016 09:11:26 +0000 Received: from BY2FFO11FD037.protection.gbl (2a01:111:f400:7c0c::116) by DM2PR03CA0043.outlook.office365.com (2a01:111:e400:2428::42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.523.12 via Frontend Transport; Fri, 24 Jun 2016 09:11:25 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none; nxp.com; dmarc=none action=none header.from=nxp.com; nxp.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD037.mail.protection.outlook.com (10.1.14.222) with Microsoft SMTP Server (TLS) id 15.1.523.9 via Frontend Transport; Fri, 24 Jun 2016 09:11:25 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u5O9BGmh005935; Fri, 24 Jun 2016 02:11:22 -0700 From: Meng Yi <meng.yi@nxp.com> To: <stefan@agner.ch> Subject: [PATCH 2/2] drm:fsl-dcu: add support for drm bridge Date: Fri, 24 Jun 2016 17:00:45 +0800 Message-ID: <1466758845-30958-2-git-send-email-meng.yi@nxp.com> X-Mailer: git-send-email 2.1.0.27.g96db324 In-Reply-To: <1466758845-30958-1-git-send-email-meng.yi@nxp.com> References: <1466758845-30958-1-git-send-email-meng.yi@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131112330855141647; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(2906002)(305945005)(50466002)(97736004)(8676002)(76176999)(48376002)(229853001)(2351001)(110136002)(33646002)(85426001)(68736007)(92566002)(11100500001)(105606002)(4326007)(50986999)(81166006)(81156014)(106466001)(189998001)(356003)(19580395003)(7846002)(19580405001)(50226002)(5003940100001)(2950100001)(104016004)(36756003)(87936001)(77096005)(5890100001)(6806005)(8936002)(586003)(8666005)(86362001)(47776003)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2PR03MB468; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD037; 1:N6wbG6y8Sntsoj/PXCF1pb027tqH1GHXKjS7ACY4rGlZOTDbXjCKw0bdAHr0bsMaTU5GMmyCi3CFJVovzo5FiNtjdHWpJh9X0BmaffQ2Vw7hH/QWaVFJtvgoqCsOvSwyfhVBEwde7WLVYwAu0mQ1SqhTGPTU8k+sh4HbQjLeMdzcL1D6JqtwviF2qdDjrLVivOcTqzv3dPtXBM1MJB2eVNAwM0j1aq5ak8J11/oHKahigyj0YV9SQOlmeSoGE6+fIbsCXG+6LaZW+qZdAsR+VsupGXC3qSBcBW6f9d3tXevC2ruES9wtf4wG67kCjhbG1EJImT5zFCoqfI9Zx/DroHFWHWlwrqhBXQlSjT3+fJk55/eh1lzponZmzkCjMI9ovL6/L10Q8RdhFpo1i75Yrc+ax2et6rYFzdqC+gejJUrLdbAuQv1MmhWdYvKDrQtLpZDRBKlZrqb0VsbRsHlbdUKL0qPbFxcIa0dSjQZ7TgKTqX1WL19WdLbTG6oWZz3WMW9bh6cp27fALupj8OtRDyBBRW8pGlPl40E8rmMo/CMqBrJZVUu9t7iYJb402LsZJHEnhclzz+aV9m+F7xsa5EEHqrIimsNFTYsLz54NXFOAVPTmGij+L7AsUVnTI7b8XwDyJz7J1oYRhLJU1KNhbj5Ih88lF2d7iNPEuFj9ln8hfntrqMJlP6UpAg0DErLH MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 149249bd-a36b-4839-efae-08d39c0f84bf X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB468; 2:lnjUBa5C+WtyG3F5/0rtZFYmYu6fwsJIuiSuu1laN5+a6Gf5FnVes9TCew51ucJQQHTMPSNL6+noxIN35qiEfGN6VPf2T8ruvxHZzclTfiHRx8hXexQcwcdqOyKYWMrMheXDcbYnMuBk75Z+bWxR/4FgIcYpoMBLg+7iUuuXVcsDTMyA4j2jjdsYyfBYrRlx; 3:pKw/ZCEs8xRZnTrWWPV3as4fFiTHquiE3V82rJw/u2Q6egJ1qp/o1ashRBLm/1oaYvV6rdRk53P4rNq7Lxn85Mw2QFU+JIe4VGgiIBqliJeh/io3y4tA/7ZwBep68opEN8kaQ4igYJjs/unsMBUtk36TSw8vx1LAy5PSUZuilrNUv2WwlEe0/SeNETSh927rC8PJSSZMfgjkH+vMMzHDyjWXBSYkL3fyhED4POZ19YU= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB468; X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB468; 25:kzfUhaIZMBm0CBDzi/76Y13dPq7flTqi7zXnvSo49IIImWdU7A6EW+g0xGwdlLqfMRumdvNOwzh4n3XNGbTovRUHdFYTtzn6IE5lV0AE3C44ISEE+kfycMOyYHJxaUosY1AlJmzSYl72gOvqWlxZC5O8S714EomtdvLB+RonBlkCGFrBWRq58RuC5wgOk0XrcmM4y5lBQps3zKDzB8cpw6b0haweOmL+86rhUKTK26dVYKAkFBQerUBByLMjvMYf/Gs7tl2xormQVOVmN9OkDTVGHQI4J2kBjcj+ar1q1l9dGImj6Oe2xe49Orxxz+zKEQL1LaFBCV6ruN1tGChVM3WFkYiIcXZr8AFt8fL60u64FVNfza6XAwpcpJyprXevyWMGNLN06DeSPVeMfXG58+Tf9ycV4yWcmrRjwyw7snQmmt5Rjg4TOgala+BPBci7BBwToTXG0/GYmfTrmhZIh2eoSlC6Nw8faSsun9viuZHKV3ul/ZZxHxCGycxsXNrrkuAfR2V7w8LSuV9/uyj3r3UpStiBDRZl5xGEx50JhNWLRS9NKF6At7/sUsGwAcigwkYuhu+Dqq5E4dT4xSFiAS7b5u4P6AMxRKXmvpKA27C9arJs5Vhpeg5k/3pP0tgkQodIOdP5aq2MOD2/WQApRnDyGD6iGMEUNY/KNCjtX3G61fCFdxsPTbG3mRLfznjlyzfMqCX3gf42vvOPZkXanNeA2c9/aVtgNYTDlAVe2q89za3scCBQgQTRcCfvbYRE X-Microsoft-Antispam-PRVS: <BL2PR03MB46823FAC11B4E1A71E0E156EC2E0@BL2PR03MB468.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13017025)(8121501046)(5005006)(13018025)(13023025)(13015025)(13024025)(3002001)(10201501046)(6055026); SRVR:BL2PR03MB468; BCL:0; PCL:0; RULEID:(400006); SRVR:BL2PR03MB468; X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB468; 4:pVy71/nakai+Zv/gN6M9AUis5fBQpBtaXJ3VKHk9CD5UjrxjhVSBK+B6w8M5lpPxkjbMzHlbQVWKIyDNkGYO++BMHKwvrc3mAlw+YuehpKCh8bsqE+zY6CevL86wzrfqhSWBg1V+0ql4PYlt2X3Mdzn5V8dqe4oiq2ub/AbDW1ztfZHfNpaVhgey22YHWctAB0t/vdnEq04gvnxepXvFgIj4C/kIJ0VHhbu+8WIt4XQDGg/r2wjK0LrBhq+KyhMHMYctMKFJXyWOw29HWEbAaCJwMxoafqXKL6lm5MR9dsfp8lJrYkZ47q1PDOqCMmrncGq7KhVlifRCQyyEg31tih+2i4Sly82pFkWpjuqWQDfNDylTKMR9qCKVLBGrO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TUVj?= =?us-ascii?Q?hgP6xOZOsDL+Kwonh3a7LiVDlWYJQSQCQumn2fahaFPldL/AxRkBe+KCyJCA?= =?us-ascii?Q?ZYz7pLi0R6yDzWmrxVQRjr8QvnOt7KiMgyGG+gXJMKvcABtTJGT0SifwZMJa?= =?us-ascii?Q?+FJYtuXQaTwG9+YyRyqO/doOng/lXG77Pbluppy4UCq/ZbRqFLkwJtOr+J5T?= =?us-ascii?Q?YqKj9P8jBuCE6J1HdGbiRrGSKZSvmn6dLhscO1V69cl1n/kKeqAhVt9SKb4j?= =?us-ascii?Q?1lPwptBACO3G4jBpezjVFYE08FLVyWnyJsEeMnmyedDLYQluGxAO4s8zdion?= =?us-ascii?Q?XO0OSSvWGIV+0bN/5LdtZKfn58JhjMAWZ3BYDsPug9Uj1g6COkoCng1aodrM?= =?us-ascii?Q?0ThbTM951cudMJTXZc9MTblHb49XAUG0ZuMu8RDd9icnXVWGEkoNzqMNwcdl?= =?us-ascii?Q?c/lUe/kiRVWckpDWiiq9CH7vO0hbqFkIIgynhkweQ42cR1eQ5NgixEhOdxX7?= =?us-ascii?Q?1iO+Q/6qRlwVk=3D?= X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB468; 6:eVxymd5dnVfIg0Mh/73k/ocxy/JOSgxSQ0Idm+uTGREJf/WCmhKAiUYj+kB6tMIt4DUHZLw6kY2v8rChzso9sgrYictw2iWp7hR3ErWHICKpeePmPoi8LEf74d5aRQpisWgtE5PVuDnban0GWuSfm+4dckA86DBU+YRUL80LtUEc6mly7lSry6clZONCiwdMs5O4aIxS3GJVq2RrzT02IThInNK+MwgbE2SyZelfEWAdm5MPDN401ZX7QozsIN+cxrGZRS0rDfNC0pH73WdTJQiQLyMfTjI+6NSXi1uZsyroiGyxui2vHjOQ/deXjYlt; 5:mTO21zBhtcPgprOqLyHq6GPfuXS9hNJOJfuUOuQVOPD3yHKr1sDZiDGYreR1TYSSfQMgTba4kg0MMvvrGslRvEm1YdoiQqtW1ox33mRmsZQRYKh8j3P8e0lgxL8PUOAIiz6iSkmB3EGgRDVpbuzp6Iet4SMvpujVtGgl4f/oBxM=; 24:MZK8G06rgzsM/S/WXo4gq2EJmSIPiItc9jrCQu8vm+hOcyt8Q2wXIHLmrlW7HyzbgUyx+gAFnVAgBXS7Jy3v8WcVU4ZxYPPt+7J5ZdW3pVE=; 7:5DunricraiHnXAramBK8wUWohimM21R7KTdPGOKPCqsj5qn9jxFFQbX46v0BDfiKlXVoooR0gmD1WENJf4S0Srhe3I2JH4mrobjbLZpo1BDnc1jq8m8Uze8eJxENCHyHRcKGBrjlA6zav6cZg7b0wAUAUjleQgfyas1pq1Pq9vgSlJO3oe60IYIspxeW05L3zp/TJavym+RrDLIOLve972oa0obShYAoXs7P0LJxCaFjP53a+3QafmK2Vfz6oeFrgZbfAalbpbWrFTNXDBldfA== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jun 2016 09:11:25.3113 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR03MB468 X-Mailman-Approved-At: Sun, 26 Jun 2016 15:26:56 +0000 Cc: jianwei.wang.chn@gmail.com, Meng Yi <meng.yi@nxp.com>, emil.l.velikov@gmail.com, dri-devel@lists.freedesktop.org, alexander.stein@systec-electronic.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c index 57a030b..f19e9b1 100644 --- a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c +++ b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c @@ -189,6 +189,7 @@ err_cleanup: static int fsl_dcu_attach_endpoint(struct fsl_dcu_drm_device *fsl_dev, const struct of_endpoint *ep) { + struct drm_bridge *bridge; struct device_node *np; int ret; @@ -200,8 +201,21 @@ static int fsl_dcu_attach_endpoint(struct fsl_dcu_drm_device *fsl_dev, ret = fsl_dcu_attach_panel(fsl_dev, fsl_dev->connector.panel); if (ret) return -EPROBE_DEFER; + return 0; } + bridge = of_drm_find_bridge(np); + of_node_put(np); + if (!bridge) + return -ENODEV; + + fsl_dev->encoder.bridge = bridge; + bridge->encoder = &fsl_dev->encoder; + + ret = drm_bridge_attach(fsl_dev->drm, bridge); + if (ret) + return -EPROBE_DEFER; + return 0; }
The current output code only supports connection to drm panels. Add codes to support drm bridge, to supports connection to external connectors. Signed-off-by: Meng Yi <meng.yi@nxp.com> --- drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+)