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/UKkXgE1jRmWcqBS2niCmDhPerhs0P3x5aOQzBm7dVjOSGlTeV2EPYRNlvV5xr1xPOZydBr71J53TOaUdGBUJSkUSHxjZsomNd3Yg3HgTadmANDmj/TIKIWD2L2579lOHl2TqbwD+AwvgVBHXRS+AMAKWeFzY8spCYCw1wdwVLKK16+NO1BE0b58KmD+qs3Yl1jb0WmTmLIBZvhJOUwSlVTir1pT4FF8ntT1kKraom1G+l6IZ07bwlRDGd2i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1lEWXU 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>; + }; + }; + }; + };