From patchwork Fri Aug 3 10:11:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 10554915 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 253ED13BF for ; Fri, 3 Aug 2018 10:11:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0AB9E2C1EC for ; Fri, 3 Aug 2018 10:11:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F208A2C1F8; Fri, 3 Aug 2018 10:11: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=-2.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI 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 AE0F62C1EC for ; Fri, 3 Aug 2018 10:11:56 +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=kb8DJPvUdEQy3LUQDOTJAH7UGgK+Wl99su+FX4OuvNo=; b=cPLsEU3E8AHunp jVyUtIgjtlpk+SGvfA1DXq9Umkumz6ybIKczmH3a7EJOeU2omnSCgNgPg/h5/edbLwnwOxPAlhTry 471jowwKvQj8q2Hv3zsnu9IvO5+h6HL6An2UlQZ9b/wtjLjL2a07zFDu4NP0/kxxZCj1KL8AZsqbs 7YCnDdLWsUCZddpKGi2qWhOQ2AfvyFI0fYRUbyFBn66f129FuILMngX+Y8yqJU+jMD9BumCx32XR0 pjxviEJlY0kP/1/npcKyYtZAiNLstjio0u6/ojOtKPrPkU9AhmShgYG2fGJBg9q8p4qNcRWGBqtAj EBQLtmMoTklK8jI+P7Bw==; 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 1flX3p-00027y-9c; Fri, 03 Aug 2018 10:11:53 +0000 Received: from mail-he1eur01on0728.outbound.protection.outlook.com ([2a01:111:f400:fe1e::728] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1flX3m-00025j-0h for linux-arm-kernel@lists.infradead.org; Fri, 03 Aug 2018 10:11:52 +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=TK2uH/oD7Xmy3AEwf4ATIolHvmjpMTP88aHim6p1xbI=; b=cnmH0Tbe7ckoTRBFhU7iMYts5q8jIlbTpE/8zWBDwkyo0zAasHsv+r0KfmSyBpE0r03lT0a/xYINj3uFwm2y9YKL7HBISUtwci9IohQ1Qg8icZRrxJE0ryet7Vj6H8I02KHcd/so/0KGpeFFdoOJI82XUZaQ16qoo81gxQhoHAY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; 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:32 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v6 0/3] drm/atmel-hlcdc: bus-width override support Date: Fri, 3 Aug 2018 12:11:21 +0200 Message-Id: <20180803101124.4622-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: 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: 4dd199e0-1b78-4b49-5ae9-08d5f9297d47 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:aSdWEp2+8CEzgPo8dry2up00JXVOvvrtv+GjYBjDT+OB09Sd+zZ7k2Jo+JU/qdYNnUoqrNaIDZOaxVgpC9BMkhxepg2eGE+nmhC25S71JOiBBHKYaM+zChURD7Mg4XLhnNmwB1qQvpr8d4hawr6FpqeB1+iw1L8nPhvqvZgBNPs88jAO8k2qJ47mlTvON8QAmWtFreXcHmcYo7RoVLRRfca9RY9E92Ou3VNIjqkQDtogd9gtAm9GS6EcnYfQxkJc; 25:VnSJR+ljUFVXyiTxqOdGOKv3rSw8BBNaB6UjrbrlHZnEPh59Oc/18hAOTzHstcTrtSVpX73LY8riTafx8ETKqau5OM9R+BX7vQsXxPZbKfIE9rIKQa5GH9c4EDQ7KHFpdaf3HkRN+/ykIO2Fn5DV7y/g/uIPMckryfWBmJ4ZT/ZnEnWgr0y96Gja3/Lkzs+RkyN1j9B/rgIgMX0XK4Cb9Fles4iJwzqJgW8WDDak45hrMHu/U6KE4mv/aB/2rx/8AmPTfWzpt854RQi0YF6kIOHiJm7iw/NG/RlktfajFtc/drucGWdCNZ0jACky6X1m+kTsjL4VN9Bc0zGhsuaFBA==; 31:Fg5Qb63qPMfuOCGljcdRC8iJPBi/KFj7hzmEQPi3psLJtXRlwT87tYQJzXkeNWS7inEpSmqow3ws69/ZCfVD0ZagIoSxlUB7QFCltQ33q2kQDujNpRlWl5CgF/JCsP9VCskkj/sM2LZyW34fVEBaitKrEzrcdLyWXAH2XBzr84DoZ1krKg+qe6aazKbWE/7e1wkRPKwIGlmOyRwetsmfaUy1NarGl3Y0D0GgEiqLcas= 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:gOaDejxzZt0lrG/FGu7oz8bXF1BYBhQ4/I3oqBCA1atHfkcyx/rhuCKDopbAeOBU9c0g34QkXb2okUlvlQ0GdeOC2TDu7fvdXUSfEuw8bVNQ8JgUrWuCYlt+Vo6LFUX89oda4ApWO1VOw3qO1Cx+vZeXQGvf6hbiFp6W5zyjWUH5jsrJpO4m4n73WOb9nMso/zCLa0g4rwFsgZKHH+YxojMTMX7rGZ6XikYoYDW0udpi3gL9AkYC6MEcjipkLHievOY3+vYTL7RgXeN2pSZaXQ== X-Forefront-PRVS: 0753EA505A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(366004)(39830400003)(346002)(396003)(376002)(136003)(189003)(199004)(386003)(25786009)(3846002)(476003)(956004)(2616005)(2906002)(16526019)(74482002)(36756003)(7416002)(1076002)(486006)(86362001)(26005)(105586002)(186003)(97736004)(305945005)(106356001)(6116002)(6506007)(5660300001)(66066001)(8676002)(2361001)(6666003)(81156014)(6512007)(966005)(68736007)(47776003)(7736002)(81166006)(54906003)(478600001)(2351001)(8936002)(53936002)(48376002)(16586007)(6306002)(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:/S5gtmpiFwHM5cce4tiZzfeQ+v6aWe3Cjz9Klve?= ZdK0UQiN4VqSN+emCi9A+XXPMjvuijbg5/SSQ/kOZweKf+o1ysqynAPgMbu21zG+ut9jP1x7e+1Skx/xvu1Ic5jIfuvPi26pOjBYd8xrf+3jjHwKvo5QCYMnnAF45KtR1KOzJ+pkPISAscKYXwSlp7dUDWeqqwPKIQoxEPd7oQqjjIteLPpnKWlYZtq4wXt71tq1LlLtfSJIBbICZwAEul6x/KEydSSwKyR+lByML8+ghrGU/oQgAxFXd2qf6lVwPv9At9EscB/hgdUEeajTBykFJzkApCntt+7pqU0IctUZYPsUtBx1NshT3RYvrcbFknM/RLx0hrj/JCpVoBiMSuEle+tOVoxWpkemMyOXLGWLXRbu1ZG2X9jtWYSI/1yrnj0mMaaqKD/BhjxUN21t17/4ojSREx0Lc1UUwF7RCVsbaGZY4ZUuaeto7lsZUskdontLIkdwu+mzw8Kde+QIgi08dZBq66/+dynNwTNEVCDYCZ5+/PwgTOp4Fjl8cvwNCYFxNOOzwYIuRqfbeT+jPcv6W3MqN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z14Xtirpn7nFG/X4H0s/Y= X-Microsoft-Exchange-Diagnostics: 1; DB6PR0201MB2456; 6:mAPo5DJDZl48hcK6LWtZ6jt3PD3NDtaZ7SXiRNnOqSPFwpPYNS9eifpkaDykV/Zv/Mamif/q80HmXTnHfZLSQeP6xl0ZYduLzrQ67PdFTb76hTd077LFW5U9L2jYv/dZ6MGcoeSTSD33H/bmsd9VvYODd7EgAHzsJmsYRssT/dmisslWilxhqDrknXqQkocUBw9X2aF/Vg2Y9pxb2AUTc4xtEFzV0+8frU9x/zCHYipHGrV9gY+p7k9AWYFflQ3crwhSUKlpzOCm6KTqsQ7nXATnOegFDM3aZOP5QfM+6uO5S6A0uDN2hl+NQIWImxWM+h/iahggOqnuJrCzMxiDMdzzmjf2XDPsvQxGKurM9wHy4I2lv59Bj7ngTHaf+eOIXKVnEDfHO2TZ3923gFmB0BGkLFYyJErRpYjK3O3HCkiMEAWAwS24l+1bB7Zesbxv6Le5gwoRVJ3Y9fz4l4uRqA==; 5:ATUxXLI3/Dci5Q5OSovwR2Rd/Yg5Rv94dkslgNVFld2LI2Cdm1Ca1dvvicXkVEfaM21KTBU0kTkx71VXX7CtqsdM0ZnocMKe0Hi3A7JkdxiQfTes1Fy/84YKeIPQ/rk57hR3fHDTQaKeVftP8YROpDFXvujKVzh3lvHsVv7/vpA=; 7:qHY4jXAMeZbPvInOMHcJ2mY/XcTkyGybNMWzGaTa+tz+B5TrgkmTmw9uvuFKpgM1ytebD9BS35EFM9xah3ITEFSfX6vHg10qiH0gXZQs0F1Bn4wS3KEh1Gsp+HCFlejFwRDzGg77DPRjZqQawJqoeDR6nDL7Vf1qUvTcQAfQbpgjqIsIY9Gnk7ilPxry8Vf1r6UMReO0PyS2uiKkfVPIVoimkfRBnKPzeK6f9COtc8JqyWSkh1g0DN6sXMiSpcic SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Aug 2018 10:11:32.5159 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4dd199e0-1b78-4b49-5ae9-08d5f9297d47 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0201MB2456 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180803_031150_226292_20C816D6 X-CRM114-Status: UNSURE ( 9.65 ) X-CRM114-Notice: Please train this message. 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 , Jyri Sarha , dri-devel@lists.freedesktop.org, Russell King - ARM Linux , Boris Brezillon , Rob Herring , Jacopo Mondi , Laurent Pinchart , 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. There is still an open question regardning the binding in patch 2/3, where Laurent wondered about plans Sakari might have for explicit bus types for parallel buses. See https://lkml.org/lkml/2018/8/3/278 Cheers, Peter 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 | 30 ++++++++++ .../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, 151 insertions(+), 28 deletions(-)