From patchwork Sat Aug 4 11:14:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 10556615 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 08A9413B4 for ; Mon, 6 Aug 2018 08:22:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EBB422915E for ; Mon, 6 Aug 2018 08:22:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DD5042922D; Mon, 6 Aug 2018 08:22:02 +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 8D6CC2915E for ; Mon, 6 Aug 2018 08:22:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 293486E237; Mon, 6 Aug 2018 08:20:31 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0118.outbound.protection.outlook.com [104.47.1.118]) by gabe.freedesktop.org (Postfix) with ESMTPS id 200BB6E009 for ; Sat, 4 Aug 2018 11:14:52 +0000 (UTC) Received: from orc.pedanet (85.226.244.23) by AM5PR0201MB2451.eurprd02.prod.outlook.com (2603:10a6:203:35::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1017.15; Sat, 4 Aug 2018 11:14:47 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v7 0/3] drm/atmel-hlcdc: bus-width override support Date: Sat, 4 Aug 2018 13:14:36 +0200 Message-Id: <20180804111439.7455-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: DB6PR0301CA0043.eurprd03.prod.outlook.com (2603:10a6:4:54::11) To AM5PR0201MB2451.eurprd02.prod.outlook.com (2603:10a6:203:35::8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 77e28196-9e26-40e3-db4e-08d5f9fb7dfd 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:AM5PR0201MB2451; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0201MB2451; 3:HYiNIflOTt+8U46OeiwJzmOGtVwUUxLJTabK9fM1Ka1Eh+1ppL/gv37vkki/MWhAjvYS0NtIrdWKPxjMdXGyNg7xUW21dpEJmKb0PRI5upTsVpv/Cx13lyclkQBzTJEyJYQ4XwWpYdRvuUkjunMFT/atckO9ByHsRkg2art0PN/HzYuvsh+CBm2pgbSwzwQl6RJb3Ep5O9WrRBfb7tRH7axi1IinCauKIr3qxHwSJ++hfDPlc+v/nfSMHe9DVZ9/; 25:gs29mL9uYyAU0cMa3J9fzMeb6E4yS24b3SeaSxoKXBBuy7wMKvU5HbxgUiPzBAFn0fOazpjVg9z1rmRSFhkeYrOCVGOj+ZOFTPMnCkmFoBFB+xUliDddUSFpqyodCNhNXqwj9rHid0+8l5URtntp/m38umFIcG+UOJud14aK6FbDem65AipVQ/6FZxPCXZXyDm/Ic+DS4jtUI2wiMa9thnl0Cu3uuIDZc8gVBbrp9Cu5gKHzhZ7WuzDGDash8nrIV6cY7NIH6eq8t6m7tds0XdHt3Ycw35ndLvGKmchFF8NTXCkUlV3uLlXrWzV67zgr60XvgSjQwCOE940VeXGB7Q==; 31:F3olGO47Y7ZMm5AfBzqQMIwUMhce6Vl1R/GQG2q3x/tZfW7fjGU3kFvYPJkUSb4Zir4LUu1DQoE8UMWWemwDhozGwa6dn37NlZS4qxbeTNaypdzM0wM4LZEaG9tY8jS9JKyNE5LE2qo6eD8TFdL9oktZMhHe7lhhyq2yahzqxdW/hIdeZsAcBzDdgVDHNRLJ7Kf4rzkZLOuK5IZHBVLmQgR/4rAUqJVIyCbJwmkUDRw= X-MS-TrafficTypeDiagnostic: AM5PR0201MB2451: 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)(93006095)(93001095)(3002001)(3231311)(944501410)(52105095)(10201501046)(149027)(150027)(6041310)(20161123560045)(2016111802025)(20161123558120)(20161123562045)(20161123564045)(6043046)(6072148)(201708071742011)(7699016); SRVR:AM5PR0201MB2451; BCL:0; PCL:0; RULEID:; SRVR:AM5PR0201MB2451; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0201MB2451; 4:eFl93XX0FlpMLeeFa4+uQFJQ9+cdntfeW9CxLuZLOWEtmLdcQIhLRG/5rj+zJg6naDpeMW+CcH3rLIdtvTpDU0h8eRL5GtuaVOqptaLKgo3WsT0Kmv/A7LzaReiqAs8Q5RqR72CVGSVylkbs69Pyx7WibMXtRfMQBwsng/AFOXvl2IJDfC/lUMUNbFDUAnSwIcR2qPi9j3pkOTuy1FIF06nw2285HbbJSjpS5B4pUzc3j1tKLfEiWACHKsACGIbrwPMw/vwWlZ2lzBHS/A08JA== X-Forefront-PRVS: 0754F7E325 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(376002)(396003)(136003)(39830400003)(366004)(346002)(189003)(199004)(51416003)(106356001)(52116002)(50466002)(48376002)(2351001)(50226002)(4326008)(25786009)(2906002)(68736007)(47776003)(478600001)(5660300001)(6666003)(7416002)(66066001)(956004)(2616005)(486006)(476003)(6916009)(97736004)(3846002)(1076002)(966005)(305945005)(74482002)(6116002)(7736002)(16586007)(316002)(54906003)(6306002)(8676002)(81166006)(81156014)(8936002)(6486002)(86362001)(2361001)(26005)(16526019)(6512007)(186003)(386003)(6506007)(105586002)(53936002)(36756003)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:AM5PR0201MB2451; 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; AM5PR0201MB2451; 23:TVtOb3u+DYB69W4+gl/vI0KN0uF55MIzg6qwiC9?= f75TMrF/MrgMvF5jyiTbpemAIh04HcnRKU17ViIcjCSv9qpC9JqVaFXDAxUe/YgT0Fp/fcMHX3WibKktr+6/PPJgB+lEtf3WKZUruEeGdOKAz6RnXNRLOReB6DaCccvQg5iMJKYhYKaJAMstJEKPW79LgWN8kxKwyL+5F5qZDc5q9nK9ljF1LSFAWu2/R6eSAfF+ZK7Qkv3nLqPHbWledgStUzb3jOroc6Vkbrbl5UBhQ0RvfTZIVEpguMOCi+1Q3HR4xiX12tq9JXU/7KcMnQO6sbM+Ng8HXI85z7nrDdADpGiUNqPcOCq29XQLJaVGrQhIChaBtlgIx40zotUcj7Hy5AxNppfODks3i+2xcAFG7gAFaeQoWCzvscm7NDN6mvcZmYU24mMAOIO3DTxOvxqWi87c2n5LLK1KImgUxvOlepXz0IN+D0/rL6WtptDHM3t+4YYcNvmXVx1qeJxlVmasKSRLCQbSvCgKBEjAhefP5L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MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Aug 2018 11:14:47.7099 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 77e28196-9e26-40e3-db4e-08d5f9fb7dfd X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0201MB2451 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 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 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 (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 | 28 +++++++++ .../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 | 70 +++++++++++++++++++--- 5 files changed, 149 insertions(+), 28 deletions(-)