Message ID | 1467106325-33861-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 171B96075F for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 28 Jun 2016 10:05:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 06F9228559 for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 28 Jun 2016 10:05:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ED82F285F9; Tue, 28 Jun 2016 10:05:01 +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 4538028559 for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 28 Jun 2016 10:05:01 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 183F56E542; Tue, 28 Jun 2016 10:04:57 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1on0079.outbound.protection.outlook.com [157.56.110.79]) by gabe.freedesktop.org (Postfix) with ESMTPS id C4A0F6E535 for <dri-devel@lists.freedesktop.org>; Tue, 28 Jun 2016 09:42:47 +0000 (UTC) Received: from DM2PR03CA0004.namprd03.prod.outlook.com (10.141.96.14) by CY1PR0301MB0857.namprd03.prod.outlook.com (10.160.163.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.523.12; Tue, 28 Jun 2016 09:42:46 +0000 Received: from BL2FFO11FD017.protection.gbl (2a01:111:f400:7c09::176) by DM2PR03CA0004.outlook.office365.com (2a01:111:e400:2428::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.528.16 via Frontend Transport; Tue, 28 Jun 2016 09:42:47 +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=fail 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 BL2FFO11FD017.mail.protection.outlook.com (10.173.161.35) with Microsoft SMTP Server (TLS) id 15.1.523.9 via Frontend Transport; Tue, 28 Jun 2016 09:42:44 +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 u5S9gbKp011754; Tue, 28 Jun 2016 02:42:41 -0700 From: Meng Yi <meng.yi@nxp.com> To: <stefan@agner.ch> Subject: [PATCH v2 2/2] drm/fsl-dcu: add support for drm bridge Date: Tue, 28 Jun 2016 17:32:05 +0800 Message-ID: <1467106325-33861-2-git-send-email-meng.yi@nxp.com> X-Mailer: git-send-email 2.1.0.27.g96db324 In-Reply-To: <1467106325-33861-1-git-send-email-meng.yi@nxp.com> References: <1467106325-33861-1-git-send-email-meng.yi@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131115805651263847; (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)(47776003)(106466001)(105606002)(36756003)(356003)(110136002)(8666005)(50466002)(48376002)(586003)(86362001)(97736004)(19580395003)(19580405001)(2906002)(50986999)(189998001)(76176999)(4326007)(85426001)(33646002)(229853001)(8676002)(5003940100001)(81156014)(81166006)(68736007)(305945005)(92566002)(8936002)(50226002)(77096005)(2950100001)(6806005)(104016004)(7846002)(87936001)(5890100001)(2351001)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB0857; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD017; 1:VU1HtGwO09eiiioeQjF3iip0+uPZOEbwOqlmjIVqLucMfX7MbyyJYH5DAFi6SYC8uOnx0pReEOGNuT93HKZ+70DNi6CYYE588sk9/TE48rL+ZFKjIj0GLYDEuRuXA5PPRP5hcyGL/0Y+WOkDIFIkzZacjsuuRH0odvcE2OZ99jLBE/3pB+xaDF4OsHllX5r5eun+l/GKpzlkxAYWuRb6q0hxaZcuqC2LQMbBFWteLjp8OeDOUT5zLd44AEyrWbP5YrtVAR+A8G7fh72GQEHZcaPweYv5Sb09bOd1t9IVy+d8SiDQl4foFtL0zBT8eHTY2sDj2FP9T75O3tLAdc6JTm1xHONAdpc319/aAWSn8ShXUzhOgXcKdr7M7FyaRPVkqYqGOA4e2RXcQ54+Bf8XydACTH92Xa7GQ0RkFb9e2P4vsdA7AnYgxCNtsO0yQinOx2gk433napYKPqj3iCLeRk5xmLuwzdl6iNzahFkHptEhDE4fQdPhWMNjCOVxJjcJNZlm4eK7jGVsDSDRWdJ2IMwZFOiFmUfF/nhNU3hmChxToW8CZw9yEypAAtjJMxlv/o6MbSfOxh9JPTbxHg4eh5ifG5BbBhbj2buN+HGhHFhBVUNL0q8+gYp+B/awQlunjQlnzfY7FslqwKaf7zfPUSFsks3VnTO36vSNOfXTX5LOq24OI1N0Qt9uVqKcTnBI9/AW3aC8krJ1B5beZ6Ko6FkU4JEjtH0Uj8TdTjUV6eg= MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 57411906-2a58-43bc-0006-08d39f388ebd X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0857; 2:X2WTwRgj9g5BohQkgCwUCiZTnBL0yzXSIb86FJmXOChy6u3gyMIKTIzGZcLpGEboPzyy+WP6xemF+f/ci3Q7Y1pF92a7Fjr7595CfeLvtrV1aQJCOSuAbNDzB29GN2dQ4xdCRgnBuOZ18akCRtCYcsbJVdDKgRqq5l9riJIBeYxLUf1IZL4uXpk9scmul41U; 3:MlYyqD1s6zSTasiWw0u1wS+76exUYKg46g6UvUTF6HZkgGqFbZBHACwJhJdV2HaIlAwvovWPPknGtK1vNZj0XT5CL/BdE4rTKED+U7zPmgtXU53huaDmgYvdM3YiYoS/KpTBdHetHdbHHbqSzqI962kgGc7/CogqoSLCTj1x5/HiBf1zliot5qtkBSmGDb6hAtaHbjWm3vFg2TQNyjVzuVPi+M6bF+0RxsUFQH7WQqk=; 25:WqsiNG0uLpY3L4rY89f9kSiE9/xC/XohjbeySx7dvMsa0rueRMoRuER6NhU3C+4woYncX7J/K2clU3GT2GuSnMv8WND0gdLMMitGr7J/khgxBW0F1jdayQZxaIrRAUaclolabDreHO09H5L7/YNDd9fX7JYDbKuWyZx3AZNg+OdzECrc65YKS7+FhnBOUgq36NfLcuavdlad0rKt6bENrHcROUa/aDFK5UlUDVl0Bm1rkzjFAOjvvd/6rKBuuscSzYV69XaWnTyPJLnHOt4H/05zzIFCAzDqt7jA5qbI37UCYZFFHmIzZHySY/j35Qc+wXTKO2ZK4n3DrSbVTyhtomOUem3z5sngtVCaN2lxoID7WIi7hI4jTJ52nO9GkB5D0tiX52CL34gHSAfG4mfHb+SRThlSEaN2Cn329uXNPIk= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB0857; X-Microsoft-Antispam-PRVS: <CY1PR0301MB0857C2F6E304C8180ED002DAEC220@CY1PR0301MB0857.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13024025)(13017025)(8121501046)(5005006)(13018025)(13015025)(13023025)(10201501046)(3002001)(6055026); SRVR:CY1PR0301MB0857; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR0301MB0857; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0857; 4:HrFOr/WN/DKPTKrqcfLvDpm61jSFk49lOC9SYM8y2064hHMafdi04TtkEftBQueZB/tPueOdw7SbSzz088yKjsGrQXQZF3jBhJuAN6+qz5fpJsRv2CScubUpDDEU3yzbVLIgx630eYKcgHagyZ+yfn+eIVHRYQ19FvmIesGxMRu2opqQiP89RrjLKwGChbjy8u7dmhVk2ZFO1mCPLfiMSVfIQLqQygNisdBme5kb0/vqm8fQ+BWhlrc8PFyndkLMyYEWLdVvOwF4LcFqBYhbmgTnXOzfyHXcyuJNOTrgdhSkEw6PnDS9EiV523o23FUplu5YAgyJTWSaOyZBWqG5D5XYQI40t6aDr/G+Q+qW7EhY95MymIWgSpwecFQ9T16TbGw/RyH0rEKSKkOJuheQvEyEXDeNPzkehCAqBHBxZ78ayViPSi1TmqqUMVbX1w4/pR4aGMALDymvxq26pD/cN1T57u79X8zLRV93GVO+Hj2mWsYZ9U4ZU0QQSNM2gT7E7FiGtHRyGDwY5ZkQQh591w== X-Forefront-PRVS: 0987ACA2E2 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB0857; 23:DIz5f/sNaIFigrXp9Et6sDy4T9rq7SGVde48lxC?= =?us-ascii?Q?qcHHl0MavfONsJIiLzepiWqBx+enksFiTR6Sizn6yjnitGccH12MmjsjpZgE?= =?us-ascii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2ihwbZcbOO1DTBXmwE8Vejsb1jYP0iXP5dfQ72skMaAXAJ5VvYfDxMDL0rIPYIDZsL9oO415+D49JNlyGqkmd+Hg== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jun 2016 09:42:44.9391 (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: CY1PR0301MB0857 X-Mailman-Approved-At: Tue, 28 Jun 2016 10:04: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 b23cc58..b1a2490 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 ret; + 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 code to support drm bridge, to support connections to external connectors. Signed-off-by: Meng Yi <meng.yi@nxp.com> --- Changes in V2: -no change --- drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+)