From patchwork Sat Aug 25 08:56:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 10576041 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 CC5D5139B for ; Sat, 25 Aug 2018 08:57:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BBCDC2BDF9 for ; Sat, 25 Aug 2018 08:57:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ADCDB2BE1B; Sat, 25 Aug 2018 08:57: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=-2.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C3F6C2BDF9 for ; Sat, 25 Aug 2018 08:57:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=JQoWbstptPpkmQuGQc4rd8maQrSRPwtMhXbcHcvWJxE=; b=IUI9FXI1uTXnpV 3z173igCjubxZa1+lpo6wdZhTbNL8x9GKCWBgwyw7bL+n1OlrTWRLJDBTjP7deuxz0GvvL5+/hfpf T9H8NRU7RsmQyTC/U21qtz7TBw85SnptIDpsA2Lx+cFNXVpjLdeWfLZzIb5+CaEkcneLDgVcmm1a9 8DDDOr436qDUzWSIgP92ulDRea65LJ0KNPwE+nGpWuIzGENJAXXCd/tMnEaj7CBl/i84y8wCFwLkp PGlwA3VN0PmsLl5z865MUlTq+9R8XJnFjN89r/o6ZjSooXIOHtUsPUfR70Bi3ZEjAvo3pYOOH2nSH 0wIcbT3zl0uFhgFn2EbA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1ftUNJ-0006MF-7p; Sat, 25 Aug 2018 08:56:53 +0000 Received: from mail-eopbgr80107.outbound.protection.outlook.com ([40.107.8.107] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ftUNF-0006K2-6d for linux-arm-kernel@lists.infradead.org; Sat, 25 Aug 2018 08:56:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axentia.se; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=u2XpuqSLsK9LhIb5uTzDwCeIMadHloaP2FWW7uqpLGM=; b=ZAnEKcgzvj6m6F2nQV782nKrWDN2klv/PP6PtONeYTw8cBsL4HIozzQF0EEcWNRDK0PxG234rPh60K/nsPJd4l0QClQAIlkCsAiHljhY95aU1PpwbGEmnwBg2o8FtLDfMxVO+2GUigWu94MnxsYoJ36FaqtMlsPJ2dtOBuVw6Zc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Received: from orc.pedanet (85.226.244.23) by VI1PR0201MB2463.eurprd02.prod.outlook.com (2603:10a6:800:54::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.13; Sat, 25 Aug 2018 08:56:29 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v9 0/4] drm/atmel-hlcdc: bus-width override support Date: Sat, 25 Aug 2018 10:56:16 +0200 Message-Id: <20180825085620.10566-1-peda@axentia.se> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 X-Originating-IP: [85.226.244.23] X-ClientProxiedBy: DB6PR01CA0040.eurprd01.prod.exchangelabs.com (2603:10a6:6:46::17) To VI1PR0201MB2463.eurprd02.prod.outlook.com (2603:10a6:800:54::23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 92b04544-cf44-42dc-74c9-08d60a68a6c0 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(7021125)(8989137)(4534165)(7022125)(4603075)(4627221)(201702281549075)(8990107)(7048125)(7024125)(7027125)(7028125)(7023125)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:VI1PR0201MB2463; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0201MB2463; 3:CMIOW+lj55suK3y3f+oqjyW/acLorlod05HcnDegu5R8QbUwhQv70MQONZwkMNRwFDSVwlbl/k+DvBUJC0TyfHHacYmwiklFGtz9CPY/HbP+G68lR6vqpH90ttQe+ATlMQ9qqRMv9BYNZAQGHku/msDeMG89pAvnYbdYYogRUUzNu8OvuyL5gpbkS8xK7elncPMUlVl0y24e0AGqqUYx8alir4ESHo7iTAwoyceZxIDD/dCv079KTQtC5hq5FIAP; 25:v6CBkN39Jc2ZvzxrCmlggfCRbtFfszHxIUUEcntOFeOXy+A8gRL4aDAQFwiH/dKvzX2MiOkNXRQBVB4lP4C94w3n5x4HfK7m0dQpN/RXYqIHcLZN/Mtcq+C3ss6WtaDOz8PFFTi7dQwwVEHIDz4NT9G5EVy/v0XlCHhJV3hHlyYngGO6X6fMkfb10TpRLHxkyuau4Napovxk5ubH1iQekNk3Ti1HSvwdWG7vDQIFxOTUpb0z3GHkP/32FEgNGvvNulahwAYVPDmu9Q35JiHSsLosWs5AS6SvXPPYjFlPvIpMRHbC7kfOpchjaXVUJUWWWpMtboFdO9Ww1lyv6fankQ==; 31:KJ1m4AcUxCUdYV9NFlA8oSJEh5rXbt5v73oDB3b1bK8+vLQj49ey9cA3+UxPtYPpEJBxaQKgI4d/8urqf+7f+4yBIjHBPGlC3PtrmzYPL0TpWHLmAOYs8IstyrDDpLVcyv1Q/VdPwc2/XAxUWTj2EIM9/iBba761TilvlVfa9qiz4OQUUNzQqdrU1K23CnZT0rA1YWXJj9aKpevvaVO07FreVpgIa8kX782pnDoL4Yg= X-MS-TrafficTypeDiagnostic: VI1PR0201MB2463: 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)(5005006)(8121501046)(3231311)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(149027)(150027)(6041310)(2016111802025)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6043046)(201708071742011)(7699016); SRVR:VI1PR0201MB2463; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0201MB2463; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0201MB2463; 4:QnAIYC09hXbAP63jxVk5go6ypURlNdt0EIfkWFxxlw/MiTi/HKG+mkrJTGuIuzDchM3hNip1w0ppjfL3LIhVYuAwpMEjaWPicMUytn7bHPo9M9eMasK35BWeBevgN/ta8vq2eknIbuFDhUx4cP+wWnWE8kFmyrKKBuLhWuGNPwrfWOX9igj7PVOt7LeWBGvyNKvWeffvSRhqqC26X8/sXNY8st0UtoiyX3VfXqEJhOa2v6dkzEBdR/RAV/S4XqDZGK9NeSN6/xzhBXo5BsREUg== X-Forefront-PRVS: 0775716B9D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(136003)(346002)(396003)(376002)(366004)(39830400003)(199004)(189003)(52116002)(54906003)(105586002)(50226002)(478600001)(476003)(2616005)(2351001)(956004)(106356001)(316002)(16586007)(74482002)(966005)(486006)(6666003)(6916009)(81166006)(81156014)(8936002)(8676002)(7736002)(7416002)(5660300001)(2361001)(305945005)(97736004)(386003)(186003)(68736007)(26005)(6506007)(16526019)(47776003)(50466002)(51416003)(6306002)(6512007)(66066001)(48376002)(2906002)(53936002)(3846002)(6116002)(25786009)(36756003)(86362001)(4326008)(6486002)(14444005)(1076002)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0201MB2463; 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; VI1PR0201MB2463; 23:xwfpCqt+/rs6sDAoV68WIg5ddgCsS1p5MtK1D14?= 4WnVOTbkT/sfdg/FKEEsWsPWqMg58FNw10svRClia+wUgpCtyqSf7BAMabcsTSaYqxBrzDkrcVmadK3gf2KmxyYkRtJBiaicsa05MFQbvuROpJoqEL8PalqWHMS5a/XoLLs0t6R1EdgHleEH0h/Gl1mGhM7LKxvF2GF7nl3Dwd0WPMr+RofJHZU5cjovwfn55MiMH5smqcbOH2v8ouWFjK8x8wssWhc1UBBn3FJEUDDaS1roC/vGNfO5TjD33LiZFemcY3tXqBOpVcVExCyGz8upIFjZIttwqsim685qaVYoVr4Oc/Bqe636YobITc+t+YslQmpAYXHLkplm9ZzAwKDhaocauFwPBApGePcUXcaV5n/SGPqNGMXf17Qj2T0v5K+T9kLuhMmOfMSfRjjI1w5tvF+QWHuQeNTDZSl6Yz8da89dC2qE/f67W5LIRgC8uZMk9s7odv/6yNZszdIgqDDWI5yc95g+axae4PUXY3aT5PDNXrxZVO/jjwxxtAjZWs9jl4jMv+soI0SCGOi6yd3Js+z1vNpx8Z9V65oC00kpl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hGsVozzKmCb/zaDbjyvgxhEI= X-Microsoft-Exchange-Diagnostics: 1; VI1PR0201MB2463; 6:y2lq8g+AEjlq3EILhPKIJTG88iVIzkpBefUxnXXXL9CqarfzBepwh49OT8VD8JsWkl0a9uPgW1NyS+7/N1WiwQ9Do9o4H73ygZxR4mQIA9bvBjhWAtvosInihtQb6+f42l6wXz9Fr1AF3DYhFxF8Uk682Wtpsbqo7nltxNZ+aAr6T9KBFpeHPVaLydMpN6DtJRehbrJuZ0i7ylhY0AawL0MthChCz2k3SzqRsZx1GW5C51B9GO6PBRV6gvUpc5n/sYT6RngW4dVLScB7vqkkWO1nlFvKeRk2DAPY/81QZB13NWWLWFb6kwXdWL2j1EISv0XuowMDuawhmiG4v/kVP245e0W9Z1vXwp1bfhWgYoSu79tYQG1Fr1Yzy07kX1ZZDi+lwxl4RR4tyomkywnMoEzaKILQKXfqwvQErtABMOstk+XoF4WvYC6AU3je50RtwYF4AVxEv52fPKwGwjpGkw==; 5:lZtHutFIWHglyDNvQGYaQIrbuVFl0dBJ3uwyyYpsgMFXxKuEvHJUmN+kSRuvTB84ULidg1l+Mnv6cdOYb+bfmoWq28nVVP61P+HNeiLXtLD8C1vawOkyGJUXxVGujqnDp4nyDSU6DLsdaKRgYl+HClWsdp4y7f72aW2bfRVSybE=; 7:89kadFiumdPPV9Oq44EXPjMnOry8rBY+GR7HjG6r0+oHW4Mn6PWbSELH3SIqZ+nLKoNVrrvV5fded+95owlLkraCxOKffoN5DYC9fr160vhNIbv3gtHnpUtULdJN2e2AUf2wqezQQbz8Aq1sKj61LXUarLQZ9FVgzLMvZtl8Ley2YB73rgEVSA1igodBohfPYd9qlzto+HQ1sAa8Lep48bRZxf7oOvFUTZRRvXsPHfyyrf5TP4K3cYgbavDzb7nY SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2018 08:56:29.4229 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 92b04544-cf44-42dc-74c9-08d60a68a6c0 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0201MB2463 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180825_015649_405249_B890736E X-CRM114-Status: GOOD ( 10.36 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Alexandre Belloni , Andrzej Hajda , David Airlie , dri-devel@lists.freedesktop.org, Russell King - ARM Linux , Boris Brezillon , Rob Herring , Jacopo Mondi , Jyri Sarha , Daniel Vetter , Sakari Ailus , Peter Rosin , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Hi! The background for these patches is that our PCB interface between the SAMA5D3 and the ds90c185 lvds encoder is only using 16 bits, and this has to be described somewhere, or the atmel-hlcdc driver have no chance of selecting the correct output mode. Since we have similar problems with a tda19988 HDMI encoder I added patches to override the atmel-hlcdc output format via DT properties compatible with the media video-interface binding and things start to play together. Cheers, Peter Changes since v8 https://lkml.org/lkml/2018/8/10/309 - go back to the solution in v7 (but the ep device_node leak fixed) for patch 4/4 - redo (part of) 3/4 w/o using the disliked of_graph_parse_endpoint Changes since v7 https://lkml.org/lkml/2018/8/4/288 - The ep device_node was leaked in v7 patch 3/3, so add patch 3/4 which simplifies fixing this in patch 4/4 (and adds flexibility) and adjust patch 4/4 to the changes done in the new 3/4. - return -ENOMEM on allocation failure in patch 4/4 Changes since v6 https://lkml.org/lkml/2018/8/3/333 - zap bus-type from the binding in patch 2/3 Changes since (the shortened) v5 https://lkml.org/lkml/2018/8/3/182 - add reg properties (and #*-cells) to the example in patch 2/3 - prohibit bus-width 0 in the device-tree in patch 3/3 - added reviewed-by from Jacopo to patch 2/3 and 3/3 Peter Rosin (4): dt-bindings: display: bridge: lvds-transmitter: add ti,ds90c185 dt-bindings: display: atmel: optional video-interface of endpoints drm/atmel-hlcdc: always iterate over the first 4 output endpoints drm/atmel-hlcdc: support bus-width (12/16/18/24) in endpoint nodes .../devicetree/bindings/display/atmel/hlcdc-dc.txt | 23 ++++++ .../bindings/display/bridge/lvds-transmitter.txt | 8 +- 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 | 92 +++++++++++++++++++--- 5 files changed, 163 insertions(+), 31 deletions(-)