Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp129664imm; Fri, 3 Aug 2018 00:25:17 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeXJgvp0A1mbqndqEzWPvaQ4SmtCr9wsHTumfwYSdpiIDT4dCpytpGt7U916zxgeBOxiT3V X-Received: by 2002:a17:902:b608:: with SMTP id b8-v6mr2465330pls.312.1533281117049; Fri, 03 Aug 2018 00:25:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533281117; cv=none; d=google.com; s=arc-20160816; b=WTLPvlPMPuzoNXzydgVS+24yVW6G3kC8k9mJwqIsXeKmOGFq0OityADQFkbJVThQuj Sn34mKdwpAzTGc1ZFHrLO/KXBRK2ja7HzCmIgqsSSwjWLov6ScKH+lXPM0pjXHjrGfeV 3sJpsWBmkBp9J7V8j1MjE9fWeHpPJR+rnkcAV8AEKGjMRHZF8TXCM8pRD3FTg1YuwSHZ lofbk14CT/Dq53vs3VlBl79Tl0tAyyrtH0MLWZNGk9Dmt7xGzTkkl5gyrsOeph1qHTWL 8Jkjj58DNfISFjEX59IwTP7kikTT/e6gexx6FhNO7rQjZVVwQY95PMKtMWEcy4KtKTnI g29Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:arc-authentication-results; bh=HKsew1siSwPqW5DAZ1xy5qIjbCjY6YK/8pBCMVxUk9M=; b=WwJ4Q6ycrBMMD8irJ3f8M9MecBXtshNUtjJQT2/4mvKiIpw1rqPHGx0JQ7sDwl+zW+ QtylMCd73zqPhGhKvT+JgWACtZSy4U8ihMAycR+kbRiu6O6dYGG32UJmvF4DwiRrJY6t /DFX+tiAq5WpEigsyZIKEwbC8E88R8btH/A7d3uZmHw2PX8Ycv3Q49KK6gFG8ASskMgp D5WHoFR+RsEjU0Xh9BSTXg+TadTPFwEmx+7NO0CICPLTuAx21fWw3+wHTQ+QBeMdcsB3 XNHMLyMhtzU2QBG63fysXsn4d0fvMUOeURtIBMuf5rfgd6PvXQ5gaPY72rmTXHY5+jYo idRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@axentia.se header.s=selector1 header.b=VmrOCkUZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x1-v6si3051928plo.307.2018.08.03.00.25.02; Fri, 03 Aug 2018 00:25:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@axentia.se header.s=selector1 header.b=VmrOCkUZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732966AbeHCJSa (ORCPT + 99 others); Fri, 3 Aug 2018 05:18:30 -0400 Received: from mail-eopbgr80090.outbound.protection.outlook.com ([40.107.8.90]:55616 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732559AbeHCJS3 (ORCPT ); Fri, 3 Aug 2018 05:18:29 -0400 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 Cc: Peter Rosin , Boris Brezillon , David Airlie , Rob Herring , Mark Rutland , Nicolas Ferre , Alexandre Belloni , Laurent Pinchart , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jyri Sarha , Daniel Vetter , Andrzej Hajda , Russell King - ARM Linux , Jacopo Mondi 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 Content-Type: text/plain 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?= =?us-ascii?Q?xaBOhkrC0t4hpf20LOI0zbV3xXsfydS4Cxf5D8ihbqydBGcLkd9uEQouRYTC?= =?us-ascii?Q?DwqkkVH72J7euOYyh/e03oHMYHoA7kQ76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hUDgz+Z8gMGXfhK1Qal4Ie7UDsDmpenkZOFCOA9Cnde1N+7PYbsOu6Yj/NDprgra5cLNi9bFZrxZ7L91DTYUYDRB1LyqJoGYEU9j/IYjnF3ARHuuOTERGmwE4ZwDVg9tiehxb1VjeJI215xNj2R7O1aG+KxWO/xx4/gd+OXUCRk8j00FkAEfAx3X7ulQSO1xqRQaTQ4kJR8iznk2sNaTHA0xIOxUYbMm8jHZIDAKi+YzuK07w==;5:5kTR4twWB46eM30EAoj1st0eESMqIGaeuG03HI5PLrjTe1KIQ3pa84qfA9EytUJl3plutZ6zuvzO6WFMJOBj4EVH4H2jjy3WzpPti7z7jbD9eetw388l9oEwEgTC0dNiyW3/Aey6fid4H8gAAfSoYCKZ6pkELC4Z4s2wqhSjLD0=;7:CO/9abcvEAZAJq6EKbV7tGkLwupp5b8lapVRqlMRNeA0Ul2dYCPqSnLiSqDDXjlRS4oP/C41pr51QnAPMJnU1qs03/XbZLHlkT20h9mUGkkZaAPU3EecHflgNbjh9wJ3KEtZy6gNiXi+678Fedl6iDcm/EuumDNT526SmcZAkdVbD7eU7dtJuiLsRz43clYF9xZd60MzfuJP9/3AD1DbMx+4Zdpw3zwVZFc1pymo+RHQRsRH1DEewfNJ8p34c0Zr SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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>; + }; + }; + }; + }; -- 2.11.0