From patchwork Wed May 23 09:31: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: 10420789 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 106AB6016C for ; Wed, 23 May 2018 09:34:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F2F5928DC2 for ; Wed, 23 May 2018 09:34:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E764A28DDF; Wed, 23 May 2018 09:34:06 +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=unavailable 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 467B528DDC for ; Wed, 23 May 2018 09:34:06 +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=5cN3BjSVnuNC8v6qXWoK2UYhqcbgkZuZ1Y5me5SQq1c=; b=ZwSZl33Cmd5KD5 wAmKfAfG3wyFuinQm0qEgq4X8y6JVBlSh/VEzYt4ftH+P0S3sAF0EGYe5BXXaX/XsK+6vXIMF/X3u /pooKJEKNjw3bfiy+GoDpdxJZ7ZuipTkkTNob1nK2oUGY5YBEIAO8X3mpy8FBrfw4V/LOMhkeLLxY LUH76TIqx8bO04OBJTS2WcRwLYSwO5x/ZUtWIFPA9sEC8DbytCii5YorjcE1xrLoOVypOVrwCt0HG t/AFi3C+Ut7x1s91w+Zej+jGkLBxoqOyN6CzaI1YMsLJTjjT4+fkdL2w4jZPSYndjB9B9EhBgFVcI ES4I5TVMc7CjPCs1IA9w==; 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 1fLQ9f-0005Ig-Ai; Wed, 23 May 2018 09:33:59 +0000 Received: from mail-he1eur01on0118.outbound.protection.outlook.com ([104.47.0.118] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fLQ7x-0004Nt-AB for linux-arm-kernel@lists.infradead.org; Wed, 23 May 2018 09:32:45 +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=HKsew1siSwPqW5DAZ1xy5qIjbCjY6YK/8pBCMVxUk9M=; b=r4k886Es77q+z9tVQ5ms0Njp7Yd1nnhr8LNkoHU/nqdur3zcPrncj4WPpDVsEtWcbyRI5son70OdXH3dHFOCUUHZuKWH6479VDwl8N11KSyDnWseIAeEfvcSalN/d+8BCqqh8BcX3jyYPAq+gRWFs/hgOaDWYB4qmrCKvHAxCPw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Received: from orc.pedanet (85.226.244.23) by VI1PR0202MB2782.eurprd02.prod.outlook.com (2603:10a6:800:db::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.776.16; Wed, 23 May 2018 09:31:41 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v5 2/7] dt-bindings: display: atmel: optional video-interface of endpoints Date: Wed, 23 May 2018 11:31:17 +0200 Message-Id: <20180523093122.27859-3-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180523093122.27859-1-peda@axentia.se> References: <20180523093122.27859-1-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [85.226.244.23] X-ClientProxiedBy: HE1PR0102CA0046.eurprd01.prod.exchangelabs.com (2603:10a6:7:7d::23) To VI1PR0202MB2782.eurprd02.prod.outlook.com (2603:10a6:800:db::7) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(7021125)(5600026)(4534165)(7022125)(4603075)(4627221)(201702281549075)(7048125)(7024125)(7027125)(7028125)(7023125)(2017052603328)(7153060)(7193020); SRVR:VI1PR0202MB2782; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0202MB2782; 3:feh6wODSrbiqh7LFU5zHN+TvIamno5VWaDmjMFWlY5GO7iFSpgEzSi2FcrU0V1JYrTHPHfeiiNgnomFeoRu4axcHi2WspUpZ6KDWgQ27+iBP8cvU3Ncn8O2JFjHLOm7lGk+ye7znjVWeLNzpQpkSdIwhqxQQSI/Q5tBIMvHYEKfehxJG4e+NR4GU2SyBO2mGuD/k8XtGtAulup/l69ccI90MU3+amN5K4bufWw9W1sKlZhPBRyoA4AAh13dkL3d8; 25:O9KyDEteR/e0R6LGUBrVQi7vKrkJHI857hCmdCzprDqIRQHVZAocrv6zEkDalgNM9tPFB/LFetjunbMTz6GMXLFXM++S39PK8GYj3TxrqVsbGO1l4aD+gA54ODcUThLHsCuLQaMdlh3zyU0NAXBPhQSZS3fm1v7CAqP+vADRyQmjpQxJMuGnHEJC0l3A6mRA2T9GSWXC7JEhUNrAwafZ8cjyZjdUxI4tpoB8Chru1+3oy7m72uGlAH0KycPrUWs7bVSS17Cea0WRYDMG4Wria4hiEZkKu4D9P9BpeucZc9jPgrhNHu7Os6lr7xlYFU4XnZdzPun8I+//9l8YtR+lbw==; 31:oXGbu2l9ba9fyY5w/88jGcPQ9YGgIjnT3z+bfR5J+1H+pjhB/drB8AVO7rXXu5HHosEc3g9yBR/n1y6MScfOP6dhDcAhAbCCGHMS6dZ4gY25jRMyKBw3e42Q3ecDgCzlceiWvTh6CPMOeEzxgEcazQhuUBgp/BPWJiE9M9bH+xaVBg6ChIoXQGwHcqQy5DafZH56as+o4fCGEpvAkJsVXr6lai43jS3J7wO+gHlzz7E= X-MS-TrafficTypeDiagnostic: VI1PR0202MB2782: 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)(3002001)(93006095)(93001095)(10201501046)(3231254)(944501410)(52105095)(149027)(150027)(6041310)(20161123564045)(20161123558120)(2016111802025)(20161123560045)(20161123562045)(6072148)(6043046)(201708071742011)(7699016); SRVR:VI1PR0202MB2782; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0202MB2782; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0202MB2782; 4:x71uA6BMQOfrEZY9tl7YlzCxc65qDxjxIvVYrWFyrTnSlWAqlrhiU7t8pvqUHD180LqX6TpsJLdxRZAMJDhYBARuCZsRpKicLGg8Tzp7jGpKqLgIAAmReTis0COiSuYKxY0+7mO9JpvwHSnFjkZ+gSHq/nmNhE4UIQLfpy/cdXEBDGKuRn1NVxYnnaC5epomkHKvcZ+0CGhzDq9RKLt2tuStIT/3LdIIX4lqBfCvGMpw6vWi9T4tOd6GMHujlRVtl64cIExam+o4ypNRVYM5Lw== X-Forefront-PRVS: 06818431B9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(39830400003)(396003)(39380400002)(376002)(346002)(366004)(189003)(199004)(486006)(68736007)(956004)(476003)(3846002)(97736004)(6116002)(478600001)(2616005)(5660300001)(6916009)(6666003)(53936002)(2906002)(4326008)(11346002)(6512007)(446003)(1076002)(36756003)(86362001)(16586007)(7736002)(76176011)(52116002)(51416003)(25786009)(7416002)(305945005)(8936002)(6486002)(2361001)(48376002)(106356001)(66066001)(74482002)(50466002)(47776003)(26005)(316002)(6506007)(81156014)(105586002)(16526019)(186003)(386003)(8676002)(81166006)(50226002)(2351001)(54906003)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0202MB2782; 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; VI1PR0202MB2782; 23:CZlBttXl6tWOQFMqcJjP9/BQSeGCaunczUruCby?= =?us-ascii?Q?KvoSSaCvcUuAOor8jT+6za8jh6q8b4MbmXnCqNEeVI7VgAC3Q4BaPjrtyjw8?= =?us-ascii?Q?O2s99LCz+wfnUKn02dunrQuYbGma4GODN3S4naEXY3oC3FpIn0ultDy2uDzP?= =?us-ascii?Q?ulqfduzR2aMPk9yZcWI4PHcPiBd0iuqbxCcQOXBOXgmGep7hW9WRuHN4SnFj?= =?us-ascii?Q?urPR5jGr3z13XF9Zk89IRMqMdERWUwzYhRcLCKAiePp2nS430rqIGkWl4ZMY?= =?us-ascii?Q?WCw64d+YckVMdIGP7wiPQdfwbk9XD9zbBiGdSAaq/M8XrfneE9zf8I56mYW/?= =?us-ascii?Q?AqI91WnxCVj1MFSVYQpqBqCWMuzndB5hSHPacRo5FwSjXQ9N6wDc2v00LKoV?= =?us-ascii?Q?/hiEUkMfvUWZQelRjRv9YkV32XuS9/VPDS11GTOM2MziZuBYfOEB+ps/XpAM?= =?us-ascii?Q?0OjA26Tt88OpqJGKEfvrVCEsctcEaigL5SSu1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pF+wea3va9vExDk87JcP1chgfvvb0mioQXsJEHUyfK5+ptH0Iy5L3tS4YpOuvoVT/o1eEof32n/kPQNBYbnncS6lxTcZ5nb+FBi9alGS0XrkoiYcEDVoFjhETsP2wfM3LzGZcBs2u3seXqYRmDGXHrINVPq1r7aCWkGTdeGszJRLQ2CYez3KAxNioO0e/xPfmZpOJPxAgUVJfGW7NzbU1jLfMvH2z7cD1WFCdtRU X-MS-Office365-Filtering-Correlation-Id: 19164aa0-174e-4ca5-3e07-08d5c08ffe93 X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2018 09:31:41.4993 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 19164aa0-174e-4ca5-3e07-08d5c08ffe93 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0202MB2782 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180523_023213_583984_DADE2B92 X-CRM114-Status: GOOD ( 12.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 , Boris Brezillon , Rob Herring , Jacopo Mondi , Laurent Pinchart , Daniel Vetter , 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 Signed-off-by: Peter Rosin --- .../devicetree/bindings/display/atmel/hlcdc-dc.txt | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/Documentation/devicetree/bindings/display/atmel/hlcdc-dc.txt b/Documentation/devicetree/bindings/display/atmel/hlcdc-dc.txt index 82f2acb3d374..9de434a8f523 100644 --- a/Documentation/devicetree/bindings/display/atmel/hlcdc-dc.txt +++ b/Documentation/devicetree/bindings/display/atmel/hlcdc-dc.txt @@ -15,6 +15,14 @@ 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-type: must be <0>. + - 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 +58,21 @@ 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-type = <0>; + bus-width = <16>; + }; + }; + }; + };