Message ID | 1468564880-3198-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 23B9A60868 for <patchwork-dri-devel@patchwork.kernel.org>; Fri, 15 Jul 2016 07:52:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 13A3228304 for <patchwork-dri-devel@patchwork.kernel.org>; Fri, 15 Jul 2016 07:52:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 07B4A28325; Fri, 15 Jul 2016 07:52:38 +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 9584B28304 for <patchwork-dri-devel@patchwork.kernel.org>; Fri, 15 Jul 2016 07:52:37 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0CC5B6E95F; Fri, 15 Jul 2016 07:52:36 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0086.outbound.protection.outlook.com [104.47.42.86]) by gabe.freedesktop.org (Postfix) with ESMTPS id F27AF6E948 for <dri-devel@lists.freedesktop.org>; Fri, 15 Jul 2016 06:52:18 +0000 (UTC) Received: from BY2PR03CA057.namprd03.prod.outlook.com (10.141.249.30) by CY1PR03MB2411.namprd03.prod.outlook.com (10.167.8.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.539.14; Fri, 15 Jul 2016 06:52:17 +0000 Received: from BY2FFO11FD053.protection.gbl (2a01:111:f400:7c0c::168) by BY2PR03CA057.outlook.office365.com (2a01:111:e400:2c5d::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.534.14 via Frontend Transport; Fri, 15 Jul 2016 06:52:17 +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 BY2FFO11FD053.mail.protection.outlook.com (10.1.15.190) with Microsoft SMTP Server (TLS) id 15.1.523.9 via Frontend Transport; Fri, 15 Jul 2016 06:52:17 +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 u6F6q97W013867; Thu, 14 Jul 2016 23:52:14 -0700 From: Meng Yi <meng.yi@nxp.com> To: <stefan@agner.ch> Subject: [PATCH v4 2/2] drm/fsl-dcu: add support for drm bridge Date: Fri, 15 Jul 2016 14:41:20 +0800 Message-ID: <1468564880-3198-2-git-send-email-meng.yi@nxp.com> X-Mailer: git-send-email 2.1.0.27.g96db324 In-Reply-To: <1468564880-3198-1-git-send-email-meng.yi@nxp.com> References: <1468564880-3198-1-git-send-email-meng.yi@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131130391372076168; (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)(189002)(199003)(48376002)(81166006)(305945005)(104016004)(189998001)(92566002)(50466002)(110136002)(97736004)(5003940100001)(7846002)(81156014)(19580395003)(2950100001)(11100500001)(77096005)(50226002)(6806005)(19580405001)(356003)(8666005)(8936002)(4326007)(2906002)(5890100001)(586003)(76176999)(229853001)(47776003)(85426001)(8676002)(68736007)(2351001)(87936001)(106466001)(105606002)(36756003)(86362001)(50986999)(33646002)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR03MB2411; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD053; 1:kWwNBf06viF4qb743m+3/qXo0LOKJvLhgmGjp7/V4T0X9xKF4gHQDkLJTPCKgjgYzbC6Cnio7xwq9ATNP6qak4kzuY4uyCIC3Gjy/Y4yBkcvUI/Dqfs6oZYlJ05I6tNQfmPp9xE5OjGFm1tKPEQqrQEjHC6AxqYYQ5Y8U0jokFOfe/ehbocb1MLiGcTUX0vUvWlskw1iEuRPkbywPjoCRA37uiXtf/eLbYCxwLCOPEOIwiBMyBPGCD7u7qMrZ3Lpd3XkniBFWjcnJr1+11HmBEuhWMJOyuJ3zx3XAPSQm+5KLkBgXG9U55l1B7ERB3w0LkeMN4vgdjq+Zu+2i68nHGVFoMmMjyPokaCbt6074YCul6ukyhEDKF7bQlUgctQqVqvjQ6pyR9NHtHFuktvwSET4GUuYojduBEguctPVyXqEnA7GSKIni+lj+hUOrcjoqI5YsYbP91oLC5mWjLq/URW9O41yBws4XUv3EK5oyQfQm4jQyrhpBCdMrbDk/WAZjdXDVWNAWLBF9tsI8JiX9fO9XspwIZrvv750up/Cr+O6IdLysRJMFhpENpNXJeznTPG3Fur+dYpzjEWyaF9qc8qD6RuaEzEbTZcyi2izAD0YuMmOF4O6eEg2ahn8MSWdicMX2Y+SEvSqVVlld1g8iSiE5eJvJRzXz24cRG7CoW8BzM+hITLc7bpUJCylGPzbHIc+cYw3Or4IJuEpIlgqem+0JX3aN8dOcGnXNpWKDrs= MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 8b0aa450-96fc-4818-3328-08d3ac7c8f72 X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2411; 2:5Ct83lFSaKNtCxDhGk+dRCaKQolg3JkodV6yXHmzNIcs+1hj++gXsQMgUZXI/sqXbyq1hptlE05zVh83KECxd5B0h31lXftSi14R9bSOPixuTrHJxhNT0few5kVGZUk7dIn0woHU7H5sAmZYn/itfs4/6zGk+RK43MuT3jVOOgNeGSk50CL1sKwBTBihpnZz; 3:u+NVXpekQXFenUZftCmo4kk76LYCKsbwYLDQSiXmG34/vpsM/Zy8wrrZJmGHPSAjxJ/3SjkrJKtKXtJqXrGT6kaHKs+Xu1hbwIqnbH7wqULSPcbr1JA2Tidmg51UWt9gxLBLUWUrmr1xInTYAfjca3/xp5Ii7aotGnuZgSmtbHDoEpO9SutLp/UV6HfJDozrOzOBq7AAZebUm3YKXlpH2nT7mCwsmMgrVToeNCVLRo4=; 25:3swxHWPGfvpGwNksWPGrrks5zv8DVZjgoPwR8WW6Lei/CillsD61e9eahTCqeLVyeBTbXnGdW9YBwTiYsilUnQvCo/Qb5fmJaU3K9hv3o1R2wGL31c5Y9uYdpRt8GKTOhtgAMZKEtgmOpxFejFpCcaHeqDfCIAzC31zEKVQrU2hA3BSAV99yAg5naI+ZON7jtWYqIuKtH91hznewfbya8gH9n/12p3OJGZSCxX22DIF/DWOwc6r8zloExCP7eXGQpps7mNVSmMB93cFP3UtGt048ACs0SSVZbOzwnaWPGgcdQrAWeN0pVLhFVwakYqfO0CNl1lT12/J7TBVnp4I8wzzNUjx77pMotMJj1ZV208RO5KulHIXspX4z8KlukeAG8syiJESAQoj6wckn8BYTfIt8A1dYGvaLayRlLX+tL7U= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB2411; X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2411; 31:bP8HGnHEn8vavzrkAjUDKDrVqgpXdVdjMAexRgWwXe6gVMqTzOEIiqWOhjw6QgvHte4rl/JFRZnYkxGaPcIFUFRp2MYG2duxtgui61QOhS2f8w6sKjCt0UYwcrYhtREthxGCS3pzqFXhS+1LJfDVjzmDX1n5AMLvqTIudFf6F4piQV0mKmZVr3Iw5uZ616wTix66xxcMZvwq7M8dos47Ug==; 4:XYMpZsqoX7e36AFxV7g0cDqi7h7QxHngpaSgKHlra3iBMx9S70fnwXfwO6Gti+D9Ah1FuCo1qV6SKl8B/xi/oXl17PdbswrwGqWVFDszbthmD+573Zk0Mv8MmLPBAmLEgNZikI+K1kSJDDDn9GaEu53UvP+I5oEnwQGyvhE0Ey3sRYe9a8WBt3J1VaxudxyhHfSJWgouECHe6sYS7xait/kUmhIF0lxrEPxaylLrjRrUX+K+GgGku8i3Nf+gZ/U6Joc8ebNlPSJ3AHZu5qD06SoLGhv8s/rtLKQwNyeICW5bN11hJnOLvR+zHvX3GLtqkZN49qeZCcgcKepyr9KhNSCEmeGexi1arEOpZ7RYe85tJkhKXtmgGaso/0checzZ0vRRPxoOjvRbXB4eYPPcxbebZ3nzrBqZCDqO/2CVm4RCqkEzdmmnldlRkRdIJ+anXawvKHDV5P/za8TUQHC/mkhWeyXxFJ7LZvScJd77gQxP5ekWYWx1oTfE5Gb6C9tx2XZod72dnl0vymJoXVFB6w== X-Microsoft-Antispam-PRVS: <CY1PR03MB24119356E24EAF3064372BA5EC330@CY1PR03MB2411.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13015025)(13017025)(13024025)(13018025)(8121501046)(13023025)(5005006)(3002001)(10201501046)(6055026); SRVR:CY1PR03MB2411; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR03MB2411; X-Forefront-PRVS: 00046D390F X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR03MB2411; 23:+3xSrzqIA1Lr3okGmUruJWuk5YVZeYFTtObwNasf4?= =?us-ascii?Q?AuRQGjRUncIsc2ch7DlWfq8Pl8k15AotuPgiXs6n5c1SetE6BGj/tgvOUSHd?= =?us-ascii?Q?mEshKw4RAuJG0ls19hesgTGhEFko2xDiOnutsX5pn0J4Bhj7Kq0K/Ff7+J/8?= =?us-ascii?Q?l6LXrYbS1qzY8TC+aEj6DHlvyfdaLuTFUzX6x3z71u3Aw5PDkzWpLhli5LZB?= =?us-ascii?Q?o0+ah6QzJL4K8b5ymuI3vtOGQkUFM/wf5biGsXhQr0cUxOqjmhoQoU6pxscj?= =?us-ascii?Q?7mXRIaTPer2X9J0N6U+4WhsW1g9X7N5oC3UntOj2pIvlNv8JCD89RFTLHYsN?= =?us-ascii?Q?xvA5jMnW8JmoJGHw+PfZO0BdLgrop9Cp0CrgsR7l8FQF7/1ooNd3kAJ8XOp3?= =?us-ascii?Q?Ni/3/86hFLmVn1j4klWuvTx18sjfdjVO5I1PoTJuk+sXMBpucH8AdPw/bY0w?= =?us-ascii?Q?GCdToEdIQREqMhWFGbJqduGl6odIrzWaNb+GX5TkT/FsOq83HsS1kkw2R9Qk?= =?us-ascii?Q?rfb8drGw1kWYNRFACq7As3QzaOfoXCfGcA+tv9Akf8W/V/54tk+bMinjoWMn?= =?us-ascii?Q?oV7cwM5qRrL4qUiuLfMKCHymiqfjbbO7oif6eahYOWiIwAq2zC1xNgP++4fz?= =?us-ascii?Q?yaukhZJW+ye++xQzKBhrrJjHIbsZVCIMq5eBribGsjYxOCkekezqB5LMQlht?= =?us-ascii?Q?CLYe7+edl0fOwGZNQkGfAD1H9qeQpGtaQb6jJ48hpDOZSztGLuIjk5egXeze?= =?us-ascii?Q?0notYzIDfa3nkcZSU5SPmwgJCbk2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il1FoWEQ2Ne/gOZRjFkKwcIOuP2qgi/hnlcBL/oUl4bK6h5PMqtrOB8QgwmJVqPImgP8=; 7:Wj2XMxtJq+RZVcE6zNrRDxL4Z0Kc2mdeWU86fop6Z2Vq7piGibMePbUxL4DfiazTrYJ1RcXKLJvMoRAfDJlrKj0FXP8UUscWkmpDKBYVe3/sqbrUK//6wczPPh794TNghPuB3lQNiI8Lek/hfCgXRh0LFLPm4VhEAaeNbJ+2oDGN9T/JwDCqdoRORduM3qIh/7xa/Kr5cxlr87qeVnEBFX9ZG7OtAg942O2F3PNXncyhAFo7K0Q6oGCVqCytRDjy SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jul 2016 06:52:17.0048 (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: CY1PR03MB2411 X-Mailman-Approved-At: Fri, 15 Jul 2016 07:51:48 +0000 Cc: 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 ef34436..56f6991 100644 --- a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c +++ b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c @@ -180,17 +180,27 @@ 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; np = of_graph_get_remote_port_parent(ep->local_node); fsl_dev->connector.panel = of_drm_find_panel(np); - of_node_put(np); - if (fsl_dev->connector.panel) + if (fsl_dev->connector.panel) { + of_node_put(np); return fsl_dcu_attach_panel(fsl_dev, fsl_dev->connector.panel); + } + + bridge = of_drm_find_bridge(np); + of_node_put(np); + if (!bridge) + return -ENODEV; + + fsl_dev->encoder.bridge = bridge; + bridge->encoder = &fsl_dev->encoder; - return -ENODEV; + return drm_bridge_attach(fsl_dev->drm, bridge); } int fsl_dcu_create_outputs(struct fsl_dcu_drm_device *fsl_dev)
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 since V1: -no change --- drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-)