From patchwork Fri Aug 3 10:11:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 10556593 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 D069F14E5 for ; Mon, 6 Aug 2018 08:20:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BEA4A29112 for ; Mon, 6 Aug 2018 08:20:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B2E6629263; Mon, 6 Aug 2018 08:20:29 +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 9DB4E29234 for ; Mon, 6 Aug 2018 08:20:28 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 41ADE89FDB; Mon, 6 Aug 2018 08:20:20 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0112.outbound.protection.outlook.com [104.47.0.112]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4B6506E0B6 for ; Fri, 3 Aug 2018 10:11:40 +0000 (UTC) Received: from orc.pedanet (85.226.244.23) by DB6PR0201MB2456.eurprd02.prod.outlook.com (2603:10a6:4:35::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.995.21; Fri, 3 Aug 2018 10:11:36 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v6 1/3] dt-bindings: display: bridge: lvds-transmitter: add ti, ds90c185 Date: Fri, 3 Aug 2018 12:11:22 +0200 Message-Id: <20180803101124.4622-2-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180803101124.4622-1-peda@axentia.se> References: <20180803101124.4622-1-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [85.226.244.23] X-ClientProxiedBy: AM6PR0202CA0003.eurprd02.prod.outlook.com (2603:10a6:209:15::16) To DB6PR0201MB2456.eurprd02.prod.outlook.com (2603:10a6:4:35::8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 528324ee-f455-45e7-169b-08d5f9297fea X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(7021125)(8989117)(5600074)(711020)(4534165)(7022125)(4603075)(4627221)(201702281549075)(8990107)(7048125)(7024125)(7027125)(7028125)(7023125)(2017052603328)(7153060)(7193020); SRVR:DB6PR0201MB2456; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0201MB2456; 3:87jNyoSH8vREOiOkhQjEmD3LuPlJ/zJ+/2asX+8mXsNgoI7sCwNPI5Ik6Q+ZLJJT7Z8RksQuoP/EUEVETLV865A7fNW1a+TznY//xPJE1FJZR1zHL+MeHtiO837cYL3hr1KXVvBOvuPDO60z0gnActpnh/Xpakvz4MjBTqsIFsdG2M6OlFMU0I0/d5jmVKWlOyRhwKL1J83SjUNb7Xh/nvQ1jCvBEIFZ+X3JCDzKcsahpdVfhelxV3Qt3+9jFFT7; 25:kFmHTFX4AJNZQwnvlFTylSUoMb3q/QY3HZ1ASj+mlvgsaUAp/AXNNDftKGwvsmxkzw5QW3Z7NGWft+pDTNDXQudW+JV0TTO9e3BOcoHbnPzmG8e0AWvdlYc1TlejxLeztUsASl0RqGg2iiaw0g2CDHeiuX/7GLHl5TrFlFNm++3tDeL6tlAdq3pMms4iVJzLhNtBMmCHqzNQD2wB9zXO+KVRfH/KugkiLQUZaYGtHdBHGdKc/LWulstHTxV3tGHOnt/elsUC3oRxPtoFCONUP2H2bItdFlKKFS/dnCnN4QYSHxgLie03iOWa6Lz7rOEcHiWJ87bfH8jQoQu/NbL40w==; 31:7+ZGcUSO859qlkH1tEu4Tfk9tAnT+iNh8Ae2cmb12Ysx6OhTFvSwwNu+YpkdMgQVR3uEZmrXrCabaSnNkG22z5QeaBfBLJTa2MzaKB/FMD2yqXe9ItSb0lX5gK4vsNGbMVSv0VPNTbWd5x2NiQPg0rCqAlJiIswN03jQgVMXmNm5wXJ0xHPhNoxrIhd+XktEgfeuce1ni2XX7WLdXK9KNkyT19NiyXevJL9Ci+hRR/0= X-MS-TrafficTypeDiagnostic: DB6PR0201MB2456: 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)(10201501046)(3231311)(944501410)(52105095)(3002001)(93006095)(93001095)(149027)(150027)(6041310)(20161123560045)(20161123558120)(20161123562045)(2016111802025)(20161123564045)(6043046)(6072148)(201708071742011)(7699016); SRVR:DB6PR0201MB2456; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0201MB2456; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0201MB2456; 4:vODqJiEP8Bu/xjTNyDTAVlypi3CHeO4ZGnDByBvTi4GDjn802qULFSRTe+nh5hl6ohqZZ0PxvaHG+DwM2EJOcMvwlo7KjjnOCYNiUayEtwJWhRKdE4CiZV7xDMepCGDDRtm91ZDraNiWYStDEltX/1F7/5a21pOcWH490w9gYWq/W2LdfulJeFf/ahBTbSJJd72Ra3idGQiYIvJslYq2IbPXjx+1JzgHQ5oc6jPd9vIQb8k3SlG5W61Rau4rV6eymuFC9wiH0CH4YX1ob3dCJw== X-Forefront-PRVS: 0753EA505A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(366004)(39830400003)(346002)(396003)(376002)(136003)(189003)(199004)(386003)(25786009)(3846002)(14444005)(476003)(956004)(2616005)(2906002)(16526019)(74482002)(36756003)(7416002)(1076002)(486006)(446003)(86362001)(26005)(105586002)(186003)(11346002)(97736004)(305945005)(106356001)(6116002)(6506007)(5660300001)(66066001)(8676002)(2361001)(6666003)(81156014)(6512007)(68736007)(47776003)(7736002)(81166006)(54906003)(478600001)(2351001)(8936002)(53936002)(48376002)(16586007)(76176011)(52116002)(51416003)(6916009)(50466002)(6486002)(50226002)(4326008)(316002)(142933001)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:DB6PR0201MB2456; H:orc.pedanet; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: axentia.se does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB6PR0201MB2456; 23:rqXmq5QH/wMW7JzKwGo8hPMfCu0T7yBxscg7F9l?= mJqqJHVtF5xiQrdh6kztKTZoQ8vnAg5mwdSf/OW0HthKt3MrcAdkYOM22Zzknw6yCwSXoYyLOoHPAOrsfdqrYzkk9lfjl4FZs6F3F30tauO5zjMPMDzZFf1NwH+Mrtf2pPelpBMAmxNvmrZSdUKI5IRqatcpX7UX4JqZ/qjH/DeZ27Xipvf+ExuNtnXBwlVD8W5WCpPlMPGYr1l2ZAAE9IrICwEs2x9yISLIcYEACbbfBjZWVikr6PN0IY3MmmlRHcM4dc9lQ/Odzbo0tSxVLaK/Kcp+ZVe8GzOcxQRYpDbSwD2XqiK3zdakOIrcww96K+8TJiQwN4e+x7dCuVRyOa/hOdXT6PlHFWCvHI2KWfLifkqIZ/tIgHozPhxZHiAsHhSqU6OaXJ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509vIEb87HJhIZ5a96mejhKe6XDOMeMq1OnVzatgWzT/1JRujw/cjZQEjFOWFR93ThHrTX3QFKR13SmNCFst3Ign+zA9db4BFdne SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Aug 2018 10:11:36.9222 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 528324ee-f455-45e7-169b-08d5f9297fea X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0201MB2456 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 , Sakari Ailus , 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 10:11:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 10556599 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 BBF5E13B4 for ; Mon, 6 Aug 2018 08:21:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A9F3F29040 for ; Mon, 6 Aug 2018 08:21:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9DCB02915E; Mon, 6 Aug 2018 08:21: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=-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 3269829040 for ; Mon, 6 Aug 2018 08:21:01 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 43FE86E1ED; Mon, 6 Aug 2018 08:20:27 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0127.outbound.protection.outlook.com [104.47.0.127]) by gabe.freedesktop.org (Postfix) with ESMTPS id D8B656E16E for ; Fri, 3 Aug 2018 10:11:46 +0000 (UTC) Received: from orc.pedanet (85.226.244.23) by DB6PR0201MB2456.eurprd02.prod.outlook.com (2603:10a6:4:35::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.995.21; Fri, 3 Aug 2018 10:11:42 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v6 2/3] dt-bindings: display: atmel: optional video-interface of endpoints Date: Fri, 3 Aug 2018 12:11:23 +0200 Message-Id: <20180803101124.4622-3-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180803101124.4622-1-peda@axentia.se> References: <20180803101124.4622-1-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [85.226.244.23] X-ClientProxiedBy: AM6PR0202CA0003.eurprd02.prod.outlook.com (2603:10a6:209:15::16) To DB6PR0201MB2456.eurprd02.prod.outlook.com (2603:10a6:4:35::8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 976120e4-2108-4209-91ba-08d5f929830d X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(7021125)(8989117)(5600074)(711020)(4534165)(7022125)(4603075)(4627221)(201702281549075)(8990107)(7048125)(7024125)(7027125)(7028125)(7023125)(2017052603328)(7153060)(7193020); SRVR:DB6PR0201MB2456; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0201MB2456; 3:H8SaOlmqxId5mYWlBYKLP55BSl5rkLZJGOfi95oakmhQSY3lwwbhMJFntX+gfrYhwssVwjLiuQEBkFQMCbojtxm516ouW9Pq7nRg8UK6GQWMEKu3Adk1c41bj9wDeoAsU/lB6SDZzZInv9P8CK6Gck2PDYK9eseU41awqd+OJuTKvl1jFeqaxHH9LWioenFvHe5wf/0tKEUPincCuhqfcZdo4pQp0p/ov5JZ49PupcD2fWCHnBHlqYNOoO+wJbu4; 25:+rpqo3tRboE/R7Z5ozvKxBB+228CyqJA67mQLP39Xz7u+824gidh1pyUN76dUuz3WmgPRj5LqMqKgCzFfdIQ5Nu88d1ZWCtFu5ebGRa1PanqgxP41ekS3lR/RGzRB1QWv/QatG1tmueTtZrE6gTwG0m+v6LFpsm3KXZr4oEIGdjBuIbvr/HqDQReR3qE2sZXwKfzdHt49T6h48RoaLPvJ30DTlg8YjBzQyejq1JDZvyY0irAbDpwTRpV0eSUX28w8RCUUF1ClhDdcsKB4LuTbHuvkpNoBAA1HCANQeDR2c2GZFQ28JHfTSTbKVqgk3g09btTOGONw47XZmEVfq/neA==; 31:AM5nlC+iJM7lCO1MeDsoADd0bLyZ/xafS514JKyajGL23y0mNSzGL+/FOaDsTSr1TJVR+IqUV08a8N5jNrDsvBXUNGMBAij/Bf1dN8N9u44qxMD73JvUg9OIp8znhSRNXZRphnNynntOWpgv9MutxcNwby3StlyA43ZW+RoNct5xfgRlYESxayPc3nKWPXJO9a4+DvzEMchkq6HaBNzO5npPxakKdBDEvIEJ5+m7HaA= X-MS-TrafficTypeDiagnostic: DB6PR0201MB2456: 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)(10201501046)(3231311)(944501410)(52105095)(3002001)(93006095)(93001095)(149027)(150027)(6041310)(20161123560045)(20161123558120)(20161123562045)(2016111802025)(20161123564045)(6043046)(6072148)(201708071742011)(7699016); SRVR:DB6PR0201MB2456; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0201MB2456; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0201MB2456; 4:21RefTENq+edUjjlEkK9r5xLF6KaskllNIKBQTFuu2AbNC14raHvnXs6b+ZwRNmfnkUH/VKWCNupb8YY4xPvk9eDm6pUdSwbO3VPI11O4mSjKHC/nFJF98mCTUxbnbxu4uar9eNwtHWL4it5Ut2fYdCW6yCZ8a9hKxsogsNEUpaa9L7vI+QaoI4l0jzEbUroKX0AfE913jFpDOhVC3991GRH4m8rvCHavVhdyYOtzpsROfKUIfTLWs5uNPuBSDp8AUL4dTmWjlZNlxhgOiRJDg== X-Forefront-PRVS: 0753EA505A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(366004)(346002)(39840400004)(396003)(376002)(136003)(189003)(199004)(386003)(25786009)(3846002)(476003)(956004)(2616005)(2906002)(16526019)(74482002)(36756003)(7416002)(1076002)(486006)(446003)(86362001)(26005)(105586002)(186003)(11346002)(97736004)(305945005)(106356001)(6116002)(6506007)(5660300001)(66066001)(8676002)(2361001)(6666003)(81156014)(6512007)(68736007)(47776003)(7736002)(81166006)(54906003)(478600001)(2351001)(8936002)(53936002)(48376002)(16586007)(76176011)(52116002)(51416003)(6916009)(50466002)(6486002)(50226002)(4326008)(316002)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:DB6PR0201MB2456; H:orc.pedanet; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: axentia.se does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB6PR0201MB2456; 23:BYet07jSF/ylCHM58E2/bs2M5c6EmKFv+zy1VIi?= Amw7PGn1/eo4rfZIhukuLEDr8rK9b4B9fZb9rLnlxa1/NfrCE+wcPdFtxCp0sukM4mZwGqIf4Gs3RskB0rO1E3//n0Stkt1DCdCQdXLM6GkrlzODE2M8j+fZaxsDEgzdnBAMFkDh5G4BbcyiWNW4LdxLHZ74JVtUpPVFyxCoUdMzT3BThvXkn20Y00Nl2HkqnT2RuC7ivZmWmmIzvHCQ9PHAT5Xe/SvDaMRMF/CHlOtaYTb/lYiddN8m6EjRS5Q8cYpRspXP5IcqDu9LTNoR1G5NBogFBNVx4GiZn5y+V5ddNS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v526Sxf/pYeY8GoCxh86VbhpaUjwwbqAXdcJHcIjvFQZCAKIdvApRmstkkrjEz4CBuRMp5ce7qV+BxHfeUfORcoLtKIdGzyfQ4AmgbVmp+QIE75KAvpjbzjDbB1s0ovP+gnzcPLsjObxYQN+opp5jKwdXh2Py+STN7JiVA0IZvgtv SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Aug 2018 10:11:42.2035 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 976120e4-2108-4209-91ba-08d5f929830d X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0201MB2456 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 , Sakari Ailus , 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 Reviewed-by: Jacopo Mondi Signed-off-by: Peter Rosin --- .../devicetree/bindings/display/atmel/hlcdc-dc.txt | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/Documentation/devicetree/bindings/display/atmel/hlcdc-dc.txt b/Documentation/devicetree/bindings/display/atmel/hlcdc-dc.txt index 82f2acb3d374..10e8707d1443 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,25 @@ 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 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + hlcdc_panel_output: endpoint@0 { + reg = <0>; + bus-type = <0>; + bus-width = <16>; + }; + }; + }; + }; From patchwork Fri Aug 3 10:11:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 10556623 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 7DBBF13B4 for ; Mon, 6 Aug 2018 08:22:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6A3652916B for ; Mon, 6 Aug 2018 08:22:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5DAE429247; Mon, 6 Aug 2018 08:22:23 +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 A63192916B for ; Mon, 6 Aug 2018 08:22:22 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 03B086E24C; Mon, 6 Aug 2018 08:20:33 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0104.outbound.protection.outlook.com [104.47.2.104]) by gabe.freedesktop.org (Postfix) with ESMTPS id F01876E0B6 for ; Fri, 3 Aug 2018 10:11:51 +0000 (UTC) Received: from orc.pedanet (85.226.244.23) by DB6PR0201MB2456.eurprd02.prod.outlook.com (2603:10a6:4:35::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.995.21; Fri, 3 Aug 2018 10:11:47 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v6 3/3] drm/atmel-hlcdc: support bus-width (12/16/18/24) in endpoint nodes Date: Fri, 3 Aug 2018 12:11:24 +0200 Message-Id: <20180803101124.4622-4-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180803101124.4622-1-peda@axentia.se> References: <20180803101124.4622-1-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [85.226.244.23] X-ClientProxiedBy: AM6PR0202CA0003.eurprd02.prod.outlook.com (2603:10a6:209:15::16) To DB6PR0201MB2456.eurprd02.prod.outlook.com (2603:10a6:4:35::8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5609ba86-a425-47e7-6ef3-08d5f9298633 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(7021125)(8989117)(5600074)(711020)(4534165)(7022125)(4603075)(4627221)(201702281549075)(8990107)(7048125)(7024125)(7027125)(7028125)(7023125)(2017052603328)(7153060)(7193020); SRVR:DB6PR0201MB2456; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0201MB2456; 3:vn5ItCtcoYpfTBKlFY78eqsXDAmCnzPp/UdYZGzw/q05ZnRj+QocLe9+nVE6PBj8AOXZ+JfvBQZrLrnkjhhRvqTcEe+dQduIXRjn2Qe6JALyydRMpQCMSrnI6cojuIhORdQXSiNK5bFHx06Xab2OilzXToZgbqmHoYbWZsxVpmp8/pFce5VXO6E+PIcTHIaUl5sG+0cFEDFYhQ/tsePyrUB4iM7XD7z7J+9u781rJAh/hgnA/sJ6DkaBM8PpDhcq; 25:ipBJkJ6Ss1P9xb9Al04KymY/CzmZJaDxGZ5PI9KTteBYjZjYmjgGKnkcgscToYtxXCFI1V7UNjhE3OvqMakDObNhrq1gVpj37BdhabFcWcnfC4KoexsxJBhktW5z2VAFKtvtFDrFDld2yf013KjEhRofw7ibCa3Cg6sEPH6w3WjFEKvXka2syddb9eqk6jlZAc5daM6urUkc6721HmgGg7RlEEs8kPBBM7mFKqEC+6olhWBESYWocpNOXfxyco9JchFd9PpKudKJ2VmOaD5+YeIryJrspNOgqdCOetGqQG7ooJv5oCaiLxk0dFxrht4BabSpQoGz8bzeUKOZ7gUg5w==; 31:hW4/6okyLxgmvMWBfma5sfcVKMj6zsSrJd8wNs1BqdtJV1CPTlDjPLZ+melDm1D8YK4h7yQyO8bv2/jsHMBg1NXWoxzC4FhfDNjYIHUpm6BdltkM9/NetZknK7AofAgCzPGVhoo6Rmq2fw6GIFhnXzRkh96C8goD5xq2VrRLwejJG51oa7wOju1el3oBHZfBputQKUNttY7pI0EDKOoR5zhwC5LxcrmxJraYPe4v4ks= X-MS-TrafficTypeDiagnostic: DB6PR0201MB2456: 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)(10201501046)(3231311)(944501410)(52105095)(3002001)(93006095)(93001095)(149027)(150027)(6041310)(20161123560045)(20161123558120)(20161123562045)(2016111802025)(20161123564045)(6043046)(6072148)(201708071742011)(7699016); SRVR:DB6PR0201MB2456; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0201MB2456; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0201MB2456; 4:VD0naKv+uroVPk2wyCC40T+Y81Qo8agWFw1VehzhUDruHPQA9LvbxelNtK6FCTFP2paEETdbUwaEU6xAlz5e8UnwS6KcZ+hJj9j3kpPbCzllK2i0nSsAUqMF9+U0INUhbAG1wDq49BEaIoI1Qhydqon4w0L754SflT579O1PymqeDzK2fFlv1gR2ox8a++hq3EUdcb2fB1l2famnt+W+2J5tqU/ZqoJy73syZop/b7mDNMiTKkAOkCuctMG7S+PJpkocqwlIRZQVMjWJd3LE1A== X-Forefront-PRVS: 0753EA505A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(366004)(346002)(39840400004)(396003)(376002)(136003)(189003)(199004)(386003)(25786009)(3846002)(5024004)(476003)(956004)(2616005)(2906002)(16526019)(74482002)(36756003)(7416002)(1076002)(486006)(446003)(86362001)(575784001)(26005)(105586002)(186003)(11346002)(97736004)(305945005)(106356001)(6116002)(6506007)(5660300001)(66066001)(8676002)(2361001)(6666003)(81156014)(6512007)(68736007)(47776003)(7736002)(81166006)(54906003)(478600001)(2351001)(8936002)(53936002)(48376002)(16586007)(76176011)(52116002)(51416003)(6916009)(50466002)(6486002)(50226002)(4326008)(316002)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:DB6PR0201MB2456; H:orc.pedanet; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: axentia.se does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB6PR0201MB2456; 23:YDOmSsDOe6ehwaaa/rlvFqNYKyu1+yCbTy3Xnsx?= IVXpJhmCqxfFPufVKvBpyXc65AzDGoxPueJiS2TzXOWYSvC0Wg/SC0hShcDU03VWhhaaM2NQ1ki1ej9WebIu4Dny0mNJUEIQ2ecIKTvUNnoe3YYQ/KyrTbS8TK70l+aHaHNeZk6TlyujdQ/e2rjPDKXkrovZ/uNoHmaqV/IIvnBsVZsl+8iprHdXEqALyx6MwR6LSBhpLoj1xKJ28MwpqVCEfRs0f4dNUrps97kjKYZzFg8KIqXmS74na+pyM3rIzDJBe5WBdoB/RL6ya3/b20/Y3V/VLV4yORjT1I7JXmdMKHwuDSvOezfBS/B0zeMsIROcc3ZesKDVtlBUCMVxVcU5N+2PCPyFth7E1TDtwoT/kTfjsy2zpC/ORfxaPt04czApCgvAMjG+EUVVl6QhOvHljHC+wjKQebeblRdajaSqcO2FG5A2kY/vm098b+FdrRNvpzVmMQni8g1v3DoMzEZGIIRZwhhbRPAfd3OF8MmvJKnag7znr5n+UmFBKd/wN0hfJ2Ay7qLlxI96P6PuNyF1RIGOEI/rhkttDzBeMTE8YagR+HcbmT4rAQr5qzqQFutfzqM18W41raGZK8Y2QZ8SOi9upkRqiKGyR1cXhCrOLhe+2Lt8e7yPN7S922sMBk4Z2icK2QwQEKEpwTHtrVuDf6gaBizM0b7Y/emS74N/d8bGbv53O1Nk4ow0EoCOoei4GZhclLjMGyMQcQKeNe6Ec68jARIWmV6Wi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Z9hO+koCrvc0xnBd2foJC5s6dlikiuNkLghXbiVNuZHBMHqTvo8ET/v+I6ayYnsPjb5Be0GMjYJ4ugGrfC2KdMBJeOFFR7DNbKRQwlLfwxJ8CEkAcPEPIGuKYTolh8VXMCpzohnkqo1Zm/3xqG1BvXbJti5OKHfzPzgZI0T+VO8SnHA5kRjq8yp0uZMaxUGSItYutafI6Vfb6sHzvMwKazGZ/tUc0Tq8IREdTV8Iq66wuw4eV3wvvyxNn9Fza1reHxY4vzaJ0cdVlBUdjBvHxn7uWANyT23AAK97ilr+rqWs2cJyQuOt1tyoikc7a886ObZEUqXCy/nTsFy5RZauIUitd0S5yZ0CrjU78YkBxT0yRtS8kx2UtT+5Y53g4oHrEdUW+cqyeyE++y5Jg==; 5:CTB05l3UHW3mzHgdVdGI4lTMOgLSPmOZJcNz6eeiZ4akWHZU/oxn2Ns30S8cNk+cpiRUtUjmeZ1iTtJPI6IDS8roVbpHXmCU9d2y7tESpFeK5+EEgGO5ldrzCGqyT1TfDQ7wT8CJnCwevYBphnhhRN4bbOcRJhs1nezazhfUGtk=; 7:PEbdnyGl6ql7EoxUpexGLEYptv2c3eYboMLWtr9hGtf199DSpzoHPvFOxowJmtLmREgKRHC0jBfxQp7kgrU7y1jXgK7ip4KzDq/WnzmqYqL3dR/3/wq20RpFhx+DzXBVrYPwC9UAOknO5azRYS3B6nOBfDu9L6NP8vU3LthuLIsdG3CxfK1WG0/zA9HT/2RqU8SWT/5qGruycnUvOVdBu+Kr1tQN83ZCkXbE9sUZE0KQN9RtQ42Spv1OIzQrzy54 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Aug 2018 10:11:47.4848 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5609ba86-a425-47e7-6ef3-08d5f9298633 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0201MB2456 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 , Sakari Ailus , 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 Reviewed-by: Jacopo Mondi 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 | 70 +++++++++++++++++++++--- 3 files changed, 114 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..f587ae596791 100644 --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c @@ -27,33 +27,89 @@ #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; + int ret; + + ret = of_property_read_u32(ep, "bus-width", &bus_width); + if (ret == -EINVAL) + return 0; + if (ret) + return ret; + + switch (bus_width) { + 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 +118,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 +126,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; }