From patchwork Fri Aug 10 13:03:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 10562669 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 6CBB813B4 for ; Fri, 10 Aug 2018 13:04:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5ACD52B165 for ; Fri, 10 Aug 2018 13:04:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4DDC32B397; Fri, 10 Aug 2018 13:04:36 +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 380F82B165 for ; Fri, 10 Aug 2018 13:04:35 +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=xP/eZ4AzK9Dl+gJ561UpBiObNdFURm9QwRm44Zj6wp4=; b=b9yujVOJKpxVv3 F5MVTt7QNy04jCwpH5bMtZnh6bdLdmisZScwqY+hum0Rxo9WvevonE+1xkqNpWIPFGHles9pS1d35 cwWmKvpOqvIyF/ujHYGv7BIJ7+bHoPVUfYlJ3APlykOYfC1dRcEZMwozIVzlO0UtHYGC/PnttKCsq a2Vun6zwZDGBFaAA+EkElixBFRvuk9NQ7zW0xaQrj96+rPkueGwyvEJRXVy37NsuY6Pv4/W9ZOJps Vk+Odc9JCVbld5DC5+9rdGK8s+jUHYNIbGgC7fkWNLQd5SREbLwpN9vDYLVjf/lNZ1+V+MsuoHOdx 5bEZlHHmjp/lAfGrLCdw==; 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 1fo75h-0001Fb-KC; Fri, 10 Aug 2018 13:04:29 +0000 Received: from mail-eopbgr00116.outbound.protection.outlook.com ([40.107.0.116] helo=EUR02-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fo75d-0001D3-Ki for linux-arm-kernel@lists.infradead.org; Fri, 10 Aug 2018 13:04:27 +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=4RCqGeR3e6gufhiVf1ubUmx9CAG7ZhKPBeWRpkccAUw=; b=XkIXWDI8z8k9Ci1FvbW8V3wDFNWDyqi/WuxSFfEJdRRM3r/9mi2DeK6C6DOnCl0G4tk4qiLhZKOXJX3ZZDGbmqGqRBR/cSDOpzQxgkeeIVLTYgjtUQjbGPOsj42T4+BWwKo5E9jcZ8PByJ4dA2lT/8Rl2MQ4f2qPcUhlGVGSsFs= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Received: from orc.pedanet (85.226.244.23) by VI1PR0201MB2464.eurprd02.prod.outlook.com (2603:10a6:800:55::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1038.21; Fri, 10 Aug 2018 13:04:08 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v8 0/4] drm/atmel-hlcdc: bus-width override support Date: Fri, 10 Aug 2018 15:03:55 +0200 Message-Id: <20180810130359.9882-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: VI1PR07CA0241.eurprd07.prod.outlook.com (2603:10a6:802:58::44) To VI1PR0201MB2464.eurprd02.prod.outlook.com (2603:10a6:800:55::7) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 399571d4-0e28-4c26-4497-08d5fec1c2ec 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:VI1PR0201MB2464; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0201MB2464; 3:yNPJkztUyoMEo98snkPIl/JUN9uDwA9yEx94SrJRyqMc38QpmGcqAF8GbJFBYbvMzBmIJnk7y5tbZ6zlM8rvM5h8PXEVh8g2kLKou7piE1qVIWstHVi4sKNeS37yeASrHRuWmxV3dsJ8ZxzNCeT69+Aq9oPwbL3ImLL+382V9d99agh2IUf/4rY8CET/XgiXiafEN2A9JHNhGugoJ8ByHvlAz2iSceSJ6e7T39iIZ7JxCYOW7qQ5vfoEi8o+jhHT; 25:knNa43ZT3Gnc2ZOva0lYma5DyK+K9yz4u00ikW64YQY+mvd8sco5MHaOW1rvLCKk8gZAys6T5xFr00Cs8BZniQWPPhppSAEapSQPO4i8dz0bn9ASwtPL+969bf514b3QMCWriOV7MfyNfUPUDOEToyrpXEka3WCt6y8dbltvQD+WSe4aBYMx8dzXBBhnWoZ83f/usKJGliRdAUecx3Emh7guSHZcW3FGvT4P/PwZHmRWWoMNtV8M7E341al7zckRm23cyM8aNlQL/eTAdPdCjIct6htIp8KHnsmMkgwWnnWaiOfk7UIRYtF03kXfa0tSCbBfKHnRlHi/KJxctuildA==; 31:i9uSzO5puIz0/AQPsP8AziMpTziSFmJZOThmdlOKG9YKqJZeGRchJPlBzlvBbIZgws8WJdcjl+I8fLqaDoohAC7wK3K3sags1wuRU/LObe0kYC30KBkEUZvq5994Iw87Xs3h/rGCQcFK5aIdBcqgaixrIfO30t24aLNWdfOIntviV2cBgcGZ79pu7cJvwOqD9/5rx0wurQtF/MpPDNZCFpiodJHPgfn6jETTBAKnNIQ= X-MS-TrafficTypeDiagnostic: VI1PR0201MB2464: 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)(3231311)(944501410)(52105095)(10201501046)(3002001)(149027)(150027)(6041310)(2016111802025)(20161123560045)(20161123558120)(20161123562045)(20161123564045)(6043046)(6072148)(201708071742011)(7699016); SRVR:VI1PR0201MB2464; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0201MB2464; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0201MB2464; 4:3rRXOu6GfrffsX3/XcHrM77f9qngnWWlhunVgUrzed066I5BWtxOFDxf/gkRmZDk15OtZkkSWnGbfPKZwZcX2skuAnVTIbiq/POpEz712XuPsxNDByine6LK4mNU1I1xLctXl5CdGcenuxd4inWK2/1wm0zkZ0+wrUHSeBS9sc+DG2f6uHS6NwjdSux22H1v/KxXblf0BGNHTEbFNuecr6a0NLxA0wxY6woOuJweDFEiozicCehfWyFPo31wXhsURIt96cJi3RgMl9hN6P0H0g== X-Forefront-PRVS: 07607ED19A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(366004)(39830400003)(136003)(376002)(396003)(346002)(189003)(199004)(66066001)(3846002)(16526019)(50466002)(74482002)(50226002)(36756003)(305945005)(47776003)(8936002)(186003)(4326008)(86362001)(26005)(54906003)(14444005)(48376002)(1076002)(6116002)(966005)(68736007)(6486002)(7736002)(16586007)(25786009)(7416002)(6666003)(105586002)(81166006)(81156014)(316002)(8676002)(478600001)(6512007)(476003)(53936002)(956004)(2616005)(2361001)(2351001)(6506007)(52116002)(386003)(51416003)(5660300001)(106356001)(6916009)(6306002)(2906002)(486006)(97736004)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0201MB2464; 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; VI1PR0201MB2464; 23:YSVCX8DmwtY+WiHvfq4SHlvM7TGd+I/0HfmBPWB?= 6nQBFlZ8y5QmuaQw66kTYdOK1uHpUHzpdisIuIu70g1HmQJv3LVne5IPsFsaFOeZZAP5xH/ZWiLDftmiB2ieffQBk5lbuIdjXhXOgaKQ16NjtMkdfE7H1lCOTIEBb042rgoAlqFZGD6a3meRWZ+TAkv7zGEgrTtLe6jCmDfRrvxOADAI0uDbHbDIqvBMssnCmyFFjvMgl17iFVCH16RX7l3ohcPb4/wCDy1bZRadJgJpQiEAJ5FArVoW0mopLwRHIeFHkqCMWngOB6sF/qY3y1WRmPOTJgR1+2lkfBGD9E4zQz+9C2co1JVw2NFh4nm70gsB0nO/gzqG5LXZo6AILy7pVHMWHv/F27uIRR94uLeEKEnXyCAscVEa58NNPLy+7apg2CqPzLuij/wUcPBu9z79ev09FvIC2wXjIO8bRSUzkjGdyq+Pyd9pBvckp18+BMorKmeGoSrUzc4qA0cscsLqIHiRv/vJ+U1PvbL6csHw25LT2qDUxdNw7Wum8/gTy4+b38s7C4cMVasMM893RL+V4G4FqKWr+wg3LXG2c6WgGtSwtUIRt9Xj0DtqUwuD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i1/1Y= X-Microsoft-Exchange-Diagnostics: 1; VI1PR0201MB2464; 6://duVudv0J0q3FOwqZsN4OxGtZ5znVnH/2W1jYDUpKfYIrVNQmET6G5qmuAPxzGEE9DQmAWeHfnHJHT2BBr6UfEn02GkDY3MlEZerdK43IPCqw90DifnHSvtG+Wn3nqz65MeMsD8poaJgzLisxTiGw9e8nlJSlas74gc/dOKkZP7VRVf10XNJpzMUUt37acGwi+4C4Mkl+/Okz8jy+3Dr/ofDr0dl96h/RbODhq828K3uFL8KCS7+JUo8CKVx3hWzYDSZe1D2bGfYOKij1rHbyEQgwfI2gvFZMtibo57HCSf8hBNxQnpYEUatrNXayfezGapiByv2w66DbXYQdrjZOk1eDZayvgZCxy9Ufa0dm0Jb/aRZtr1BlT3QPd50OV+5LM00Bfgg3xWi+Rlw8ndD7hjEyGLel4jX0uHXTLmQigpO4/gW2ynkHsEmg68S7yST9HEHH2T94IVscGEomLSFg==; 5:mrw1X8538/sxxJBoekySMEBQ9Tg6Ii58yi7tF25RJ67afHuKP2++ojiEsgfQ2aYjjaqGb4yFJND24jOFvtORwH49WryP+aFIbwsKUiM3TjfJobFr0PBzcQJW85t6+ghqr6XXlCEXn7yKYrOkoOrwZpF++oHgBLVYrVICXWqbNXU=; 7:8rGD6owily38UQm58vQ2ayOtsEP+NF7sLkgRWpNSLUuDeCp0U6oYJb/lzSfaA8XFoU6QeuxLTPb4Qyd/pi7z+Dm0M/rvNgCuKfrB1+0JA1ah5nN4ar6ddJkNb/c95aPMh+4osO0pZUWqlfwXrnl/P/ieSvfTZ7PHbghD5k1MDf8kzuWVhhZ6zr51b0it+3vVmyHCwWsdKh+kAIRpF8frgebfwiaNnN8rj3jzUEGOexC3pc0NLpTnfx7s/Brq0zYL SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Aug 2018 13:04:08.7075 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 399571d4-0e28-4c26-4497-08d5fec1c2ec X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0201MB2464 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180810_060425_904870_8CEF6D1B X-CRM114-Status: GOOD ( 10.40 ) 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 , dri-devel@lists.freedesktop.org, Russell King - ARM Linux , Boris Brezillon , Rob Herring , Jacopo Mondi , Jyri Sarha , 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. Cheers, Peter 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: iterate over all output 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 | 98 ++++++++++++++++++---- 5 files changed, 170 insertions(+), 35 deletions(-)