From patchwork Sat Aug 25 08:56:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 10576043 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 8D0A6139B for ; Sat, 25 Aug 2018 08:57:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 79D542BDF9 for ; Sat, 25 Aug 2018 08:57:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6AF642BE1B; Sat, 25 Aug 2018 08:57:32 +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,RCVD_IN_DNSWL_NONE 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 D0F0A2BDF9 for ; Sat, 25 Aug 2018 08:57:31 +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=oBXG2+ZD1S31xU 4u5rKTgbDkduG4o90QVZFoDffNeHx0NY+etZhPIx51xFutTDr9t/2YZM0k3KiLRrC3RgDgYyBhBpB PuOuCy+D1QPP9OLSKyAd8ziryxw3obhDxvG8GygVk8TekjwfLdLapVRDT64WyCmMsxQyqSLMvpxpP 5z3wGysrblKlYH39hy7OFnvk8DGq3O47PuigqfbjuxNhTo9LoT026A/N2WQuDPMYeYkP2uWpMjqT9 10ee+/NqdH/a6kjsqMUQUajejAGXuitDWj0VHDkhG4SOkaTkiyGwE7XV1oqKXJ+Xx0t/WG/Zcacpf EkjY+rPP6iZkSGIyJqOw==; 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 1ftUNq-0006aq-BT; Sat, 25 Aug 2018 08:57:26 +0000 Received: from mail-eopbgr80107.outbound.protection.outlook.com ([40.107.8.107] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ftUNH-0006K2-Fq for linux-arm-kernel@lists.infradead.org; Sat, 25 Aug 2018 08:56: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=o/TJOLCmC7rqZW5t/K+dxC6OLtCA06JCzXJGGsdE9Ts=; b=eAi90Vo7vk64mPfLsmoL2fKr3Su+rvx1eRsl4f3FCt2SGglWFT2ilDBS07jneyfKTj0msOgjCmYs+CfXM4NA+scy7em7m/dkEtp2juCTYtmHEQ6zEe3sMp20ZyGTXbTHabjI9KTOYQ1nts1Hek04PmyTXj2qnHJ+rs2xCSMnF4Q= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Received: from orc.pedanet (85.226.244.23) by VI1PR0201MB2463.eurprd02.prod.outlook.com (2603:10a6:800:54::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.13; Sat, 25 Aug 2018 08:56:35 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v9 1/4] dt-bindings: display: bridge: lvds-transmitter: add ti, ds90c185 Date: Sat, 25 Aug 2018 10:56:17 +0200 Message-Id: <20180825085620.10566-2-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180825085620.10566-1-peda@axentia.se> References: <20180825085620.10566-1-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [85.226.244.23] X-ClientProxiedBy: DB6PR01CA0040.eurprd01.prod.exchangelabs.com (2603:10a6:6:46::17) To VI1PR0201MB2463.eurprd02.prod.outlook.com (2603:10a6:800:54::23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 512a9c90-f6ed-483b-14eb-08d60a68aa67 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(7021125)(8989137)(4534165)(7022125)(4603075)(4627221)(201702281549075)(8990107)(7048125)(7024125)(7027125)(7028125)(7023125)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:VI1PR0201MB2463; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0201MB2463; 3:cwd8taXjkwYQwu+mu5IdhQR2c7E9qya00caLoqwG8JJmkcPvetOqs2pruq6+dZNuejaCRQA+pmmAAzx8iz2EqG7iiD4IwbC9wCZLfVWv86YmWm/Tfkz+SnIuHHFpMdqsZDHiSUDz4vgzyYmzIW8j9XRrHHsDkiy48xNpv70QPb1nGBdPRL+OF3+17IEgOfH+HSEb2zVx5X23njLnAaApRmp10Q1Dt9xUY+pPirQIUrFO5XapcldL3mClA12lzRB0; 25:QCOBDBzDUTGfS+7unh9D4iteTyd0/hqJ2BBhYNZTx1uCvXIZwDpsvADJoWkqHymRwNrNbPtCn08FfexoOSBiaU0dlZq7lffpcGMLS/Oz0vBthbmVWxM0O+ZOb8XgD/UXKX4BA7ZDa17N2WC3hXXrKTiJheA9tyK4FcSmZttpijfZtDKCx2jEj21sUDpUUebJAfPM9liGsuRapjDEE9uz1euku+wwNVMeG53t6OD3AHgOj3w8lq2pM3HzcIZvFlB1XATnx7PrVrXTTobnNPt+V0cHDTvQYtWKVqAfiZiRU2qBhnEHz9yFcI/1IZf8+OzS2g9e8YNY8YLGjGeVrcI/lg==; 31:RqCM8JE6mnaKek4ihH9//BJa8MacKHyRVs79sMcWdrRRkS2xEmimv0c69pQi6ekvIF2mXFTCgR+8hNPWQ4qTgIN36aduoQKl2K3zRgSpMxOOK0ubJhTKaguPwxQEYM0G6bO+BZDDCC/Ft4ijcRLQ4e8KjExmzZ+yqCudM2REuM7YEhm8LC5DjgDjGeWqSCpBNxKyP57CbJhIol7emuFQAHWdunZs2bnFAAyx8oioE18= X-MS-TrafficTypeDiagnostic: VI1PR0201MB2463: 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)(5005006)(8121501046)(3231311)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(149027)(150027)(6041310)(2016111802025)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6043046)(201708071742011)(7699016); SRVR:VI1PR0201MB2463; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0201MB2463; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0201MB2463; 4:tHW2miueppWtfI3yd+UCvNX6rfiL4n4NuyVVCpCmZ1z8eM37NMBv0iy8mhKrM2sTPG4mjRpyhxhtC8un7dP7xHzOWPa0To/uIa1u6PxP3xXvw/Ca5LH/ieoh4YcTrNwFsjuH2xFG0nZ82WeVwxfCWk252g4ozzx+t1QYiIBp4VmJjQtmctpKbRcj167yBB7Qr5S02EJsMDml1T+Fd96lPPyKPD6NsOi9N8kDwiJltr1n93CDln6plSj0sIqWYeteSpeM7FzECql+QO9V4E7J0w== X-Forefront-PRVS: 0775716B9D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(136003)(346002)(396003)(376002)(366004)(39830400003)(199004)(189003)(52116002)(54906003)(105586002)(50226002)(478600001)(476003)(11346002)(446003)(2616005)(2351001)(956004)(106356001)(316002)(16586007)(74482002)(486006)(6666003)(6916009)(81166006)(81156014)(8936002)(8676002)(7736002)(7416002)(5660300001)(2361001)(305945005)(97736004)(386003)(186003)(68736007)(26005)(6506007)(16526019)(47776003)(50466002)(51416003)(6512007)(66066001)(48376002)(2906002)(53936002)(3846002)(6116002)(25786009)(36756003)(86362001)(4326008)(6486002)(76176011)(14444005)(1076002)(142933001)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0201MB2463; H:orc.pedanet; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: axentia.se does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0201MB2463; 23:SjIIBoa7I13Tzlg+z4Ne5PCfQzQukMLnufKLeSF?= lF1qfPwhzFYXOC5Znxjtso38NOfKobgLmK4WgDYb9DMao+5g8VsTuMIYWBK1/cWjWqWacF67TCr3BOtpMp1GK47NV+qQenPHXQnsf/p1H92yhQ6J/78GucLRChKLhw3DTR+z14tlrO3bz4YcXLXOhQxYYosgffneDT0PGDH5odTRiWwRkvoARZTymaTq5vSqR79iuhfFba2m/rjX/8Tc89i3ZFFsNA04i9cZPtuSfA4DAesVkVfxrHG57N727JsdR1mgkEDfxzl+b4P+V47bn1aBLjowgWJz8ukn2awcpiwUEeWy/o1awWgTOQsPEGvoIdlM+7y7evaoTJfNef/mmqzOsPz7wi4MwbidNfW7kVGRkJ5F+VezXcEysa067r481JpZKNyYRf/1bRwLxVbfN2q+RJMYZmb46Pmo7J/o7IkF5lXrivSDDjOldV691svIishjmnPRgjYTEu7clmZz8yKaXtyegj6UkB16JVfn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hl1PGa48ZA+1ZvgEx4UbNrejruK SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2018 08:56:35.5324 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 512a9c90-f6ed-483b-14eb-08d60a68aa67 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0201MB2463 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180825_015651_528065_FA3F70BA X-CRM114-Status: GOOD ( 10.31 ) 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 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 25 08:56:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 10576045 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 F39C9139B for ; Sat, 25 Aug 2018 08:58:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E05EE2B536 for ; Sat, 25 Aug 2018 08:58:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D068D2B56F; Sat, 25 Aug 2018 08:58: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,RCVD_IN_DNSWL_NONE 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 3D7042B536 for ; Sat, 25 Aug 2018 08:58: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=COQeq7m03zH5ZvyiQ2XrjPRqZ6cXh4Oe2glIGpb9vKo=; b=TdpQi4FiFm4SPc 7rccyuGSKF7WmT0uOZDoD3zjTA3mskoXqHnmEHGAkjwZMPCmLQoVw/+Ww4er1oufEmwA1GIK8Ld+F DGksiLaCf8kXnv/DEulkMMlXM5aqaSM86CUKA7B9WNOEsbwEWydhjZP2AkvZ1EeXVIPIXfkOVSJNY 2OkZUN/ooyh3efQ3scO56t2fEH+I2YKP+lzxnJM2qojmfpCPlbLgjnLlOVSjzb89+JJgnFmH8ADjv A7IBGPf/viVuiBnPztJiJoXgnUcNgmRdsvG14P+P7at4vV5HkqyGqSQIoa/1He9bTlnJw04xQWLTK 1ywsYBXmKwdlMrHdA47w==; 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 1ftUOi-00076n-G3; Sat, 25 Aug 2018 08:58:20 +0000 Received: from mail-eopbgr80107.outbound.protection.outlook.com ([40.107.8.107] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ftUNJ-0006K2-3w for linux-arm-kernel@lists.infradead.org; Sat, 25 Aug 2018 08:56:54 +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=+8dx3ikHq1lAPBAPRfDK4zQdrGBsC3Qr4UUUVmTXsIE=; b=SHQMZIPssprZ0r+V5Fy2caU+07d+55+5ZWRTZ5PzCGJFzHSnz+Mi3Yuc+NRmjbo/54CGv7cFxD1YdlzLnvCSLqXPnvVXyLKLx2hgywb0uokaqKvkrNbUrYeSz5FGw0ZfPp/cr7hybryfWow11zxiY8TlQk7Qk6Esz/JdkMqgpFo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Received: from orc.pedanet (85.226.244.23) by VI1PR0201MB2463.eurprd02.prod.outlook.com (2603:10a6:800:54::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.13; Sat, 25 Aug 2018 08:56:40 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v9 2/4] dt-bindings: display: atmel: optional video-interface of endpoints Date: Sat, 25 Aug 2018 10:56:18 +0200 Message-Id: <20180825085620.10566-3-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180825085620.10566-1-peda@axentia.se> References: <20180825085620.10566-1-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [85.226.244.23] X-ClientProxiedBy: DB6PR01CA0040.eurprd01.prod.exchangelabs.com (2603:10a6:6:46::17) To VI1PR0201MB2463.eurprd02.prod.outlook.com (2603:10a6:800:54::23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: eb0721a2-ce32-45b3-a839-08d60a68ad5f X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(7021125)(8989137)(4534165)(7022125)(4603075)(4627221)(201702281549075)(8990107)(7048125)(7024125)(7027125)(7028125)(7023125)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:VI1PR0201MB2463; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0201MB2463; 3:8Ff8S2igJ1ydad+HqeEKCxFv9q5Kee4Tbjq2skMT3jEecXLWva5Q9aH5Unl5So/0+OVz2yfKmPb5uSV4HiTIvB0uP7jJJtnKOKgStNWjzo8QeSvaSHYxsdH4sdKE1YlHTcBrChs+UE1FkaM39k+6zJBgvdMjphv5GqHqdf/pmdtwZyh1lQw8N26MwFYbp7fWBYV7fQlI6Mc4ihSyAw4aXyOQksfjgCfAqf1gHzrr7UHfQTpZ4fXAeGTrIBOyRC4L; 25:zFep42WY10tJH6547SxFxXfZc2ipPA7mBG7pGKpVfx+GwgVURspzSutxWJT2vnE31awmq237q+GGAP9u5ZeVS+zCFAyoa9mTYHYVG7kuimqEY+pL75mZc9qdPDq/uEJllQWmZH3kDLQzN/TAg61axaKTpSuuAtE5v/3N0e/nqlI1p24v98/xwpZVHCfK6cF9d/ONuN8i9tfOlt6Z74dcE1XCv6bX6lznlalyYQ1PBGrmY17PSS9kE4Co00uGtSQT6rBcFhwcvKByIgd8YqlevMjCyjzpL3LPwceg3wsGX1eUgJL1w2jI9YCcxIvXfVta/wmKoVyjUKrQ+/s5q/FnqQ==; 31:Y6fkPda10OVtY7Ns04QuoT5bDsX8ziZutfR1Fr9x3fznNj9HHaoiyEzUYvekU3NkoF85JWrXJI6Aqp7iamaKgN2d5daFpLsZgqQ6GRooeHqbkVZHnBPsXdvFLgVY1rat0QYKVQKhI/Y9omXZ1cixfSM4UO9Pri92EMhNTXyLohmaFuEb2tqVNq7gdDCxLSCNwO4jdqFaaIu4H1/vmfw2hFNh9Qz2WnPMeWpY+fEE62E= X-MS-TrafficTypeDiagnostic: VI1PR0201MB2463: 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)(5005006)(8121501046)(3231311)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(149027)(150027)(6041310)(2016111802025)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6043046)(201708071742011)(7699016); SRVR:VI1PR0201MB2463; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0201MB2463; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0201MB2463; 4:xfiD8uv2NC/B0Z/PQPWV3LTTgjcmXaa+0GKdZ3U+vnyMzxGO0nCXJs0fOuYPkM4r4Vfo8ghwU6QCRRQHFJ0KnUo6d+T5qoGSU1BgHtDCSxCJCVj8OYt0aMCZN7dN7WdBFg/mm81lTS8N++rKsBAHgFDpLw2c4c57GX2lSzQ5rT5j8iIQwec0hIVt4Lj//FDyQVhw8aH3lApra2gKlNBAY8zAnTOESzqLj/ZFtsSQvPU5WXRLuqtMULtJZiCC/8ZjNc9ljBNn4TEik88kepTJDg== X-Forefront-PRVS: 0775716B9D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(136003)(346002)(396003)(376002)(366004)(39830400003)(199004)(189003)(52116002)(54906003)(105586002)(50226002)(478600001)(476003)(11346002)(446003)(2616005)(2351001)(956004)(106356001)(316002)(16586007)(74482002)(486006)(6666003)(6916009)(81166006)(81156014)(8936002)(8676002)(7736002)(7416002)(5660300001)(2361001)(305945005)(97736004)(386003)(186003)(68736007)(26005)(6506007)(16526019)(47776003)(50466002)(51416003)(6512007)(66066001)(48376002)(2906002)(53936002)(3846002)(6116002)(25786009)(36756003)(86362001)(4326008)(6486002)(76176011)(1076002)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0201MB2463; H:orc.pedanet; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: axentia.se does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0201MB2463; 23:hPSbNzk1HzzAITB7bEDJhA7NQD5zQlzNYLkphML?= f0mqkuR0UXt2gcSe6QrlU8jf5fHAy50FJ2bOKeq3nplkZgYzmDltGbdsw/UqQ1J0jZooW1vVUEzxk0/gLoPQB93s3lMlc3sWw9pG7qHcsQZwqG0M2vkKt2CBzymVpNAwU+hfu4wj7dZ9LBHdu9ndpGbF0mtrC9GYeXKbWGOPJrK9WxFK1SruTd9eVCOrYiL9iERZoqw8VniG/UKkXgE1jRmWcqBS2niCmDhPerhs0P3x5aOQzBm7dVjOSGlTeV2EPYRNlvV5xr1xPOZydBr71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g7ZIal4yCJtgVdmK0OOVjFB9pR4fRmUHe/tf+43+FDm8wWoULuolyhAL0Y7uqlOpi/cRJknrrgeNIuNnMXFob2DTH+kaCDOhkjqpnMPJ6VvMmbq8oh2Lcu6KyPCaOh6/btUcYSC3T/Rc1I2Ol5I7D491mIa/1K+qO2vCpYBIVqSM1lEWXU SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2018 08:56:40.5169 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: eb0721a2-ce32-45b3-a839-08d60a68ad5f X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0201MB2463 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180825_015653_179728_0C6BC9E8 X-CRM114-Status: GOOD ( 11.89 ) 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 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 | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Documentation/devicetree/bindings/display/atmel/hlcdc-dc.txt b/Documentation/devicetree/bindings/display/atmel/hlcdc-dc.txt index 82f2acb3d374..0398aec488ac 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,19 @@ 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 { + hlcdc_panel_output: endpoint@0 { + bus-width = <16>; + }; + }; + }; + }; From patchwork Sat Aug 25 08:56:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 10576049 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 9CC1F1579 for ; Sat, 25 Aug 2018 08:59:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8A3832B53E for ; Sat, 25 Aug 2018 08:59:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7B84D2B579; Sat, 25 Aug 2018 08:59:50 +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,RCVD_IN_DNSWL_NONE 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 23DAE2B53E for ; Sat, 25 Aug 2018 08:59:50 +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=uKr8q5rNUOKHaCcjZjGSwoa0uPWJohjfXD3ERFSAK1w=; b=GvcXxXT/BHyE4N HPNGnI4M8iJsiSjs51YB01jUmzgwL9z2DX/0u//4xmVrZxCBtqN/yZwtsN9+nIcaNP2/H9Gv38WNU h38MRGb5Io+FKeP3iKlSEV+56ri4jb3ZUoz+uhHfAqIJPKzGeGeVLirxXr31ovClGXSlSMSB1IFjr Q4E4OCQEnS9E5IPcaPfwSuJxEkYvpjFDG3lL9LQxpX+rbj20J+eDKdZIDsyjr1mjg4hi/br5sl+lp l1IfcBWWikz3FyyKckdADvwD/O4HSSMIQLMdUr5euTztJa+gWC2M+9foUlhK4xZixtaHlS+EpQ+Cy i40LEb/NsKid5DrMp7Dw==; 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 1ftUQ4-0007e6-N1; Sat, 25 Aug 2018 08:59:44 +0000 Received: from mail-eopbgr80107.outbound.protection.outlook.com ([40.107.8.107] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ftUNL-0006K2-5c for linux-arm-kernel@lists.infradead.org; Sat, 25 Aug 2018 08:56:56 +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=XZh4ND8MnVhV+fnpHahXtSlare/sMZtqH6X2huHycUA=; b=m4EP8jRslBlYo6WQq6ylNY9NwHZsPH6Rl2C7SxXOT29SwU/I+WogmFzuMSd7bFcuKqiiHwTFY8y/9yWSxfsSyo0D55S3EmD1C/OVneUJIb2fNOyteqXiTv1oRclmwquKrgf//DiHZbJdCNE1U4MQ/nDj2fqdlTIgRl6HnbI1lGg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Received: from orc.pedanet (85.226.244.23) by VI1PR0201MB2463.eurprd02.prod.outlook.com (2603:10a6:800:54::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.13; Sat, 25 Aug 2018 08:56:45 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v9 3/4] drm/atmel-hlcdc: always iterate over the first 4 output endpoints Date: Sat, 25 Aug 2018 10:56:19 +0200 Message-Id: <20180825085620.10566-4-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180825085620.10566-1-peda@axentia.se> References: <20180825085620.10566-1-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [85.226.244.23] X-ClientProxiedBy: DB6PR01CA0040.eurprd01.prod.exchangelabs.com (2603:10a6:6:46::17) To VI1PR0201MB2463.eurprd02.prod.outlook.com (2603:10a6:800:54::23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bfdcc90a-d5db-467d-3b87-08d60a68b058 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(7021125)(8989137)(4534165)(7022125)(4603075)(4627221)(201702281549075)(8990107)(7048125)(7024125)(7027125)(7028125)(7023125)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:VI1PR0201MB2463; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0201MB2463; 3:4zdN7pnwJL7ZCFmHV3I/lNsbNSdsSG3StS44M3eU4RKmynNu5faV4toDJOMwXB1ydf+tfaW6Tj0Js7px+wo+TBc7Jj63hmDFoVls41Lb5geUgN2S+hFgMCpq1do0CcasSQo5FeJfEjs1XT/G5rGokJZRsf1eLawjsLNVjYVr7NEAcqGY1nQdeLA0rzQXWQTYbHg09WVj7fzQqhPoRfTELqiIBSHSs3OkQIWjybem9jfz6oH/UlDr3FrxGR7rkzro; 25:uSnpgL75vUNQbMTUfEck3mlrGVAbjK6iQd9LMNuKDHwu1rdxYTeo9vSM91jY20JbT41iDhdjZzOXhbsDDS2LCLajU8urlpOm4u0Ad1/DzmBrs4lZXwnDTP3yPL+IOUAL1L8+hFbqebEfh0rt96oUOtbEyEU+9c9nsedxoiWdTp/KBmx5bUWXg0ItI+ZLn1GhTHModi0FfjaNncegdl+UeXvyq1D0pfuR+NyuFzLFHDuPsn02mqx+K27DsCr8jbDhEQSozhNIBBnRNvoAuLNHLmlR1dQ0/pcll09ITqS3u4ZBhdgfC2yYD4Pz4Gn8IdE/8KoG29FYDuMY7Etk+ocPIw==; 31:QHeJ+usY535A5U9W3Q2nTNg0s/1siR6ZVi1+5Q1gGPF3lzJN/DLugb+4TxCgxuMUCzMKJIGrWcxb0wGnVD5BMoZzzmRUM+2blpVCcszGUT3UdVGDpB9jXUTOYPSXGDZNHaKaynwisDDiiyF8KWx2FwLLBmKiHf/it2wKGZ5NVLhEn3oMmOv4GpFYHraJVF6Qls9/xjbthlr+dDOJMFpBUOOHFWlle39OMztmVHQFF1c= X-MS-TrafficTypeDiagnostic: VI1PR0201MB2463: 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)(5005006)(8121501046)(3231311)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(149027)(150027)(6041310)(2016111802025)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6043046)(201708071742011)(7699016); SRVR:VI1PR0201MB2463; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0201MB2463; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0201MB2463; 4:cHpzVeFrvCyufnvMz5R2GkJIa3nFWucfWEjtMRt2Fph1qsoKyn7l4jMsEDrbQBnHDkxhZ0QF2p5W6PpxjJuu0hV2d146lPUbPjgldkNmZZ4ZOv/WJrzQOqYcENvp+h+IxY0r+wigo0au34wFAOLMLHI147CvUxarc5swdE8KVCVDZiq5cPRsu5RO6VQFuOdtHLv3BccIpAF9fXDO/6N2gpdLhr3XsMaHqzPGnksbmiqOCrjl14FBobh3xOhIGJWwhcLY5V6B/XcwXGqRdH1+qA== X-Forefront-PRVS: 0775716B9D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(136003)(346002)(396003)(376002)(366004)(39830400003)(199004)(189003)(52116002)(54906003)(105586002)(50226002)(478600001)(476003)(11346002)(446003)(2616005)(2351001)(956004)(106356001)(316002)(16586007)(74482002)(486006)(6666003)(6916009)(81166006)(81156014)(8936002)(8676002)(7736002)(7416002)(5660300001)(2361001)(305945005)(97736004)(386003)(186003)(68736007)(26005)(6506007)(16526019)(47776003)(50466002)(51416003)(6512007)(66066001)(48376002)(2906002)(53936002)(3846002)(6116002)(5024004)(25786009)(36756003)(86362001)(4326008)(6486002)(76176011)(1076002)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0201MB2463; H:orc.pedanet; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: axentia.se does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0201MB2463; 23:IA5t9RQUr2Srvze/78Oao4o9l1KNjcFhPweGG74?= n7GZ3Aer8TpuRvrTjzd4smfOXmsYkukSpzD0WHvGq15nIN8mEI4Tj45aN6oEc02V1d8zTceBlQcKwz+VHmCnqYuuVR19vqPzNnt5Sqk6TL1LN79CQ2L9y4+mecsJM1fdUKhsib7zex5yC3eXJcwFf4jKcFPDIJtpx6QbbnrW1s8h3Qz1eheMqxsINkIPkVbYwZuJi6U4etQ8g5iDf8oyjXU95o4uKojazI+F5LKd/Af3JJ2cdz2esWcmT/zewnjbY3UVfQ5G6WSGeLv1dzBxxsV1rKLKIUJaRkAojw963hgQDx7uGk+3OplCPfOJpp2IGZmbi4RgTB8YpqcHjuHcCKVOAn7D5d67aGyNNrMS6DD2a7H31si7eg6W2hhEuX8eC76zP3mVYsN1jtZiT8mNlYqHAhZguNxPSIXMn6XBJ1O3HHhfyxxjGQJIQziq6rjOFe6s4ALdEDJ+tmKlSnAzKrEPpMLR1dNYfqa9N6b8To2umCwr1lcTPeJMhAxUIHlUoJ3YNFFITKP8G+1GpAZlo90o3HXgqApc31vz0+JnPl+Oh3vpqK3wg13I5uU5Wi5jF1BezCTrmFEOFy+w2c5160XjjzMlv9cCe/n/vgn+zbjjYhts+npudNJfiy5eFMxZl5TFvXKDraKCmpQ5DPaYCt2J8YNZwS75bqbnp6x1gpZoICmK0FLRH3lZqPZ1wmi8xALssNr8QV5ml4ZH6QTW1KAgnS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I2aBvS8jXdnAYYpG3TsDLs6rPqa91b+FPuKzmUL5kb7UnbhBV1kC/iUwnFTXbrr6QD+QeFV/QI0A7OwgZ3NbP+nHlWuJ5W4zbEsFnwmXxP/8jDZ919huj1ZBTsSTjtj5NvGb2eWVc4HA/1WXhTCQzw/h1BG7EJ9aGLpG04C00vmK68YfvcskXBCJpdyIkkaXyNMC63jxtzIYzi07NCrf0txZEetETl5W4t+fN9dTCVUoQsSksvBrs88rmCFC13mzyfTRk2IIpdGIxvCevRnWndigKK9fluhakGPjrfpppheZ7w1sVYf6CpyF4WoJ6WZGclFGaVnCQal2vt0pOqF2hA6jTmY3m17iG1rgznLBvP2ihwWzeWeqI2wrxS0f4KecTUPw==; 5:+SDi3AherjrkTGaj3zbwZl+8zpfX2me6SH2H7nkLswYARSgQftvlaN+WMMU/CSUDS9KdSn3T4Pt0EsX5xatku+4AamFX+1xwxlWLMM+EsRG6RkV/ceYHz4+B7vECNYxJyjzsnPpOECY0Knh6IFFX/59s9WQaOGGlNTyusbPfiAY=; 7:k2eZ6GKwDt08ex1uiqMIMl79tvoiBwbri4U8dK70CZrhHpoic9P7+KTCEEZZFjECShSjHzUXQn3VrEfdlMeBYcMytJbLJTKdsfEwu56/mXHs22TuNjGEP+VLwi2SBE9Vfc8bwc44fXC/lfyP6o7fzfMAsY5J9OUsV8m5opVnQsr90R+05hhSGFOxwdfFXopa5pErW6uH9MIV5YD2JVdzHFj4b7zTLoC8RRr9wfqyH8VkBXlnsjPHMoV8OzkruN/+ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2018 08:56:45.5014 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bfdcc90a-d5db-467d-3b87-08d60a68b058 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0201MB2463 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180825_015655_248820_37FE955A X-CRM114-Status: GOOD ( 13.77 ) 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 This enables more flexible devicetrees. You can e.g. have two output nodes where one is not enabled, without the ordering affecting things. Prior to this patch the active nodes had to have endpoint id zero and upwards consecutively. Signed-off-by: Peter Rosin --- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c index 8db51fb131db..c05c2b744981 100644 --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c @@ -78,12 +78,23 @@ static int atmel_hlcdc_attach_endpoint(struct drm_device *dev, int endpoint) int atmel_hlcdc_create_outputs(struct drm_device *dev) { int endpoint, ret = 0; + int attached = 0; - for (endpoint = 0; !ret; endpoint++) + /* + * Always scan the first few endpoints even if we get -ENODEV, + * but keep going after that as long as we keep getting hits. + */ + for (endpoint = 0; !ret || endpoint < 4; endpoint++) { ret = atmel_hlcdc_attach_endpoint(dev, endpoint); + if (ret == -ENODEV) + continue; + if (ret) + break; + attached++; + } /* At least one device was successfully attached.*/ - if (ret == -ENODEV && endpoint) + if (ret == -ENODEV && attached) return 0; return ret; From patchwork Sat Aug 25 08:56:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 10576047 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 86FCB139B for ; Sat, 25 Aug 2018 08:59:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 71D512B53E for ; Sat, 25 Aug 2018 08:59:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 61EA12B579; Sat, 25 Aug 2018 08:59:19 +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,RCVD_IN_DNSWL_NONE 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 AAE122B53E for ; Sat, 25 Aug 2018 08:59:18 +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=0y7JOFZYGDu2Engtx8LfKS4BiohH220t7H6Et0Uoq0o=; b=NPC+4P1avrUyz+ 6o8N5UGevr/cSDIH48gJ+0UFFnzYXoYeKdFHoTTJeMG4KqSMIGjyOEPOxGoN4R4QSR/jgvlXEB0TF sbjbKixo05hSdh8xtKFW5Egl//eDpUXWPtFIOZPs2XajvOBpSntDxrzumj7U06l1aruFJcWJT5l5O jq03Sxl86+9KxPhQrPwL6pFwUl1Twk5eWPPYqVmnvSjKCboO0lOmv2KuOYjcFvlZh+3kzVUDTpoJ7 +dFNOVtqiffPcNqVq3iOFVe1nMQaUFpoXKkD8WshhPQT6YJp8ViYxfLy5r+AYXjCsIuUxhrhp6aV0 wtO/PiYuNVlpHd5Wiw8Q==; 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 1ftUPP-0007OX-Ib; Sat, 25 Aug 2018 08:59:03 +0000 Received: from mail-eopbgr80107.outbound.protection.outlook.com ([40.107.8.107] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ftUNN-0006K2-5h for linux-arm-kernel@lists.infradead.org; Sat, 25 Aug 2018 08:56:59 +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=A80Qjg3KyL330hXEsf05dpMGBLmMDUUnUzKimA1QRhU=; b=HrJffNT0mVrFag5+hXNVK21F297P8Fof6iH/ZuECv9vFWdjmdX/1wsRPpIO+7k2KW1Zd+iiKpUsJKUs8sD6SjiDS7Y2MfxsqAdPoWrvOeprRFFU41ase16dEb4uSLj+PhIFyTEWd1M7RXlCpkjM7oaap7fdZ4Jskhf2EgZ4WGdw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Received: from orc.pedanet (85.226.244.23) by VI1PR0201MB2463.eurprd02.prod.outlook.com (2603:10a6:800:54::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.13; Sat, 25 Aug 2018 08:56:50 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v9 4/4] drm/atmel-hlcdc: support bus-width (12/16/18/24) in endpoint nodes Date: Sat, 25 Aug 2018 10:56:20 +0200 Message-Id: <20180825085620.10566-5-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180825085620.10566-1-peda@axentia.se> References: <20180825085620.10566-1-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [85.226.244.23] X-ClientProxiedBy: DB6PR01CA0040.eurprd01.prod.exchangelabs.com (2603:10a6:6:46::17) To VI1PR0201MB2463.eurprd02.prod.outlook.com (2603:10a6:800:54::23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cbd1f048-c180-4952-312f-08d60a68b353 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(7021125)(8989137)(4534165)(7022125)(4603075)(4627221)(201702281549075)(8990107)(7048125)(7024125)(7027125)(7028125)(7023125)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:VI1PR0201MB2463; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0201MB2463; 3:84KpITmWMirRwQm4mgPNkGZy8k3S5H6yITcwykGKcv/dyQ957mEQXQGvjPciZdXaNo62MqwQXpkesEDRiL401yvIUfRmndxmeehvvnYIQqc+rB5emcCS3YOXyYJKWWEoiTTFWTGmqyavVZGI5nUenM38tO4J7NWswvlH5EuMcRfgDOFkJH1sugiFbgZRWOmi/le8FnZDZaastBCH50gfjGXLU1qfbfF3K7Mz0QRe6V+4r68K+cBKMS6UMrHB26DV; 25:fnH3xA6HoOPGC3SD/RCcM7NQgh+Kbw1Ej0/As3ZqIpwb2DH5z7nvf8xSVJypNrwfp8gsnCmruVztOxUSVywGCde+o7k0YQnt4L7T4mqJUT6IiqH6LKLue4RauW+F0X22xgHMXU9uJ5pXNMIAHum1ehCf2NDmkb9mQLgrK2wR37ULld5DDqxxEOyupD1+yQhB/nRtQpxGgTamwjGx/+a6gZC3GQaLTzz9fGdVVFW2vmHWYKivjTnkqWhFdN5XINHGgCgDe6giVL9+U7NOmbiO/TQDhp+CdBJjwARXpWlzoUFeEt/V2ODCYDaqPAwJUqcrTzQW9P/1GaZuqfCm5musww==; 31:ELdONSrqshLWvpBDjQTbIfTU1CBubGAi1G8j//nb3CSfE9yax8pTYQ5XDq614rndvAhLE8ln86265na47IkETTztwJTSYuRo6nIrfVLdRxoGB1+oQ+m77igraz4QWIkkPJOa/jC0Mug8O7Mt07xaglQUE5TXagBcJgD6oTOVM5eiutz9zNkRjYM6+xV2vyA1o+z2aJalZmikS1WiCbJ4l4m2PoaELMAWV45ZlzentYw= X-MS-TrafficTypeDiagnostic: VI1PR0201MB2463: 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)(5005006)(8121501046)(3231311)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(149027)(150027)(6041310)(2016111802025)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6043046)(201708071742011)(7699016); SRVR:VI1PR0201MB2463; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0201MB2463; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0201MB2463; 4:BjM4G53a5/z5GoYUHMikbjGvHWhacMKR6tHWblSQ5bnsCwK+Mjmb/pckG+gWPB6EWU/w1/DUYXIwRVDavWTv8ZvZz/dfuOO5xOYnWEzHxU96VBOogEZmWSDXRivGORbMq7DpBESq0FwfHqN5yakR6cleZk1/p94oCz7jdgfROQAHR4kB9uWhRsOS1FQkZBiyHY+f2pMc0K2B1sNp5ulYHdkjkF1i0F78gxl5a6+RjFyYrwUs1a71D/oZAGNDdCfWLVDo4SZUz9TNZJasbmno2g== X-Forefront-PRVS: 0775716B9D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(136003)(346002)(396003)(376002)(366004)(39830400003)(199004)(189003)(52116002)(54906003)(105586002)(50226002)(478600001)(476003)(11346002)(446003)(2616005)(2351001)(956004)(106356001)(316002)(16586007)(74482002)(486006)(6666003)(6916009)(81166006)(81156014)(8936002)(8676002)(7736002)(7416002)(5660300001)(2361001)(305945005)(97736004)(386003)(186003)(68736007)(26005)(6506007)(16526019)(47776003)(50466002)(51416003)(6512007)(66066001)(48376002)(2906002)(53936002)(3846002)(6116002)(5024004)(25786009)(36756003)(575784001)(86362001)(4326008)(6486002)(76176011)(1076002)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0201MB2463; H:orc.pedanet; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: axentia.se does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0201MB2463; 23:JVuTeg79fWwLXCpQCW/Ga0V7lMOjfJ+LFpxohBM?= E8mH41HWKyJvkYkYm9oL8ERqAto/rCZhGu6M9DFWklnZFK3TvusdLlQklLViBuWMdL7DiaT/v9d4ffkEBoQwxe9hgCJya9ScC4iRVk/SdgwmPU+02MpEPH/nYav6pNDoAbHvS0jI65Wl7z/jQmclV/PtjWDTmBdABfIC1S6GDSeNsVxw6vHEhjNh1Lfb1ToYZJCII9E4+jO0MBXJ1Y8VPhKiOSZf8xd8Yli8dKCfQfavf4Rdtb7wTYKmd6+RJWDEiv9FTqKg0mDrdh4/lRiQOanNFKAlYhAmu+JJFT6htGlv9l9IGuwRmPemeSYbUPZcnGOVVsQRvBylHfb+S5u45eXH0tVMuXKNqOpRMZTcAX1TPQ4dJlW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bTGS9jCM4zX8u0vnG7HQ3rMpVoyY52y0w/R3miDccIXMRBGKyNUo8PNz61F0MW0Qwdojz7UB+WM6WVoJ940qgq4ECZh8WNbp+5wNdPoUGD+4T6nB1JhI8MlcVYs3zGBa7Bg SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2018 08:56:50.5016 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cbd1f048-c180-4952-312f-08d60a68b353 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0201MB2463 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180825_015657_378142_D96DCDD1 X-CRM114-Status: GOOD ( 18.15 ) 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 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 | 77 +++++++++++++++++++++--- 3 files changed, 120 insertions(+), 28 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 c05c2b744981..f73d8a92274e 100644 --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c @@ -27,33 +27,94 @@ #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(const 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) + if (ret) { + of_node_put(ep); return ret; + } - encoder = devm_kzalloc(dev->dev, sizeof(*encoder), GFP_KERNEL); - if (!encoder) + output = devm_kzalloc(dev->dev, sizeof(*output), GFP_KERNEL); + if (!output) { + of_node_put(ep); + return -ENOMEM; + } + + output->bus_fmt = atmel_hlcdc_of_bus_fmt(ep); + of_node_put(ep); + if (output->bus_fmt < 0) { + dev_err(dev->dev, "endpoint %d: invalid bus width\n", endpoint); return -EINVAL; + } - ret = drm_encoder_init(dev, encoder, + 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 +123,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 +131,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; }