From patchwork Fri Aug 3 07:23:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 10556613 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 9779414E5 for ; Mon, 6 Aug 2018 08:21:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8419A29112 for ; Mon, 6 Aug 2018 08:21:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7516D2916B; Mon, 6 Aug 2018 08:21:57 +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 23E9029112 for ; Mon, 6 Aug 2018 08:21:57 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4A99D6E229; Mon, 6 Aug 2018 08:20:30 +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 172A289241 for ; Fri, 3 Aug 2018 07:23:23 +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:18 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [RESEND PATCH v5 0/3] drm/atmel-hlcdc: bus-width override support Date: Fri, 3 Aug 2018 09:23:05 +0200 Message-Id: <20180803072308.14962-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: 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: 42f8b599-062d-46b7-0e6e-08d5f911fd11 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:Aurl/z0SCbh4V02PeUnY+coeMr9mUY1P+QRfANO8OC+Y5aXu1biFmGicoVPaqtu/gB2O72zk14k33Pzww9ic11G8TROZXmkPBh5VqxDWgeQfZyqRSaLtrVNEtJwPyr4ywMJG/Od9COYX2bORSLIh/ZktF17TseY1qLY+DsnujqGY49+bU9vazsSYmH2lYdOJUbxehek6c968I0MhEaIViIhZdfwOPJKe9L81ZHUDkijmZye70qhKdaYlILfYJJQ0; 25:1bAmaoWlnFb6KozXn8aV0vxi6mGZR18/YQ13PA//U00nVh9rAHP2K5iYfnPwQH1Ypa8/r+SN2Ph/tGuy22/TaZ+gLBN+uRGMN/KkmGzDVjeX5lIwzl1vRZBpmDDMsuUPLfkDqkxAmY8vgO2aOuW3Rkf25RDTuwEmy29muNk2UEtwRuiCkbVJUw50lfBHu7UI9vjLQgdPocgvVfXEnMhEXtTwDq7XgP+aAdC/i2wUMNpuqrYxmfXl57+D9nLv1uOZJa0Q6//1L9LHEa9FCqBrDuFLIt03bfduDzBD8/uoSAI8OFsbRKziALLtWB8qN3PlSg4iVklaqWBPD+itkwiwVg==; 31:W5HVa5l4lpgoc1Bk5he/MRi63joSfsPzBmwicJ5dyL8uNrzYCsfH9mtUjVeuHang+UjDBIjbNxveN/1WakVdqSqHJdsApP2gLcZSZ7+HonlG3vGqVzgCg9GDKov/hEg3HbYlLMbHrdlyMjXT8VTS2Z3Qj8EEJfIYtbHhnlY6lFkMTSBTEvqZfy+sx8YNAoyjq6pgzV12bOC2McGcrpGPdoAP+JVHm5jrPj6IrLUkPJA= 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:75bdtKl2/tZNmYWLatWhbW3XeME6ELI2ESHKTPZxVB9d+vTRpR4SkUh6vYDB4f5AjJexwhpEytAmy6l09Iy3WiIKGggaIhebiyKSlIkuFCvAKcVp5ByLudH0U+Pmtmddpq5IawoPZ//TySA5CttY0ylNfLjIeYakrfwXVG+FcrjOEM9i0DaWHItAYHVsQ4+ud+mD3s/MX9CBs2xoBb+O/Go/3aqsv5ZadHrtUR1mznzxbA07LT2qf6gMqf6O+YQCn25FsnkK6Z7tILQvmlFIkQ== 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)(51416003)(4326008)(486006)(47776003)(305945005)(52116002)(25786009)(217873002)(54906003)(66066001)(2351001)(956004)(105586002)(68736007)(36756003)(316002)(106356001)(74482002)(186003)(50226002)(6486002)(97736004)(8936002)(1076002)(386003)(6512007)(7736002)(8676002)(2906002)(3846002)(6116002)(966005)(6306002)(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:QBVS8AsWXi+VolqZbINdN/mtAuc0w9F+CzrV9Um?= X5KIS5fU/iUSlODFcdnqSomf4DpnRpRbtVVpt6gznHUZuj8qnUaamlb5asc3qPdYcymj1Zt73wZo77bruLcj81GlQRRu4ynSHX+WL+QgXrSM8zPDdtT1qYEIkKGYd6gJGPWXqssRba0TlBBu93V/YkD51yAQgZ7pzlHa48EYa57tlBk6eK1wzSbFRjEjpLWjSm97OGzwtKB2ugcca5F3cpKXtKGlxgbVMhL7wSI6eonSEM4etLyh6oNy+1Z95mYl1OlRSFwV4x4y1qs9R83ZE4Uqjm0wthsaXAQIQZfbH9U8xlCXuGCP1LMhdesqTxlX1AEEVpnDmepWPiYPXREO1QESmD2Fqx/J86TEDaHXYDnInOyqE1j3pNFlOopI85+1Y103HCPjCyTIeHS8dBO7N+zWCOWOwxqmjUMw+1tf8OSddPWS1aSaeSc9HdCYTV+VIys/XKDnLOvxdoMhjRLrapOdr4sRUVWu1lkxCeakHElzN09HwBCJVgSc6zLVOgGtsgghsIZr276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g: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Aug 2018 07:23:18.3775 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 42f8b599-062d-46b7-0e6e-08d5f911fd11 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 Hi! This is perhaps not a true resend in that these three patches were originally in a larger series [1], and the series have been rebased to v4.18-rc6. However, I did ask that these three patches should be considered separately. The other patches in the original series have been adopted and reworked by Russell King [2]. 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. I of course need my old patches or the new ones from Russell to actually use the HDMI encoder with the SAMA5D3, but that is not directly related to this (shortened) series. Cheers, Peter [1] https://lkml.org/lkml/2018/5/23/273 [2] https://www.spinics.net/lists/arm-kernel/msg669238.html Peter Rosin (3): dt-bindings: display: bridge: lvds-transmitter: add ti,ds90c185 dt-bindings: display: atmel: optional video-interface of endpoints drm/atmel-hlcdc: support bus-width (12/16/18/24) in endpoint nodes .../devicetree/bindings/display/atmel/hlcdc-dc.txt | 26 ++++++++ .../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 | 67 ++++++++++++++++++--- 5 files changed, 144 insertions(+), 28 deletions(-)