From patchwork Fri Aug 3 07:23:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 10556663 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3515413B4 for ; Mon, 6 Aug 2018 08:25:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2363529259 for ; Mon, 6 Aug 2018 08:25:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1700729262; Mon, 6 Aug 2018 08:25:07 +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=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C43DD29259 for ; Mon, 6 Aug 2018 08:25:06 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2115D6E289; Mon, 6 Aug 2018 08:21:05 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00093.outbound.protection.outlook.com [40.107.0.93]) by gabe.freedesktop.org (Postfix) with ESMTPS id C553F89241 for ; Fri, 3 Aug 2018 07:23:24 +0000 (UTC) Received: from orc.pedanet (85.226.244.23) by HE1PR0201MB2460.eurprd02.prod.outlook.com (10.168.147.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1017.15; Fri, 3 Aug 2018 07:23:21 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [RESEND PATCH v5 1/3] dt-bindings: display: bridge: lvds-transmitter: add ti, ds90c185 Date: Fri, 3 Aug 2018 09:23:06 +0200 Message-Id: <20180803072308.14962-2-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180803072308.14962-1-peda@axentia.se> References: <20180803072308.14962-1-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [85.226.244.23] X-ClientProxiedBy: PR2P264CA0045.FRAP264.PROD.OUTLOOK.COM (52.133.96.161) To HE1PR0201MB2460.eurprd02.prod.outlook.com (10.168.147.8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2243150b-766d-4ab1-a4e5-08d5f911ff30 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(7021125)(8989117)(4534165)(7022125)(4603075)(4627221)(201702281549075)(8990107)(7048125)(7024125)(7027125)(7028125)(7023125)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:HE1PR0201MB2460; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0201MB2460; 3:lF6snlDLwc8uxIeAIWwiYjwYFS4IrAI4YiMwJYA+lDbVfRRdwgqbn9uk1Rn4qCmxQ2kzMPDBqEVTuxEdGZfQC6eqAmrXWbHgJrvAyahoqteA6oofzGpq3I3nHnVIbuo3MDe7fZCAfviqxDsYtWM9mNea5bU0FKGj3ROm7A1b+9Hwp/afR9hnFAWSm4asccuoWW1iSUYL7SjoLFZHYA+F83FSxhI/wCzsZMMU7eoQdBKicUv2q0EbCAozNMMbocNF; 25:TQH2mrvXbP2UcHNhQGxVXgFiFBVyzXmntx7QeRfsvqI19Y+iQLlVaYPYE96QSodNWB0QGLxZSXcSptUeQWkEnlYfZKax5pR6psYtnAo55eLL1kMQVWdJBu+WDtMv8WFN9GayCMxvk8jUVYLDr+nW70Zsv7r+wTuc5GpqWl1DVnKBPfESRnyMjEvTI663sqxjqIplXwGu5tmrcDnqWtyLzRnot+MHQB/Fy0Y5d0NeMC/6IOcca4jLSbh7VIoRnYcaT7/whsp9t1koUzIsEA+uSJyh0Bn+HrYmdR58YEpXIM4+Khwi0BLTqV8eK64QhRUTfFv43LSipholP38c5lZUGg==; 31:kHG3aimXxp3qz1b+FZLzhnCMth60o+xHqVSwRkluwELzqXBbIWUJvIs0io7Wq/wJPZL0HE/TXh9EunVwIpAdWn+2cT2sxeEoyKZORRwghlxEBigTObLwhYjleL4cnmUIknK/aeTDdtJN+rxmNQX8LeTChNzvq8cjakpwEvmxFCU+fnM0eGyVoKxXZ0Z0bbOBWHovEkNJkc6JK1refVjyDM2nFtRpMNg4RLptrp6kmiE= X-MS-TrafficTypeDiagnostic: HE1PR0201MB2460: X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(3231311)(944501410)(52105095)(3002001)(10201501046)(93006095)(93001095)(149027)(150027)(6041310)(20161123558120)(20161123560045)(20161123564045)(20161123562045)(2016111802025)(6072148)(6043046)(201708071742011)(7699016); SRVR:HE1PR0201MB2460; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0201MB2460; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0201MB2460; 4:+0loYbIoF6LRtrvsJHQUjdidml/vbg2wxoyqKpJ3Rqf2N53zf5NKrSsvH7LDnys2jPyR3WRNEfkiHRRoMEnv29CASCq8LFBqltpYLfFO+4KKRxrB9EQsQxqsCgf5X5m89/jECggRB5BIArwSe0MJSVAcVZOQC/1z4cweeoVBQfwmd0vakiXx1Wwbq5oGDTe/Icgyc32q3mlGklnHuFFhJ5iC4mwYaUtobsLX3vlorYCAxezMzmt09ieLlUVdsZDotOEhFdwJNSGUCqHLjZNTRA== X-Forefront-PRVS: 0753EA505A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(39830400003)(346002)(396003)(366004)(136003)(376002)(199004)(189003)(2616005)(476003)(16586007)(2361001)(478600001)(11346002)(14444005)(76176011)(51416003)(4326008)(486006)(47776003)(305945005)(52116002)(25786009)(217873002)(54906003)(66066001)(2351001)(446003)(956004)(105586002)(68736007)(36756003)(316002)(106356001)(74482002)(186003)(50226002)(6486002)(97736004)(8936002)(1076002)(386003)(6512007)(7736002)(8676002)(2906002)(3846002)(6116002)(16526019)(53936002)(6506007)(6666003)(50466002)(86362001)(26005)(81166006)(81156014)(6916009)(5660300001)(7416002)(48376002)(142933001)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0201MB2460; H:orc.pedanet; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: axentia.se does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0201MB2460; 23:On0gX28QAYTfjAiF7QN+0P4sZLeOwuQD8MEyWx4?= UjyVw/D8EkSe0Gc5QcOgYANcR4z6kP6JISMK9x0A6z6uOHD8W/csSxGjn29YyJ+SN/tI2Ix1qnUFmAOqAvRQwFgTkhlgFu3g8Vc1C5Y8bsw6v19vnCR9U7nKixfGPYZz4r6u44HLtv/AtGaoZ3OqoKr5iTg92cKC+dAD8gNu1nxBNaHE28EAy8/yah06K/KTYInchxuzklVc4xt8CHQ2VMHD8jeW8eTi3FvHGtPlL8ZsJMZNdabLTaZzhyBP3A7B88OBRCt95Smy66y7ieadMo9T1fWylTeWwtJbWi44Y0NKWtUAVoAxJBTsBpsxkjf7bNhdBkYYKVfxqKueqj2jVi21f3ESy7xUS3WPjli0QL71Mb9N1JJWKu6Rytyxq8U4OK8R6YG6BQY9CyuQQKoOkkD1+ETjDwZ8bB1SJiKhN4UxoUD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e5gkWDyz2jLLDTMOcJu72aZBDeU3R9QiElJMwLOcSt5DkA8VKVi9TqWgAfSgY3v+pj27hIaKx59G3aD SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Aug 2018 07:23:21.9556 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2243150b-766d-4ab1-a4e5-08d5f911ff30 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0201MB2460 X-Mailman-Approved-At: Mon, 06 Aug 2018 08:20:19 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Alexandre Belloni , David Airlie , Jyri Sarha , Nicolas Ferre , dri-devel@lists.freedesktop.org, Russell King - ARM Linux , Boris Brezillon , Rob Herring , Jacopo Mondi , Laurent Pinchart , Peter Rosin , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Start list of actual chips compatible with "lvds-encoder". Reviewed-by: Laurent Pinchart Reviewed-by: Rob Herring Signed-off-by: Peter Rosin --- .../devicetree/bindings/display/bridge/lvds-transmitter.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/display/bridge/lvds-transmitter.txt b/Documentation/devicetree/bindings/display/bridge/lvds-transmitter.txt index fd39ad34c383..50220190c203 100644 --- a/Documentation/devicetree/bindings/display/bridge/lvds-transmitter.txt +++ b/Documentation/devicetree/bindings/display/bridge/lvds-transmitter.txt @@ -22,7 +22,13 @@ among others. Required properties: -- compatible: Must be "lvds-encoder" +- compatible: Must be one or more of the following + - "ti,ds90c185" for the TI DS90C185 FPD-Link Serializer + - "lvds-encoder" for a generic LVDS encoder device + + When compatible with the generic version, nodes must list the + device-specific version corresponding to the device first + followed by the generic version. Required nodes: From patchwork Fri Aug 3 07:23:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 10556603 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0546114E5 for ; Mon, 6 Aug 2018 08:21:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E6F97290F5 for ; Mon, 6 Aug 2018 08:21:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DB1362915E; Mon, 6 Aug 2018 08:21:28 +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=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 85430290F5 for ; Mon, 6 Aug 2018 08:21:28 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 22F596E203; Mon, 6 Aug 2018 08:20:28 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on070e.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0e::70e]) by gabe.freedesktop.org (Postfix) with ESMTPS id D29766E699 for ; Fri, 3 Aug 2018 07:23:30 +0000 (UTC) Received: from orc.pedanet (85.226.244.23) by HE1PR0201MB2460.eurprd02.prod.outlook.com (10.168.147.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1017.15; Fri, 3 Aug 2018 07:23:26 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [RESEND PATCH v5 2/3] dt-bindings: display: atmel: optional video-interface of endpoints Date: Fri, 3 Aug 2018 09:23:07 +0200 Message-Id: <20180803072308.14962-3-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180803072308.14962-1-peda@axentia.se> References: <20180803072308.14962-1-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [85.226.244.23] X-ClientProxiedBy: PR2P264CA0045.FRAP264.PROD.OUTLOOK.COM (52.133.96.161) To HE1PR0201MB2460.eurprd02.prod.outlook.com (10.168.147.8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f1d83d0e-ca63-4d3c-451d-08d5f912021d X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(7021125)(8989117)(4534165)(7022125)(4603075)(4627221)(201702281549075)(8990107)(7048125)(7024125)(7027125)(7028125)(7023125)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:HE1PR0201MB2460; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0201MB2460; 3:Rsc47zwWpnO0oj56BSzDMUExHyechYFlV17f7lbNitkZvXSIJXvEGXo6cI9Vt8g8u9auYqSIOaFaRTJ+eqOhBLIJ9fcmRiLMnZByIacACWJTomY7uqFuIPjI24twUnD/ncyY+gWgVTnge26XVeur9r0HwfWb7MsyMcfJbbGt8kpG6cSBp8sonh63wAf+ry2Bzo/tub7QrNeX4GvGfcePdsh6k3Z/brmvJINFXqfb8huKh0iCT99PnQLZcoBQwdt/; 25:rVbQFK1tEeF+XDotAeiOszcvhc6RLMWAYVFb3FNeOMT/2/KhCviPFJ8By0GzH47R5XcPfv/sG65orhNEf6L27K4O+KaaKBh34qowjwjbPpbM+sfEmx3n7WPLXhc6iJD/tqKxb0KiXscDVlmv1I1oon53XhHhyK+ivmIAS2jnVdOsJnGiSCe4tkcjY74sLmvNUyVq9276g3Se6sbpHXZFE06WNohtsYpP5/djGiJkAYxfnUuyZCU1GwCgFUMReoxLhhazfJF4HOCl+aWWHwB63wy9f6ivxdUMj2t1sSzUR5DbIUVC1izlVnIJ8jeij5pmr8UGUykkGWVKlm1H/43SDg==; 31:ng67dRyxKyQ1RdKBI9PAx7JdRAiWNWnp5MbrRKieaJBHfTT547LHoG9PtC8prI6kGweX0zjtS257kQZ/47m77K49N94vBZssfP0kUPVp+bFPHBm6BN6BNuUVi6B8NqZ9oExT9CoMooop4AlJwbIevP41rEFZCwr869TjT92QTT+GII/Us3vfCyWOg7EeE/3DIXFfYUr7ZwB9nodZB5ImQYrkpfou5k045Ivr1lhp4wc= X-MS-TrafficTypeDiagnostic: HE1PR0201MB2460: X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(3231311)(944501410)(52105095)(3002001)(10201501046)(93006095)(93001095)(149027)(150027)(6041310)(20161123558120)(20161123560045)(20161123564045)(20161123562045)(2016111802025)(6072148)(6043046)(201708071742011)(7699016); SRVR:HE1PR0201MB2460; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0201MB2460; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0201MB2460; 4:QWsHr1ZuqSkv9X5u809MHmtlX4KAoYI2xmhraVwbg5fGbh+7nWxylaW/s2hIKka05dxSBfayXTDBuJMtNHBLa7ra2gNli53Ois8T68cBjtr6rhGUm0c2P4BmHfXN0IULgajdvLvGVLP8ketWaN0rZzA+PCumLjXt3xoaVeeUzZx6eKUleq6okCRCHRh79o2XyNtNN3oQ9vaQoEGxCmFdqzor79Ay1lmR1DugWv2FwLFRN6PFxzWIV6bNS4vB3biPmotPllhRkhwxZEJudP17xA== X-Forefront-PRVS: 0753EA505A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(39830400003)(346002)(396003)(366004)(136003)(376002)(199004)(189003)(2616005)(476003)(16586007)(2361001)(478600001)(11346002)(76176011)(51416003)(4326008)(486006)(47776003)(305945005)(52116002)(25786009)(217873002)(54906003)(66066001)(2351001)(446003)(956004)(105586002)(68736007)(36756003)(316002)(106356001)(74482002)(186003)(50226002)(6486002)(97736004)(8936002)(1076002)(386003)(6512007)(7736002)(8676002)(2906002)(3846002)(6116002)(16526019)(53936002)(6506007)(6666003)(50466002)(86362001)(26005)(81166006)(81156014)(6916009)(5660300001)(7416002)(48376002)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0201MB2460; H:orc.pedanet; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: axentia.se does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0201MB2460; 23:xqpy7kvtsaTHwEe3/tyAUGPAN8TVZO4F9hrdLHe?= xaBOhkrC0t4hpf20LOI0zbV3xXsfydS4Cxf5D8ihbqydBGcLkd9uEQouRYTCDwqkkVH72J7euOYyh/e03oHMYHoA7kQ76ziXEeC1K1MP8pjpr+4pX/qjbSKnh1JLEQMC0xa6gxJ2h0qqwXkE7NXBqiRJdxO60ML7p+TBB2lrZEiw+w1CqeZtJvIh8wXvYKfaJ8oRmlQjuYJUc4KmxNtRauJ3F8mr2XrqQwXPxX+ySxSBNx6ZiH/pJsNVeq4pkHjx7h8WMRi1Vjb50Pl38EObMZjtzfLjO7hCMbDiIBHCSCE/y5b0q0QHr/5gnsHT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s03/XbZLHlkT20h9mUGkkZaAPU3EecHflgNbjh9wJ3KEtZy6gNiXi+678Fedl6iDcm/EuumDNT526SmcZAkdVbD7eU7dtJuiLsRz43clYF9xZd60MzfuJP9/3AD1DbMx+4Zdpw3zwVZFc1pymo+RHQRsRH1DEewfNJ8p34c0Zr SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Aug 2018 07:23:26.8462 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f1d83d0e-ca63-4d3c-451d-08d5f912021d X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0201MB2460 X-Mailman-Approved-At: Mon, 06 Aug 2018 08:20:19 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Alexandre Belloni , David Airlie , Jyri Sarha , Nicolas Ferre , dri-devel@lists.freedesktop.org, Russell King - ARM Linux , Boris Brezillon , Rob Herring , Jacopo Mondi , Laurent Pinchart , Peter Rosin , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP With bus-type/bus-width properties in the endpoint nodes, the video- interface of the connection can be specified for cases where the heuristic fails to select the correct output mode. This can happen e.g. if not all RGB pins are routed on the PCB; the driver has no way of knowing this, and needs to be told explicitly. This is critical for the devices that have the "conflicting output formats" issue (SAM9N12, SAM9X5, SAMA5D3), since the most significant RGB bits move around depending on the selected output mode. For devices that do not have the "conflicting output formats" issue (SAMA5D2, SAMA5D4), this is completely irrelevant. Acked-by: Boris Brezillon Reviewed-by: Rob Herring Signed-off-by: Peter Rosin --- .../devicetree/bindings/display/atmel/hlcdc-dc.txt | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/Documentation/devicetree/bindings/display/atmel/hlcdc-dc.txt b/Documentation/devicetree/bindings/display/atmel/hlcdc-dc.txt index 82f2acb3d374..9de434a8f523 100644 --- a/Documentation/devicetree/bindings/display/atmel/hlcdc-dc.txt +++ b/Documentation/devicetree/bindings/display/atmel/hlcdc-dc.txt @@ -15,6 +15,14 @@ Required children nodes: to external devices using the OF graph reprensentation (see ../graph.txt). At least one port node is required. +Optional properties in grandchild nodes: + Any endpoint grandchild node may specify a desired video interface + according to ../../media/video-interfaces.txt, specifically + - bus-type: must be <0>. + - bus-width: recognized values are <12>, <16>, <18> and <24>, and + override any output mode selection heuristic, forcing "rgb444", + "rgb565", "rgb666" and "rgb888" respectively. + Example: hlcdc: hlcdc@f0030000 { @@ -50,3 +58,21 @@ Example: #pwm-cells = <3>; }; }; + + +Example 2: With a video interface override to force rgb565; as above +but with these changes/additions: + + &hlcdc { + hlcdc-display-controller { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_lcd_base &pinctrl_lcd_rgb565>; + + port@0 { + hlcdc_panel_output: endpoint@0 { + bus-type = <0>; + bus-width = <16>; + }; + }; + }; + }; From patchwork Fri Aug 3 07:23:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 10556597 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E6A8D14E5 for ; Mon, 6 Aug 2018 08:20:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D4E9229040 for ; Mon, 6 Aug 2018 08:20:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C93592915E; Mon, 6 Aug 2018 08:20:58 +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=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F1C6C29040 for ; Mon, 6 Aug 2018 08:20:56 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7C0456E1E5; Mon, 6 Aug 2018 08:20:26 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00117.outbound.protection.outlook.com [40.107.0.117]) by gabe.freedesktop.org (Postfix) with ESMTPS id E286A6E69C for ; Fri, 3 Aug 2018 07:23:35 +0000 (UTC) Received: from orc.pedanet (85.226.244.23) by HE1PR0201MB2460.eurprd02.prod.outlook.com (10.168.147.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1017.15; Fri, 3 Aug 2018 07:23:31 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [RESEND PATCH v5 3/3] drm/atmel-hlcdc: support bus-width (12/16/18/24) in endpoint nodes Date: Fri, 3 Aug 2018 09:23:08 +0200 Message-Id: <20180803072308.14962-4-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180803072308.14962-1-peda@axentia.se> References: <20180803072308.14962-1-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [85.226.244.23] X-ClientProxiedBy: PR2P264CA0045.FRAP264.PROD.OUTLOOK.COM (52.133.96.161) To HE1PR0201MB2460.eurprd02.prod.outlook.com (10.168.147.8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b57991bb-42da-479a-82c5-08d5f9120507 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(7021125)(8989117)(4534165)(7022125)(4603075)(4627221)(201702281549075)(8990107)(7048125)(7024125)(7027125)(7028125)(7023125)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:HE1PR0201MB2460; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0201MB2460; 3:AEao91U3L81WF98LtA56eg+X0DZctRYLcoZR6oCqHK1RDQx40d2ANbzDejNMtX4XrfVmwPmzlSbEsUlieYfK0Gb/IR86mDV4MBh0B5LBly4KnHpJPRNac9TDdn8Ba7comgT9ym1E/v4igt1Gvx70u8hqyYve07YQNAnMX3JuRhP6iev7QR5W1fkK1wMc4dU5aD15HfW/h37QF+E7PAvoY1jrxrGV/1sGUfL8xOES2aFR218M33wbbYYaSybo4t4x; 25:q3+DQhqyiJKRyaHJEpAgbqwJfOVLbTfzDkdsbsRcQSIUhMipPjAp5YjzjNIr+ABBzvsE+KzXQtbt7A+sjezfuE5te4lyC7MHCqZrEm4OSb08KXSgmb1jjvS+VZrsIP/9RWo1t4R3zD83KYKii9vzHk/93L498xEd66nB1Pd3xBFo4xAGqP+SRZeDq1r4H1DYYuDiqsZD9YA7ZFWF3qXa3gF5OPRgmKauzfdBi8sdcR5IH7Tc4TXHOMDeX4g9PZqAF+32AO4W0S1dUb46upI90Lh7dgvEgMspKk2I+sAz9NiO1v5IwsNNMh0deE8xQPO8mdOViQ11YMJu1nJcSMb0hA==; 31:CgCXJIK0AfuNoTFo5xGyW7P24+fY/izHVG5kIygcp3mr6KRebaokGLTTwALg6XDSj3hsa2GPN2PTOrG80BhPNRsoWpw52NutBBdaqUX5kb0VOdqUPjBwL7Oc390d4fYkYl5XsQL14/MtIr2gRTjJs984h7UYcuLHYbRv6UuPzlHVxR8W0dll1u6mOIPdyy/ZKkf4Jrh0PtoQi+13KW3Aq286Ax96TSDT7a1C7x8Zh2Q= X-MS-TrafficTypeDiagnostic: HE1PR0201MB2460: X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(3231311)(944501410)(52105095)(3002001)(10201501046)(93006095)(93001095)(149027)(150027)(6041310)(20161123558120)(20161123560045)(20161123564045)(20161123562045)(2016111802025)(6072148)(6043046)(201708071742011)(7699016); SRVR:HE1PR0201MB2460; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0201MB2460; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0201MB2460; 4:nzj6XqAVszAkRw8RR4OoL4F1cXVDpHrf+exX5DhN8xHh2XZORKzkClJ+1V7Oj1cTCDUpUKOF4VO81n8C8BxctrHrqZ7d2ngLXRe/HW/TS9ATGqy/Kp9Gp++ps4f7ukE4EtEXOgNuyAjuSlr0SIdptgC5k7o3Gl+GmkiBF8C7AMAOZFOfY9g3rESARuBXyTIzgvylAmtKEU5MKlQc9Lqw9pNOZf8/LjDFOdgMc8rOzHhtA4a3ygdpVN1sH7nPlaFLDPEXo1vp1u5BI9JtYAEMiA== X-Forefront-PRVS: 0753EA505A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(39830400003)(346002)(396003)(366004)(136003)(376002)(199004)(189003)(2616005)(476003)(16586007)(2361001)(478600001)(11346002)(76176011)(51416003)(4326008)(486006)(47776003)(305945005)(52116002)(25786009)(217873002)(5024004)(54906003)(66066001)(2351001)(446003)(956004)(105586002)(68736007)(36756003)(316002)(106356001)(74482002)(186003)(50226002)(6486002)(97736004)(8936002)(1076002)(386003)(6512007)(7736002)(8676002)(2906002)(3846002)(6116002)(16526019)(53936002)(6506007)(6666003)(50466002)(86362001)(575784001)(26005)(81166006)(81156014)(6916009)(5660300001)(7416002)(48376002)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0201MB2460; H:orc.pedanet; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: axentia.se does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0201MB2460; 23:gqnwGaT+CVqvssRRF70LJsAHLGQEACjXosY4eeY?= FOT7cspDxZTeW19fEFcilKVgNd8oGXqPDDUXDZFyAGgicBObnqmi+/BGZNDGq1joAun4nDsLwEPlyQA2PobqwRYGPFWE2HY3E2N4Eh80EtuCBLQUx29TZjskIdfCPefOBfWXpPY9soI+NVYd4bG1Yf2GdU7SMoXvbJ4e8V0ms3E+aPpvByjUyNhLmz9oBJXUyVrGzafVzbxQJMUSjkVKz9gxLonFy6oBwB8S35tM7Yq04W5pyLqYTate8cXQVKYdrsv7v6c3GrCkLPIaWp0gEITiHwReTtkeRiEh4x4Gx9+/FOp8gOpUuqZZUhJlajlebqddGSLa3Xb693UWT2aXBKpZ1xR3u3jhp00VDFFpb+zgCZyjhhTzzKBnLYZk/0ai7C7+q9Szh+HhKNuU1tEkFhNCwTW3397QrAK79yrXoIdDYx7ljSZErNFEKhahFwpWz7fVznJPjLLhm6pQC8FJjbs9wegCnmN7VhODg7a5/4UCRu/lTXEJTJQ4/efY2ihO0sHFIRzrdnoFzTqLCMhoRJh2ck6lS/EGHvZ4G+fn7+0YeoaTodoGRlVYduK7yrya7OFyLzVaOqx5ndxvZa0hOi4vGDV1nJUZwYlIXmAt+RA6gBL0AMHtd3ty+DgYv7BSHyYjE4GKtxQRbWAB+7Dtb0MwS+uG90TBE7sVgCzxmHhYZMNrIC7MeJD8YxNZrEeFonRAdFpvo9YMwLraxUbRneXxizz6MFmHZsmQ1fhvdrzbCDy2E2ELVQNyYKkBcHSji2ubSIha4syOnBVU7Pdr2ECjB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rmG7OYjkUft4oslv4C0SIGdxWPUjf5cLMfO6tdECVp+hNd9qWlo2yeQl5MF/wAmpzKxjl1iy+dKnlCRinhlEie2wOB+Z8uUNDewheBF3UV/GC/6HntbMCKaFKeZ7tReiXVXj3BQDal0Wtfc+6qsTi2+b5J10pKK5APyfzzdaa3v+cpgRRuTe4vP9b4X9o+0egel5Sk0W2En5cai2WBRxSA8u03v+TRekDLS5UWxUySD9FC4SCCzS2eEvZePy0B9AeXZ9zGMRnRxmKNbMHy4DIn6uUKBRav1pQbxdTa4IqvEAY6ynIR7YGitQS4zr+YuZBLdpUD10UL/9v5Qi1Zkr37eY6kNA6JpSv3ABC4WwXlEh1/qA==; 5:VuhcGj1GaUJKmpzc9etOzMotwvwxU0TAOPzlzDwwYmin2iVzGkSQSW32QceSNX/XEV83Q0BHIRXvZojiGm7z7iHFNv8ygXzhfTcEg4ldzTvfwFkpALA1Ftdp5Q7Wy5ZnWmyDQOXNXoXkm5Gv+IVh0nw7k7/UZWdICVNCsy2VfCU=; 7:7tYuOU7/2WodnIvGYECNRXUOPdANm9YkSgc+Q/tA29ifZyQiigHR2fPYxqrd6ZPMHivyUcoTnzPa+RR8hw7NAePDxfC+L3ZL+AtohQHN2+YM9M0VZiqlt8ksxBexXoXgpRgCdqLjvxZ2IZgPejW3vmfkQ6TrnJXN0TUT52a/VtXsAtK8JAPrWW7lhUxajMF0p6GvWUV91bS5q7lS9bvCumIHBC9fxofaHECxhY1Fo9y5r7ukvaFJVkVO7oECj1PO SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Aug 2018 07:23:31.7368 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b57991bb-42da-479a-82c5-08d5f9120507 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0201MB2460 X-Mailman-Approved-At: Mon, 06 Aug 2018 08:20:19 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Alexandre Belloni , David Airlie , Jyri Sarha , Nicolas Ferre , dri-devel@lists.freedesktop.org, Russell King - ARM Linux , Boris Brezillon , Rob Herring , Jacopo Mondi , Laurent Pinchart , Peter Rosin , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This beats the heuristic that the connector is involved in what format should be output for cases where this fails. E.g. if there is a bridge that changes format between the encoder and the connector, or if some of the RGB pins between the lcd controller and the encoder are not routed on the PCB. This is critical for the devices that have the "conflicting output formats" issue (SAM9N12, SAM9X5, SAMA5D3), since the most significant RGB bits move around depending on the selected output mode. For devices that do not have the "conflicting output formats" issue (SAMA5D2, SAMA5D4), this is completely irrelevant. Acked-by: Boris Brezillon Signed-off-by: Peter Rosin --- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c | 70 +++++++++++++++++------- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h | 1 + drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c | 67 ++++++++++++++++++++--- 3 files changed, 111 insertions(+), 27 deletions(-) diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c index d73281095fac..c38a479ada98 100644 --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c @@ -226,6 +226,55 @@ static void atmel_hlcdc_crtc_atomic_enable(struct drm_crtc *c, #define ATMEL_HLCDC_RGB888_OUTPUT BIT(3) #define ATMEL_HLCDC_OUTPUT_MODE_MASK GENMASK(3, 0) +static int atmel_hlcdc_connector_output_mode(struct drm_connector_state *state) +{ + struct drm_connector *connector = state->connector; + struct drm_display_info *info = &connector->display_info; + struct drm_encoder *encoder; + unsigned int supported_fmts = 0; + int j; + + encoder = state->best_encoder; + if (!encoder) + encoder = connector->encoder; + + switch (atmel_hlcdc_encoder_get_bus_fmt(encoder)) { + case 0: + break; + case MEDIA_BUS_FMT_RGB444_1X12: + return ATMEL_HLCDC_RGB444_OUTPUT; + case MEDIA_BUS_FMT_RGB565_1X16: + return ATMEL_HLCDC_RGB565_OUTPUT; + case MEDIA_BUS_FMT_RGB666_1X18: + return ATMEL_HLCDC_RGB666_OUTPUT; + case MEDIA_BUS_FMT_RGB888_1X24: + return ATMEL_HLCDC_RGB888_OUTPUT; + default: + return -EINVAL; + } + + for (j = 0; j < info->num_bus_formats; j++) { + switch (info->bus_formats[j]) { + case MEDIA_BUS_FMT_RGB444_1X12: + supported_fmts |= ATMEL_HLCDC_RGB444_OUTPUT; + break; + case MEDIA_BUS_FMT_RGB565_1X16: + supported_fmts |= ATMEL_HLCDC_RGB565_OUTPUT; + break; + case MEDIA_BUS_FMT_RGB666_1X18: + supported_fmts |= ATMEL_HLCDC_RGB666_OUTPUT; + break; + case MEDIA_BUS_FMT_RGB888_1X24: + supported_fmts |= ATMEL_HLCDC_RGB888_OUTPUT; + break; + default: + break; + } + } + + return supported_fmts; +} + static int atmel_hlcdc_crtc_select_output_mode(struct drm_crtc_state *state) { unsigned int output_fmts = ATMEL_HLCDC_OUTPUT_MODE_MASK; @@ -238,31 +287,12 @@ static int atmel_hlcdc_crtc_select_output_mode(struct drm_crtc_state *state) crtc = drm_crtc_to_atmel_hlcdc_crtc(state->crtc); for_each_new_connector_in_state(state->state, connector, cstate, i) { - struct drm_display_info *info = &connector->display_info; unsigned int supported_fmts = 0; - int j; if (!cstate->crtc) continue; - for (j = 0; j < info->num_bus_formats; j++) { - switch (info->bus_formats[j]) { - case MEDIA_BUS_FMT_RGB444_1X12: - supported_fmts |= ATMEL_HLCDC_RGB444_OUTPUT; - break; - case MEDIA_BUS_FMT_RGB565_1X16: - supported_fmts |= ATMEL_HLCDC_RGB565_OUTPUT; - break; - case MEDIA_BUS_FMT_RGB666_1X18: - supported_fmts |= ATMEL_HLCDC_RGB666_OUTPUT; - break; - case MEDIA_BUS_FMT_RGB888_1X24: - supported_fmts |= ATMEL_HLCDC_RGB888_OUTPUT; - break; - default: - break; - } - } + supported_fmts = atmel_hlcdc_connector_output_mode(cstate); if (crtc->dc->desc->conflicting_output_formats) output_fmts &= supported_fmts; diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h index 60c937f42114..4cc1e03f0aee 100644 --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h @@ -441,5 +441,6 @@ void atmel_hlcdc_crtc_irq(struct drm_crtc *c); int atmel_hlcdc_crtc_create(struct drm_device *dev); int atmel_hlcdc_create_outputs(struct drm_device *dev); +int atmel_hlcdc_encoder_get_bus_fmt(struct drm_encoder *encoder); #endif /* DRM_ATMEL_HLCDC_H */ diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c index 8db51fb131db..db4d6aaaef93 100644 --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c @@ -27,33 +27,86 @@ #include "atmel_hlcdc_dc.h" +struct atmel_hlcdc_rgb_output { + struct drm_encoder encoder; + int bus_fmt; +}; + static const struct drm_encoder_funcs atmel_hlcdc_panel_encoder_funcs = { .destroy = drm_encoder_cleanup, }; +static struct atmel_hlcdc_rgb_output * +atmel_hlcdc_encoder_to_rgb_output(struct drm_encoder *encoder) +{ + return container_of(encoder, struct atmel_hlcdc_rgb_output, encoder); +} + +int atmel_hlcdc_encoder_get_bus_fmt(struct drm_encoder *encoder) +{ + struct atmel_hlcdc_rgb_output *output; + + output = atmel_hlcdc_encoder_to_rgb_output(encoder); + + return output->bus_fmt; +} + +static int atmel_hlcdc_of_bus_fmt(struct device_node *ep) +{ + u32 bus_width = 0; + + of_property_read_u32(ep, "bus-width", &bus_width); + + switch (bus_width) { + case 0: + return 0; + case 12: + return MEDIA_BUS_FMT_RGB444_1X12; + case 16: + return MEDIA_BUS_FMT_RGB565_1X16; + case 18: + return MEDIA_BUS_FMT_RGB666_1X18; + case 24: + return MEDIA_BUS_FMT_RGB888_1X24; + default: + return -EINVAL; + } +} + static int atmel_hlcdc_attach_endpoint(struct drm_device *dev, int endpoint) { - struct drm_encoder *encoder; + struct atmel_hlcdc_rgb_output *output; + struct device_node *ep; struct drm_panel *panel; struct drm_bridge *bridge; int ret; + ep = of_graph_get_endpoint_by_regs(dev->dev->of_node, 0, endpoint); + if (!ep) + return -ENODEV; + ret = drm_of_find_panel_or_bridge(dev->dev->of_node, 0, endpoint, &panel, &bridge); if (ret) return ret; - encoder = devm_kzalloc(dev->dev, sizeof(*encoder), GFP_KERNEL); - if (!encoder) + output = devm_kzalloc(dev->dev, sizeof(*output), GFP_KERNEL); + if (!output) return -EINVAL; - ret = drm_encoder_init(dev, encoder, + output->bus_fmt = atmel_hlcdc_of_bus_fmt(ep); + if (output->bus_fmt < 0) { + dev_err(dev->dev, "invalid bus width\n"); + return -EINVAL; + } + + ret = drm_encoder_init(dev, &output->encoder, &atmel_hlcdc_panel_encoder_funcs, DRM_MODE_ENCODER_NONE, NULL); if (ret) return ret; - encoder->possible_crtcs = 0x1; + output->encoder.possible_crtcs = 0x1; if (panel) { bridge = drm_panel_bridge_add(panel, DRM_MODE_CONNECTOR_Unknown); @@ -62,7 +115,7 @@ static int atmel_hlcdc_attach_endpoint(struct drm_device *dev, int endpoint) } if (bridge) { - ret = drm_bridge_attach(encoder, bridge, NULL); + ret = drm_bridge_attach(&output->encoder, bridge, NULL); if (!ret) return 0; @@ -70,7 +123,7 @@ static int atmel_hlcdc_attach_endpoint(struct drm_device *dev, int endpoint) drm_panel_bridge_remove(bridge); } - drm_encoder_cleanup(encoder); + drm_encoder_cleanup(&output->encoder); return ret; }