From patchwork Fri Aug 3 07:23:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 10554705 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 D7CE59093 for ; Fri, 3 Aug 2018 07:24:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BDD3C2C451 for ; Fri, 3 Aug 2018 07:24:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B10902C5AE; Fri, 3 Aug 2018 07:24:12 +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 41EA62C451 for ; Fri, 3 Aug 2018 07:24:12 +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=b3lZ1JC4zC+a39 okXPRjpwPH55B0FINa87lF+4jSfshB8CJWKHkPsugak/XXFRerCQbK+3BAek27sBQHuwlLZbHx2++ Fp5tD+nTaMRH3sz9Xabt3jMlAqK6akNLwWVYnA9BnHjAoO5qcDPI0owZLtbkvP8e/ZmFAA0uhNlsH bke+BUHMSuyAgE1klMyIIQzJCHuSVAL5ivyohrwyjiqJUvQIRAQe1JAeQn7UCFmaAsVakrtmiSNEW /ftnMgkvoDshsAYSMMXAF9wuM1eBZbgnZ9qQiZxFP9FmaQflj1uiguY952Vd83dWXOv+EsgOWzVqK rJELYIwM8V5Rjy7QjtNQ==; 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 1flURR-0000de-Am; Fri, 03 Aug 2018 07:24:05 +0000 Received: from mail-eopbgr00099.outbound.protection.outlook.com ([40.107.0.99] helo=EUR02-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1flUR5-0008V3-4p for linux-arm-kernel@lists.infradead.org; Fri, 03 Aug 2018 07:23: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=VmrOCkUZzLezsvJVlpr6jtWHp6pyepstFT7aThhw5FkQuVh4C/iJG37PInwOtx615noVVJA+LiqQzxjdxeF+/oWlaCXzK0Mg8M3KPA/GEqSeOqMs6eC5yDAfmzBQ1MnG86DBzW97Iz1WtSoD+W+AzEVZIHT19ue7oEn6QuzG0Ps= Received: from orc.pedanet (85.226.244.23) by HE1PR0201MB2460.eurprd02.prod.outlook.com (10.168.147.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1017.15; Fri, 3 Aug 2018 07:23:26 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [RESEND PATCH v5 2/3] dt-bindings: display: atmel: optional video-interface of endpoints Date: Fri, 3 Aug 2018 09:23:07 +0200 Message-Id: <20180803072308.14962-3-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180803072308.14962-1-peda@axentia.se> References: <20180803072308.14962-1-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [85.226.244.23] X-ClientProxiedBy: PR2P264CA0045.FRAP264.PROD.OUTLOOK.COM (52.133.96.161) To HE1PR0201MB2460.eurprd02.prod.outlook.com (10.168.147.8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f1d83d0e-ca63-4d3c-451d-08d5f912021d 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:HE1PR0201MB2460; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0201MB2460; 3:Rsc47zwWpnO0oj56BSzDMUExHyechYFlV17f7lbNitkZvXSIJXvEGXo6cI9Vt8g8u9auYqSIOaFaRTJ+eqOhBLIJ9fcmRiLMnZByIacACWJTomY7uqFuIPjI24twUnD/ncyY+gWgVTnge26XVeur9r0HwfWb7MsyMcfJbbGt8kpG6cSBp8sonh63wAf+ry2Bzo/tub7QrNeX4GvGfcePdsh6k3Z/brmvJINFXqfb8huKh0iCT99PnQLZcoBQwdt/; 25:rVbQFK1tEeF+XDotAeiOszcvhc6RLMWAYVFb3FNeOMT/2/KhCviPFJ8By0GzH47R5XcPfv/sG65orhNEf6L27K4O+KaaKBh34qowjwjbPpbM+sfEmx3n7WPLXhc6iJD/tqKxb0KiXscDVlmv1I1oon53XhHhyK+ivmIAS2jnVdOsJnGiSCe4tkcjY74sLmvNUyVq9276g3Se6sbpHXZFE06WNohtsYpP5/djGiJkAYxfnUuyZCU1GwCgFUMReoxLhhazfJF4HOCl+aWWHwB63wy9f6ivxdUMj2t1sSzUR5DbIUVC1izlVnIJ8jeij5pmr8UGUykkGWVKlm1H/43SDg==; 31:ng67dRyxKyQ1RdKBI9PAx7JdRAiWNWnp5MbrRKieaJBHfTT547LHoG9PtC8prI6kGweX0zjtS257kQZ/47m77K49N94vBZssfP0kUPVp+bFPHBm6BN6BNuUVi6B8NqZ9oExT9CoMooop4AlJwbIevP41rEFZCwr869TjT92QTT+GII/Us3vfCyWOg7EeE/3DIXFfYUr7ZwB9nodZB5ImQYrkpfou5k045Ivr1lhp4wc= X-MS-TrafficTypeDiagnostic: HE1PR0201MB2460: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; 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)(3231311)(944501410)(52105095)(3002001)(10201501046)(93006095)(93001095)(149027)(150027)(6041310)(20161123558120)(20161123560045)(20161123564045)(20161123562045)(2016111802025)(6072148)(6043046)(201708071742011)(7699016); SRVR:HE1PR0201MB2460; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0201MB2460; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0201MB2460; 4:QWsHr1ZuqSkv9X5u809MHmtlX4KAoYI2xmhraVwbg5fGbh+7nWxylaW/s2hIKka05dxSBfayXTDBuJMtNHBLa7ra2gNli53Ois8T68cBjtr6rhGUm0c2P4BmHfXN0IULgajdvLvGVLP8ketWaN0rZzA+PCumLjXt3xoaVeeUzZx6eKUleq6okCRCHRh79o2XyNtNN3oQ9vaQoEGxCmFdqzor79Ay1lmR1DugWv2FwLFRN6PFxzWIV6bNS4vB3biPmotPllhRkhwxZEJudP17xA== X-Forefront-PRVS: 0753EA505A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(39830400003)(346002)(396003)(366004)(136003)(376002)(199004)(189003)(2616005)(476003)(16586007)(2361001)(478600001)(11346002)(76176011)(51416003)(4326008)(486006)(47776003)(305945005)(52116002)(25786009)(217873002)(54906003)(66066001)(2351001)(446003)(956004)(105586002)(68736007)(36756003)(316002)(106356001)(74482002)(186003)(50226002)(6486002)(97736004)(8936002)(1076002)(386003)(6512007)(7736002)(8676002)(2906002)(3846002)(6116002)(16526019)(53936002)(6506007)(6666003)(50466002)(86362001)(26005)(81166006)(81156014)(6916009)(5660300001)(7416002)(48376002)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0201MB2460; 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; HE1PR0201MB2460; 23:xqpy7kvtsaTHwEe3/tyAUGPAN8TVZO4F9hrdLHe?= xaBOhkrC0t4hpf20LOI0zbV3xXsfydS4Cxf5D8ihbqydBGcLkd9uEQouRYTCDwqkkVH72J7euOYyh/e03oHMYHoA7kQ76ziXEeC1K1MP8pjpr+4pX/qjbSKnh1JLEQMC0xa6gxJ2h0qqwXkE7NXBqiRJdxO60ML7p+TBB2lrZEiw+w1CqeZtJvIh8wXvYKfaJ8oRmlQjuYJUc4KmxNtRauJ3F8mr2XrqQwXPxX+ySxSBNx6ZiH/pJsNVeq4pkHjx7h8WMRi1Vjb50Pl38EObMZjtzfLjO7hCMbDiIBHCSCE/y5b0q0QHr/5gnsHTBS7PkMDsuCS59o56uQ6WR3p9wI+iSruzBa/8huPfyPwgZ+0F+jSK+qvO1NxKATEfUF2kJ55/qY4vHn0guVHJf+E3TfUL+g8UuTgc4tDylUzsEv6l8VeXICuLp00X5lFBahyuoNHonNOFwzK1I/ZtxAFshQ9RFBQASaXRE/F4XXgkIuneYVt4KiN4Igmwbsodgl0FvSogw9YzPq9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X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Aug 2018 07:23:26.8462 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f1d83d0e-ca63-4d3c-451d-08d5f912021d X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0201MB2460 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180803_002343_332543_6D326E45 X-CRM114-Status: GOOD ( 12.56 ) 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 , 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 Reviewed-by: Jacopo Mondi --- .../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>; + }; + }; + }; + };