From patchwork Sat Aug 4 11:14:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 10555675 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 BA23E13AC for ; Sat, 4 Aug 2018 11:15:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A12792A02A for ; Sat, 4 Aug 2018 11:15:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 940BC2A152; Sat, 4 Aug 2018 11:15:24 +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 3D01C2A02A for ; Sat, 4 Aug 2018 11:15:24 +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:References:In-Reply-To: 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: List-Owner; bh=jMDmk4rHQaGTSoPRYkK83ot/1yWKY9m1nDCco5TEdBM=; b=DwYN1YfgpaO3Qe Fp3MsibGRR1t35HyHjlg2ZI/c/RervxQkljvd60wb80bzxNzQuD2hlEiusjitWnEFoiuFrAssrGEL OgZPhz76fxTZFCHCeLaFz7AHEM5Ck2tWhHk1NX7w3yk0Ku2scoiCmW12PzoNp8bQUc+N5p2X7/LwP CnlXuNYFz45uJABODTtFbkbezWidf4h0bz64HbUUdV3u224a+ecelFENVCEbu+A4Xjx5EOPJ9C57M KQ2uSXXQJTXbOFPZUdpuZJB6hgIZ9ZokYhnOBxVRm+ukHqaRBIQ5ja1UGc5UtKnTC5nvIdWiu+198 BnPA6eczpkTYLppomCoA==; 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 1fluWk-0004fv-7B; Sat, 04 Aug 2018 11:15:18 +0000 Received: from mail-ve1eur01on0097.outbound.protection.outlook.com ([104.47.1.97] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fluWa-0003Bv-0C for linux-arm-kernel@lists.infradead.org; Sat, 04 Aug 2018 11:15:09 +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=o/TJOLCmC7rqZW5t/K+dxC6OLtCA06JCzXJGGsdE9Ts=; b=A2KjVAdSx+t57KqLKdl0OnRgJ1GvfIPpNe1Uv8aXXDk/ICvCxmxpxJykBoJ+7Vt/u+3bQbkyhBX6/s24dbkEsvO81qoN0YeOq1nANlDPgsQrv6dj+K4YXW4Ggg1vibo3cynOX8fMB3/G3MX1fV/CH/wwH7ZQ0I7MDor4SxU2d6I= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; 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:54 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v7 1/3] dt-bindings: display: bridge: lvds-transmitter: add ti, ds90c185 Date: Sat, 4 Aug 2018 13:14:37 +0200 Message-Id: <20180804111439.7455-2-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180804111439.7455-1-peda@axentia.se> References: <20180804111439.7455-1-peda@axentia.se> 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: 5f9aed33-b7b7-4a5d-f3aa-08d5f9fb81c1 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:JyX9iNuZUZ84tDScUTPWPO/Uw4ePfOwUxPwSVkHSeLG1TehJl9uRPMSeF4J37nxYpblxjhFv8nY5T08jWOWsH+B6EjJFUcbX6YiT0AUsbrln6wOH4OYfJQeAlUZ0dtWhTlfQfkIRppEzD2LQnfVxPh3Snp9/1rbqmEPdG2uW91+7mveGU8WsvTrB9VRkQ+2VOvBCoBaLSPovSVr8EyM4kfdBK/JUhADFbP3GRrVnQyJw01jMXVl3wdme+csiPxUZ; 25:F2VgEEBu8sA3SEU5dL8DH16pOUAQX8i6fSxg/dAnGc7OTcP1Y6gBvJH0U0mEbP0yuQkF7c+HqYuGloemoBsy/EVGYt07gFZfFq9dH/vvi2Xp7EOdE38W9vXpX+q4sq90zQkcsrtUcbTrSkOBGQrxG4Ga6+BANpwusQshzobFc2MYO0CMpOBkzgI4yr/w9/aRldIcDJF6XH/N3s6MgYfKSgTY9NixddEAGvmDlCEKr3TQQSeR5CcBe+LfItED0SoQBj7zEcHq3NgyYzFjvr0GwEiYZtR4aAZ6/bbxVIZ1tpRq13viIQyBweCuNleQV+EOOm8hpglI7/l2eEzH8cWcdw==; 31:1yf2Xa8kC1/PhpfVen1Fbu0tsAiq1Z1VKee2WhSVUy0wsJYlmYmOdihpDN4rc3ICSsYejjGppMfSwOnxA0wFcps34eaDv1YP7NtUydeW9TEDJ7JwMII59YZzZNEjqDsVAvzJq4ti/KtJYwQzKOUEj2qmStH/zRX29bQf89KaQiimf97krx/oW43DNRIOB9JDwqsHtO+dLxk32u29MktZHwVqR3KFew0mA2ZlB4dUBdQ= 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:KKxkofX9V2P6r8GTmu8Guk4tKLS5u+B1APZanoKKfni5W4qL9Zod6seunRvmvjaBiH0OPuEw7MQhFq5MBR+073fWsTW5rd3O/ymXnhdUdMileL7T7fDGe318tTsTdAJVR+OVR2xDFjMoaDwF/pFsn+dXCPyuQY7ID5CQJdktX+QThnu0i+K2eLgQoBp3Zpbh2LkKOpEZ97xYKfbS39PnhXrpNx8JnQKyGDWlfD+Zmn6okeGzSP0tYZaj653e1M7jcnJDlgR8xaaD0vEVBulvTA== X-Forefront-PRVS: 0754F7E325 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(376002)(396003)(136003)(39830400003)(366004)(346002)(189003)(199004)(76176011)(51416003)(106356001)(52116002)(50466002)(48376002)(2351001)(50226002)(4326008)(25786009)(2906002)(68736007)(47776003)(14444005)(478600001)(5660300001)(6666003)(7416002)(66066001)(11346002)(956004)(2616005)(486006)(476003)(6916009)(97736004)(3846002)(1076002)(305945005)(74482002)(6116002)(446003)(7736002)(16586007)(316002)(54906003)(8676002)(81166006)(81156014)(8936002)(6486002)(86362001)(2361001)(26005)(16526019)(6512007)(186003)(386003)(6506007)(105586002)(53936002)(36756003)(142933001)(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:OJ/Z4ESqd45qt/YLzTDlZdmM7Z5t6rPn+FoCuwj?= F3YFCK4d1odYfMA5s43zXx5KrxBeoEslUa9v+dFe4sfKcHmzbpVe31N7qe19QIYhYxjVqaNSOt1cDu6EuHQ+yOjo1mj7HI4jONcQX1DzxeLQJlKMfobx/MOFmi52WcJDgnuIEZ1OPeqarNXgHYnh/wjBNuuXuLX81mw49VeuJBK35cBOIxvLASS1vlgtUEdf5teXD2rETYL+EZp7sIU0aG+Heqo6RFDMR84PRwElcPq7gbpn8O/KzyVmCCtCJ9zMykRoYo8aP8/V0BK+Q41CnZla3wixHSy9kU2NT798J6I7VUemQuSGU851+CqbRZOE2F1hWCatbJHKlP9krGeZLpTcnLjAknJggE2LMU1zjwYV7R6VLFVcSEKrQCcknz2Qqc+dOTF2hUmZqtNCvOj3gjeELmWcSVDhaF3nd9FTjMhEQm41gmmUCd0PQd1TtusCF3e3iyjl/tV/GlA7x1IYZel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YQtxE1sk89u3Z3+jS1XPyqkl SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Aug 2018 11:14:54.0272 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5f9aed33-b7b7-4a5d-f3aa-08d5f9fb81c1 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0201MB2451 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180804_041508_052579_6C38EB26 X-CRM114-Status: GOOD ( 10.59 ) 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 Start list of actual chips compatible with "lvds-encoder". Reviewed-by: Laurent Pinchart Reviewed-by: Rob Herring Signed-off-by: Peter Rosin --- .../devicetree/bindings/display/bridge/lvds-transmitter.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/display/bridge/lvds-transmitter.txt b/Documentation/devicetree/bindings/display/bridge/lvds-transmitter.txt index fd39ad34c383..50220190c203 100644 --- a/Documentation/devicetree/bindings/display/bridge/lvds-transmitter.txt +++ b/Documentation/devicetree/bindings/display/bridge/lvds-transmitter.txt @@ -22,7 +22,13 @@ among others. Required properties: -- compatible: Must be "lvds-encoder" +- compatible: Must be one or more of the following + - "ti,ds90c185" for the TI DS90C185 FPD-Link Serializer + - "lvds-encoder" for a generic LVDS encoder device + + When compatible with the generic version, nodes must list the + device-specific version corresponding to the device first + followed by the generic version. Required nodes: From patchwork Sat Aug 4 11:14:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 10555677 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 A198313AC for ; Sat, 4 Aug 2018 11:15:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 883862A02A for ; Sat, 4 Aug 2018 11:15:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7C3E52A152; Sat, 4 Aug 2018 11:15: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=-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 160242A02A for ; Sat, 4 Aug 2018 11:15:33 +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:References:In-Reply-To: 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: List-Owner; bh=AOH/wp8+sYShk/V0oypixcql5kNKioZ/hfc29mfgelM=; b=l0XuzkqGF6CODp P9n3t7LnzkNbEjkyMOOZNR9RosJiuKOt3EaHQsTrFqH3Wv3vPHVjwoBuJVTQprfzrYHji9wG6yDR+ 94ryGlPrK8Hq92Va1259M0KihrnNZ6eHRkk8irS8j5A0c1e/FV/EFZLSH0zgdRDshB3Ui8f7bFobr dAiQDn7jtomGaD1QMGt3FsrNiMGuKDwRpBj1OwWX1xVYO5iZ/oC5cl+gSmBgFPXtKKZBupHjbhCQf A2T2vfIoYVNhpR2oopPf2cXHXWgnHHTSKGwbyTgePfMLH1FqvcfNZBX6MSnkMSqtU+DFSGFVeJl2s Cbu6YZ43E4itpJ4y36lA==; 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 1fluWv-0004vo-DM; Sat, 04 Aug 2018 11:15:29 +0000 Received: from mail-ve1eur01on0097.outbound.protection.outlook.com ([104.47.1.97] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fluWb-0003Bv-Tg for linux-arm-kernel@lists.infradead.org; Sat, 04 Aug 2018 11:15:12 +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=6ZCxZiPOq01DgtqeNoBYvdYLNpkWsLWQ+UV51mXhsgw=; b=NGBSfbV+6S1WGZTFbZcIigsXSPAX0yz8vNB4eMszhdZf84XJOv3qzMPXINDzYGS4AXk43YCPEvxiQKXPWt2XBt5m+k9UFxmWtIbYr6gJg6bIcyXtkd+ilkHCgxsYQhNOfDy9LWbf/R9ZwG+aJ1XD5cFlR+NUJ1iUU1WVRVPR2kM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; 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:58 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v7 2/3] dt-bindings: display: atmel: optional video-interface of endpoints Date: Sat, 4 Aug 2018 13:14:38 +0200 Message-Id: <20180804111439.7455-3-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180804111439.7455-1-peda@axentia.se> References: <20180804111439.7455-1-peda@axentia.se> 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: dbc24798-23ab-4fb5-6320-08d5f9fb84a7 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:jkm84Cr3jDCPjM0nEQrNKczE+9E7Bqy3/q6Exj5IquLg7wRoZHuBT+uL4eaOMjV9hE+XYjHqias3xESF7H8CLsQH76bdYfNDWGpIwV/5X/ejJlTZ5F/30IN2Qr9gLjqMYPaCsy4whHHznyRw61MSzILJt/gQYxQNMvrr1gtdPukYC2/4x/06lwGfFqWpB78WzneOxlMmWF0loqQtYZWloQ+HqCEyu3fh3KDduxZSnUhRnmIvI3FAKPaSZzR3+bdn; 25:YdjXVkkNAAlhDld4exzglZN6UIoPXCpjA5nqrw+9UN7ulZJ64iIsVYmbxey6BgVJ7P+SgkXdH1Adt2qXCsMtmVuXYE4wsjLltrBn2LyOqEXP7t6gqhlp14ysWxEoxthaqetNuUk1KvOoW5UYKgk/XFNJf9RKLYPOPI7aIftWxfjnt4U31trE3uqHdhkLYxA7Hje6ybqWorEv7bresLYOUZ1W6QTNAFEIY+s4ixYUgfeAWVHHFVvJtJE6oAW0tLzrG6M+zbJAIdzydlL1tU654vMpVkE65uvlNA2yKVZOJPAixPKgsgMojise3CCc3H683ap4rVqOfjhbm2W001pYRw==; 31:0O2rHC2vNNyfBnh87giz2QA5AqAyzbgdewwcVURKaXUWhIyPUrg6b4uvUcRrhhTLQMktL6252ITZAh4FDmdjIZIoYYTz8TXUgTFesTkaHn4cgpIDCYtYx2YWWbARA69vQeKeIXnNp+71UHxnQgEA3cQEi+l0vv9ljbG51vmSEIzMsJ+NCTF9twrBLUXHuitRbsdIdtkLrRx2F2mvnyNfw1NIO5sV5/rco7q3+txAvgo= 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:vpCA19LkGxmMQA+/2/UjNGrhTztIGljCwYfnQkWMMduDDL9bRksZfyZX4Y4LSMkhFweMn3OwtfU/U/+gsO6cZzsSgkkOmRxOJgx0DTMal3RISQ8ihK2Z5ozBfTRq1EBqbAskMZWkg6JWyolmiIUrpGnn8oKrdynOeiy2obuBpRDqU/yL1MKTmXWy2R39TjvgFMpklYXU9XnZvnKNKCbYSQybLs9Ev3jMpGoDhEgEESibssH3kEMVbD59oewmGo2kBA2slHb0/EN93HClHwQ7ag== X-Forefront-PRVS: 0754F7E325 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(376002)(396003)(136003)(39830400003)(366004)(346002)(189003)(199004)(76176011)(51416003)(106356001)(52116002)(50466002)(48376002)(2351001)(50226002)(4326008)(25786009)(2906002)(68736007)(47776003)(478600001)(5660300001)(6666003)(7416002)(66066001)(11346002)(956004)(2616005)(486006)(476003)(6916009)(97736004)(3846002)(1076002)(305945005)(74482002)(6116002)(446003)(7736002)(16586007)(316002)(54906003)(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:Pt7R5hl1BPa2pHcIhhWHlQdNg1Zkk+Skev/zxDm?= zTCmgtffcuUUoSGibTn4NePSCeZCm4CWihDePzaPvIaghpE3PjpsB7FrJlMu8Dy18rC0l35/coLE4FFL7woQIUv8Ky5vkfIwlW2O+ueqHLPJ85gsElzt6EYHIa1eiKjwlYkqbgSobPJGcl0NK/DtrRspvI8rAAQ0x6Uf7048X/JWDEtji4bsR7+zXOiEZAZ9SCCmLPTbL12tZ0YoMtkTgFAUTslvNeWcYDDhtjpKd0+PAiqS0FcLCjx8mhbT8QAdkt5B1MDAesjeAkSt9+zHyyi8/fymQ9kkR+y3tuuioon7Wfaqp7JMs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63HQ+u97werq6bQwRvEP52JDUOVIUGY9g5OjgEdYt8QfBjVMTZVJsPGZdHVR4FSaS2OY/9c8q83to+mXz+F17Db6E3mOYkXJYpymJGwFPnEGlbVdloxwj18xrFpJq22nOK+VCVl1qQcgdgPvuUE+uzGau3y4iCPierD284 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Aug 2018 11:14:58.8803 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dbc24798-23ab-4fb5-6320-08d5f9fb84a7 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0201MB2451 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180804_041510_269035_F7A6C360 X-CRM114-Status: GOOD ( 12.18 ) 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 With bus-type/bus-width properties in the endpoint nodes, the video- interface of the connection can be specified for cases where the heuristic fails to select the correct output mode. This can happen e.g. if not all RGB pins are routed on the PCB; the driver has no way of knowing this, and needs to be told explicitly. This is critical for the devices that have the "conflicting output formats" issue (SAM9N12, SAM9X5, SAMA5D3), since the most significant RGB bits move around depending on the selected output mode. For devices that do not have the "conflicting output formats" issue (SAMA5D2, SAMA5D4), this is completely irrelevant. Acked-by: Boris Brezillon Reviewed-by: Rob Herring Reviewed-by: Jacopo Mondi Signed-off-by: Peter Rosin --- .../devicetree/bindings/display/atmel/hlcdc-dc.txt | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/Documentation/devicetree/bindings/display/atmel/hlcdc-dc.txt b/Documentation/devicetree/bindings/display/atmel/hlcdc-dc.txt index 82f2acb3d374..d29e1e425518 100644 --- a/Documentation/devicetree/bindings/display/atmel/hlcdc-dc.txt +++ b/Documentation/devicetree/bindings/display/atmel/hlcdc-dc.txt @@ -15,6 +15,13 @@ Required children nodes: to external devices using the OF graph reprensentation (see ../graph.txt). At least one port node is required. +Optional properties in grandchild nodes: + Any endpoint grandchild node may specify a desired video interface + according to ../../media/video-interfaces.txt, specifically + - bus-width: recognized values are <12>, <16>, <18> and <24>, and + override any output mode selection heuristic, forcing "rgb444", + "rgb565", "rgb666" and "rgb888" respectively. + Example: hlcdc: hlcdc@f0030000 { @@ -50,3 +57,24 @@ Example: #pwm-cells = <3>; }; }; + +Example 2: With a video interface override to force rgb565; as above +but with these changes/additions: + + &hlcdc { + hlcdc-display-controller { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_lcd_base &pinctrl_lcd_rgb565>; + + port@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + hlcdc_panel_output: endpoint@0 { + reg = <0>; + bus-width = <16>; + }; + }; + }; + }; From patchwork Sat Aug 4 11:14:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 10555679 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 28EA313AC for ; Sat, 4 Aug 2018 11:15:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0EE6F2A02A for ; Sat, 4 Aug 2018 11:15:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 024122A152; Sat, 4 Aug 2018 11:15:54 +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 59D792A02A for ; Sat, 4 Aug 2018 11:15:54 +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:References:In-Reply-To: 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: List-Owner; bh=V2xS48Ror6b5Kj27KYkpXEkfCE7i2Kx8WYSPnzN75B8=; b=XAziJ8Ij31parB aRDxaeZ6zg3kme2BaWMgChjOaYMbMtD8D2NPM5JgPZosyoa3bhPEm5HpxbN9CEQ0+Sko9BRj9DZD8 fxZze//7lK+nBfFk4uACmH06z7H8vQU5XmoughhNYgZ77kaoYbo5docfUMzgB+vdojRoT0OwaPE/u +8gKik2MfYqf0hnDRu6Xb17TH0odIv95wsDG+nzlmETyNd83WCyc/l9PXvBcLaRIsT96c5L1pybxL o8yLyJRj5DCHNz7PVQKOGH8zuJysOIgbkmJ1+Vf9L3V4H5wCtKNZ+LEEtFlJlO6p+oWFe0AvhqFQA 4JagUp+d0yX4hzO2e0tA==; 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 1fluXA-0005H5-Q5; Sat, 04 Aug 2018 11:15:44 +0000 Received: from mail-ve1eur01on0097.outbound.protection.outlook.com ([104.47.1.97] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fluWf-0003Bv-Cb for linux-arm-kernel@lists.infradead.org; Sat, 04 Aug 2018 11:15:19 +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=QR1K3Y7YCs8AAB6dEQK7G40bpwip1E6XqXJRMNXOwUM=; b=JquZUAnM8dG6RGZ0STB/J4J045sh1GyPklZihnFwvuGV124GJ1YBs+O4cuFRq8MOMVZz8pGhWhF8SzTA+k9Yqy3VfVZPNSE15rXPQJHAq4b2+KkBaPNRlWph+14biAkrSPmrbyaM2o8GJYqjHBf5Wa6Mgij6XGSxptGfpoDmVtA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; 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:15:02 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v7 3/3] drm/atmel-hlcdc: support bus-width (12/16/18/24) in endpoint nodes Date: Sat, 4 Aug 2018 13:14:39 +0200 Message-Id: <20180804111439.7455-4-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180804111439.7455-1-peda@axentia.se> References: <20180804111439.7455-1-peda@axentia.se> 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: 26e76233-9e61-47c1-d7a4-08d5f9fb8717 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:bQGRuQmRFdfpYlYZpObhB4CX2zFQfE5SI0jsO4pDFS+IGgD+n2KgMgc1789iHeY/pGuELAiUG0dqn/ofR/m4OFGiF5SgEgSh1aDrj75EH4PZta9BpWo1UYJjwak31XIbIaXccu4bC6Uzfr+cL9wOM3K2f+YL2NxeXA2J/lE2nM8+FooHXjc7bP8DsTCZmLSXyZ4u4HPCL+HnbiYjlTJo1HjP3FHuOIUWnyUxjK48Rt1wkC2Ux45rA5H+gRiKiONR; 25:hwFF3suO5WNba0GchFFgt+YU8wlovmTPlFcP9FfyUrV1gAie1vmnvgAYuHTmFZejbaD4GsbhQbFjiKhB+lCsKe485QBO32+EDW6M9e7kbVcmkSiewMIFY92NAPxoQ57Qkgv2A7j1ZblrP0cSlPQrezgjA7hL/363fZW423ZHDNZN6wIVEJwKPxanfQDWvUZk1ADFSJjgCkOcm4j99tv+uQ6QUWBrc4Jl8Csb2zB4g1YELjifnxrtVXsfdc8VzCGxvhvm24R3DcJ1qOIycNkJj+iwW0FaOZX0etEdLVUfSZeDLM1KkVqblL29Uw726thpM+xkHbbaG12jAqKfoRx9Nw==; 31:561ALEw4SwennvnAAJkFEIWt1fY8Mkij1eElRbA9d67Vs5b1CMrtKkOIY4OeGgWuPWFIX4lu6FV23D8wa3AoyaTM4rR1RRWifnS9gfP37LeCG77LVRGlAuzKA0x4RLTJ/9txNl2yaNvvJP10lsTzwk7nMcKUCTwZSQxkqzlwdD7jRj46Sjg2WrX6IBydnc2tZU1PuTmCKGTosXfsZIj4DEK31luNF0LS0fyLyxxY5uw= 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:+RsI6A/+VIAgEelY7BHTXsVomtnBwYmcV2O+2QWb6NuuqSO1hoE+UJbrVttUE2e96XeBOdSMY2go7kCobHiCNElkHuoPxSUYNIAertJB/rR3iDmYpdlyhjGsZYO+USDDwerQiz07cBg1iTtJrWKd0XOhCiRvOxV5EmbLQLSm/B3hH8PagvGZu3c0wn8CAhiRyHefh+1lP76fiKRBB2y6GaXnhf1lOd0w9C4yJyOFHcg813A3DQNJ4GVuOVauAobp7T7yBCkktk/RIapE6KDLTA== X-Forefront-PRVS: 0754F7E325 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(376002)(396003)(136003)(39830400003)(366004)(346002)(189003)(199004)(76176011)(51416003)(106356001)(52116002)(50466002)(48376002)(2351001)(50226002)(4326008)(25786009)(2906002)(68736007)(47776003)(5024004)(478600001)(5660300001)(6666003)(7416002)(66066001)(11346002)(956004)(2616005)(486006)(476003)(6916009)(97736004)(3846002)(1076002)(305945005)(74482002)(6116002)(446003)(7736002)(16586007)(316002)(54906003)(8676002)(81166006)(81156014)(575784001)(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:7heloZISNmCHFb18SIAB73BTRIDxbnp7Gzi6/6C?= xzXWm7WPe3d/TJy8o/0byizbE3Vy4mDcLrRMl+hgepdcvNFIMMcwLb/0z/UrBbIcDTw7kFsCb56jLq4DALdD0tLGK4VeZolRTOTjEkvAvANIn0UN/IVuPE2efVyH9eHgL3h0P2vVwkG1DSWuQvEz7fUVXUTwfARUQET0XcaEzspASp6bOU6GuB/4dyb5oJgsmC6sJl6wQ2odnYF7CqIw7kzcPRiA8HpC3VhyPmLM9RKXdpWpRha9hZTNnlzCKEBjb73x9rImfs/0G/1aFctrZ6kEuE7Zt23YfHhxSHsd98S+tg0bmH3P4At5QI0Vx/8+3Sxk3LWvYiFEtPX/yDbnQDyClcugy5c2V23DzNDJ/CYTUMwrptFYkVnIJt65gIFIuKWFmCw3QQf4dUX00gnnY45zcYXOk1qEK2jmcnGtNoZEffGeWjdJ0DR7aMBbnOWVZlE/flrNpCtWJUDLCGQqeiT7K5Z6e15QHaOg3i1XoRyOak+TPAh1b1OvhWSACxpvGryzEIyMQX31YF80cPvGBxh/nLAoNUWA9qAv2I+g1qYLTrztKoOlyqLk3ytyyJEt4Va3qahrWcC5R0JecHxAXf92zkYZvSJPh8rTU3BwfAkJRjaAtbC/10PSfAChasxw7DXWX2E/E9Xp0l/AAuAG+57P/Jhr27P5GpeF8TZwoPhtMrz5sDfA0G0RYHarjU12lvXdinI0NblsABvGOeMvf2au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T6UYO7LyZL2Xxuwjx0OTSRdbF/WSQa8AKcaqtOt1ljRNk5OghAdLBeuyPgUsxY1spQppAkJ7+lF9cfp8jA7S3R9CGWVbCx4aq6wUh9LzBxFikXlPv9806iW51arppUmxYk8LFVaeVUGJWgpbMh89CuFdI09kpuqXpk4eCfPhApANuBZF3dlM2GDBWky4+fJEvp+aPVgXfVqx+KijDZGzH1+RHpA3hipHYc5Rj1h+DM7lJeZ/cCJxVq3mUFdSq3QbETXnhkM9ptVVcM0dfsb2CYYlnwxYFVxMxsjsifNQyHFR9A++ajGYD0GDXZ9T4xNn8vD2p+ZT73LNKVMYNPDxbLBtPcxFRmEvt3REGvrtcVXDHri1R6gpQDJ3+TFY5gtEOAqNDPxc5WVG5LKIUsRimQTfjAqdbBYd1WjUg==; 5:5vftuhH14O64kFG+cmbc3OJOUcr1Bpcr8Fboe3VDJ7phJNp/5jAMBr6YqopnZZuz0rs04zG/ZE2bJ4Tsawo342JDjvnqf+lKZmuIxlXWwqtf9Yp5z/Qp8mSyczDn9J6ij5cwmj4At8biWKnH2o9FQp58HUH6q5GBmEUolpjvC7o=; 7:hULON4f/iEKdj53xPy0W+A2Qf27BXQpFB6luYUmqcD+kTybLT3nZvMLoSD9uBIRbR4+sfHgglopzUHV9gm69LEUjGoh/uAV0diUjM+kABjoTnnIpkbqnkCdGGqxX6Vq/09GVEm/ZWVM8T6Qf6m8ZvAA0wNXLo1Js1CozmdrZ0H1RQta0oTHlXoTHoiq6z3U3H65MNmPFrBspA25DvupTEeHp97+SN5NNZoJ89iQ+Uf7kW2ynxmja3KRbtkntOkws SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Aug 2018 11:15:02.9797 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 26e76233-9e61-47c1-d7a4-08d5f9fb8717 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0201MB2451 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180804_041513_983074_391ED2FE X-CRM114-Status: GOOD ( 17.67 ) 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 This beats the heuristic that the connector is involved in what format should be output for cases where this fails. E.g. if there is a bridge that changes format between the encoder and the connector, or if some of the RGB pins between the lcd controller and the encoder are not routed on the PCB. This is critical for the devices that have the "conflicting output formats" issue (SAM9N12, SAM9X5, SAMA5D3), since the most significant RGB bits move around depending on the selected output mode. For devices that do not have the "conflicting output formats" issue (SAMA5D2, SAMA5D4), this is completely irrelevant. Acked-by: Boris Brezillon Reviewed-by: Jacopo Mondi Signed-off-by: Peter Rosin --- 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 +++++++++++++++++++++--- 3 files changed, 114 insertions(+), 27 deletions(-) diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c index d73281095fac..c38a479ada98 100644 --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c @@ -226,6 +226,55 @@ static void atmel_hlcdc_crtc_atomic_enable(struct drm_crtc *c, #define ATMEL_HLCDC_RGB888_OUTPUT BIT(3) #define ATMEL_HLCDC_OUTPUT_MODE_MASK GENMASK(3, 0) +static int atmel_hlcdc_connector_output_mode(struct drm_connector_state *state) +{ + struct drm_connector *connector = state->connector; + struct drm_display_info *info = &connector->display_info; + struct drm_encoder *encoder; + unsigned int supported_fmts = 0; + int j; + + encoder = state->best_encoder; + if (!encoder) + encoder = connector->encoder; + + switch (atmel_hlcdc_encoder_get_bus_fmt(encoder)) { + case 0: + break; + case MEDIA_BUS_FMT_RGB444_1X12: + return ATMEL_HLCDC_RGB444_OUTPUT; + case MEDIA_BUS_FMT_RGB565_1X16: + return ATMEL_HLCDC_RGB565_OUTPUT; + case MEDIA_BUS_FMT_RGB666_1X18: + return ATMEL_HLCDC_RGB666_OUTPUT; + case MEDIA_BUS_FMT_RGB888_1X24: + return ATMEL_HLCDC_RGB888_OUTPUT; + default: + return -EINVAL; + } + + for (j = 0; j < info->num_bus_formats; j++) { + switch (info->bus_formats[j]) { + case MEDIA_BUS_FMT_RGB444_1X12: + supported_fmts |= ATMEL_HLCDC_RGB444_OUTPUT; + break; + case MEDIA_BUS_FMT_RGB565_1X16: + supported_fmts |= ATMEL_HLCDC_RGB565_OUTPUT; + break; + case MEDIA_BUS_FMT_RGB666_1X18: + supported_fmts |= ATMEL_HLCDC_RGB666_OUTPUT; + break; + case MEDIA_BUS_FMT_RGB888_1X24: + supported_fmts |= ATMEL_HLCDC_RGB888_OUTPUT; + break; + default: + break; + } + } + + return supported_fmts; +} + static int atmel_hlcdc_crtc_select_output_mode(struct drm_crtc_state *state) { unsigned int output_fmts = ATMEL_HLCDC_OUTPUT_MODE_MASK; @@ -238,31 +287,12 @@ static int atmel_hlcdc_crtc_select_output_mode(struct drm_crtc_state *state) crtc = drm_crtc_to_atmel_hlcdc_crtc(state->crtc); for_each_new_connector_in_state(state->state, connector, cstate, i) { - struct drm_display_info *info = &connector->display_info; unsigned int supported_fmts = 0; - int j; if (!cstate->crtc) continue; - for (j = 0; j < info->num_bus_formats; j++) { - switch (info->bus_formats[j]) { - case MEDIA_BUS_FMT_RGB444_1X12: - supported_fmts |= ATMEL_HLCDC_RGB444_OUTPUT; - break; - case MEDIA_BUS_FMT_RGB565_1X16: - supported_fmts |= ATMEL_HLCDC_RGB565_OUTPUT; - break; - case MEDIA_BUS_FMT_RGB666_1X18: - supported_fmts |= ATMEL_HLCDC_RGB666_OUTPUT; - break; - case MEDIA_BUS_FMT_RGB888_1X24: - supported_fmts |= ATMEL_HLCDC_RGB888_OUTPUT; - break; - default: - break; - } - } + supported_fmts = atmel_hlcdc_connector_output_mode(cstate); if (crtc->dc->desc->conflicting_output_formats) output_fmts &= supported_fmts; diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h index 60c937f42114..4cc1e03f0aee 100644 --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h @@ -441,5 +441,6 @@ void atmel_hlcdc_crtc_irq(struct drm_crtc *c); int atmel_hlcdc_crtc_create(struct drm_device *dev); int atmel_hlcdc_create_outputs(struct drm_device *dev); +int atmel_hlcdc_encoder_get_bus_fmt(struct drm_encoder *encoder); #endif /* DRM_ATMEL_HLCDC_H */ diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c index 8db51fb131db..f587ae596791 100644 --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c @@ -27,33 +27,89 @@ #include "atmel_hlcdc_dc.h" +struct atmel_hlcdc_rgb_output { + struct drm_encoder encoder; + int bus_fmt; +}; + static const struct drm_encoder_funcs atmel_hlcdc_panel_encoder_funcs = { .destroy = drm_encoder_cleanup, }; +static struct atmel_hlcdc_rgb_output * +atmel_hlcdc_encoder_to_rgb_output(struct drm_encoder *encoder) +{ + return container_of(encoder, struct atmel_hlcdc_rgb_output, encoder); +} + +int atmel_hlcdc_encoder_get_bus_fmt(struct drm_encoder *encoder) +{ + struct atmel_hlcdc_rgb_output *output; + + output = atmel_hlcdc_encoder_to_rgb_output(encoder); + + return output->bus_fmt; +} + +static int atmel_hlcdc_of_bus_fmt(struct device_node *ep) +{ + u32 bus_width; + int ret; + + ret = of_property_read_u32(ep, "bus-width", &bus_width); + if (ret == -EINVAL) + return 0; + if (ret) + return ret; + + switch (bus_width) { + case 12: + return MEDIA_BUS_FMT_RGB444_1X12; + case 16: + return MEDIA_BUS_FMT_RGB565_1X16; + case 18: + return MEDIA_BUS_FMT_RGB666_1X18; + case 24: + return MEDIA_BUS_FMT_RGB888_1X24; + default: + return -EINVAL; + } +} + static int atmel_hlcdc_attach_endpoint(struct drm_device *dev, int endpoint) { - struct drm_encoder *encoder; + struct atmel_hlcdc_rgb_output *output; + struct device_node *ep; struct drm_panel *panel; struct drm_bridge *bridge; int ret; + ep = of_graph_get_endpoint_by_regs(dev->dev->of_node, 0, endpoint); + if (!ep) + return -ENODEV; + ret = drm_of_find_panel_or_bridge(dev->dev->of_node, 0, endpoint, &panel, &bridge); if (ret) return ret; - encoder = devm_kzalloc(dev->dev, sizeof(*encoder), GFP_KERNEL); - if (!encoder) + output = devm_kzalloc(dev->dev, sizeof(*output), GFP_KERNEL); + if (!output) return -EINVAL; - ret = drm_encoder_init(dev, encoder, + output->bus_fmt = atmel_hlcdc_of_bus_fmt(ep); + if (output->bus_fmt < 0) { + dev_err(dev->dev, "invalid bus width\n"); + return -EINVAL; + } + + ret = drm_encoder_init(dev, &output->encoder, &atmel_hlcdc_panel_encoder_funcs, DRM_MODE_ENCODER_NONE, NULL); if (ret) return ret; - encoder->possible_crtcs = 0x1; + output->encoder.possible_crtcs = 0x1; if (panel) { bridge = drm_panel_bridge_add(panel, DRM_MODE_CONNECTOR_Unknown); @@ -62,7 +118,7 @@ static int atmel_hlcdc_attach_endpoint(struct drm_device *dev, int endpoint) } if (bridge) { - ret = drm_bridge_attach(encoder, bridge, NULL); + ret = drm_bridge_attach(&output->encoder, bridge, NULL); if (!ret) return 0; @@ -70,7 +126,7 @@ static int atmel_hlcdc_attach_endpoint(struct drm_device *dev, int endpoint) drm_panel_bridge_remove(bridge); } - drm_encoder_cleanup(encoder); + drm_encoder_cleanup(&output->encoder); return ret; }