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: 10556605 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 D563C13B4 for ; Mon, 6 Aug 2018 08:21:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C21E0290F5 for ; Mon, 6 Aug 2018 08:21:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B5AAB2915E; Mon, 6 Aug 2018 08:21:33 +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 69249290F5 for ; Mon, 6 Aug 2018 08:21:33 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 46DEC6E21A; Mon, 6 Aug 2018 08:20:29 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0112.outbound.protection.outlook.com [104.47.0.112]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6D8F46E0B6 for ; Fri, 3 Aug 2018 10:11:38 +0000 (UTC) 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/+dynNwTNEV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PM 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-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. 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(-)