Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3755086imm; Sat, 25 Aug 2018 01:57:57 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbhHSZ7w8KJBzsmTliLdTXBN6bbGssQ1ZI0L9z8oXHhAald2j0j2kBo7vAvYGmWo3hwdqSx X-Received: by 2002:a62:68c3:: with SMTP id d186-v6mr5408200pfc.70.1535187477102; Sat, 25 Aug 2018 01:57:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535187477; cv=none; d=google.com; s=arc-20160816; b=hBSV3ovZ6WYNmncszpMWjcPifbrihs4mhcjxoymkuGqtkFvctHCxPSM7cC6kXfme41 1cJPzmhQjbch+vkXIE6twDaP5C74vjQSkvnQjxumSzeawiEiUb2wdRvKN4q/LYDqZJFU RCYeBCvnrmii/xIoSb+jE30Frf2kZoI86rwWFFUv1ThrnHeANEncO7lbxau/jo+fZlFF 5fOPhKc3To9Tjp+nJS6sH2Jge1PErq+RFoHIi0ZFuNijAVncPbw7LWvJ9xCjuU51fAJ5 g7jK6zMN64hQAxepv3cNwLhhEzCW5jLmXrElfHa2rR29ZHLkKBi8/JnHO5MIorBa25kP lYJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:message-id:date:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=u2XpuqSLsK9LhIb5uTzDwCeIMadHloaP2FWW7uqpLGM=; b=cnWB6wvcGpAmlQkiM6S6P0ONOsc5UhD7j9MWsX/W4vHw10pUMQWhQ9h3DFt/ADnDjX T6zNYUmb/28QXPIu4ddQm57W7kFrm/84DWGbA9lFLnDeNmJmlBIm5la3Kh8ObDbQlwKd N9dQC3XG/BOfphOPPgiCI9hrxJ1m5+sLkXm5qw7zAAujpaKZkg7Fbr2YY0GOhrbPc9s7 1NaECpoIhDwdEboGnJeZd5enpDCT7MApWncq+gTB2mUCtLt6JicRtgq97RtxYdOtSVEd +/IlVOVFQkpOWZ4AYH8NvN2SC75N8OXkrapd/M49T29eFTfDiyor4t6cafoDyKw+hZEx bPqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@axentia.se header.s=selector1 header.b=ZAnEKcgz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g6-v6si8524410pgq.240.2018.08.25.01.57.41; Sat, 25 Aug 2018 01:57:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@axentia.se header.s=selector1 header.b=ZAnEKcgz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726987AbeHYMew (ORCPT + 99 others); Sat, 25 Aug 2018 08:34:52 -0400 Received: from mail-eopbgr50130.outbound.protection.outlook.com ([40.107.5.130]:53664 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725815AbeHYMew (ORCPT ); Sat, 25 Aug 2018 08:34:52 -0400 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 Cc: Peter Rosin , Boris Brezillon , David Airlie , Rob Herring , Mark Rutland , Nicolas Ferre , Alexandre Belloni , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jyri Sarha , Daniel Vetter , Andrzej Hajda , Russell King - ARM Linux , Jacopo Mondi , Sakari Ailus 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 Content-Type: text/plain 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?= =?us-ascii?Q?4WnVOTbkT/sfdg/FKEEsWsPWqMg58FNw10svRClia+wUgpCtyqSf7BAMabcs?= =?us-ascii?Q?TSaYqxBrzDkrcVmadK3gf2KmxyYkRtJBiaicsa05MFQbvuROpJoqEL8PalqW?= =?us-ascii?Q?HMS5a/XoLLs0t6R1EdgHleEH0h/Gl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q1nbxEKtbPoOVFmRlU1CImTOAbqIa8lY6P50XKbLTnqJ6cSvK?= =?us-ascii?Q?HKPMJEuiBL9UV9T2V3f819T4OKR2X2sCn86V89YqZfG5kHQJzXY6acDrzbOA?= =?us-ascii?Q?A8wMYRBDL17yf6/CojdI0yxfRTkT8nLapo+DKo/57tAk/HpnE1KUjigERZ1u?= =?us-ascii?Q?cqJm4EYP3cA58aMp28/0kvkesDMfXspXr6ODvq1o/TiaHovZJ0uP964FJ+Sd?= =?us-ascii?Q?2cU+2eFWiMmkiYSIuDBIoW6Y=3D?= X-Microsoft-Antispam-Message-Info: P8gumnWiiGR9AvlEpl8MwrKu5I2dnar4Vql8fjL9lGqD3tHZNGGdRW2StggCkbzEul293TpPFk9R3qWRxDLzZ+dxoJsNR41Qv0+mmMVv0pLptBWz/+RXXKG19v9erg6jofapiWZjChjYxtdXwC+La0NmTdxdpmC1dQlcLF8CuvJG03sqNgzjjwmL9CFALFmJ1uh0qMXGSzONMsRaYHOc5XDMCCctBoFeQPqljMSY+my2VzgiT1zutgnEV8kPZ1fDo6O8+t0ODnLVeCZTPRE/QBRRdXlkv0MeV37HOt4juzyzBT+Uqc5mt7WGtofsekN1wwEEo3WBXZu2hgEzbN8hGsVozzKmCb/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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.11.0