From patchwork Fri Aug 3 10:11:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 10556599 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 BBF5E13B4 for ; Mon, 6 Aug 2018 08:21:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A9F3F29040 for ; Mon, 6 Aug 2018 08:21:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9DCB02915E; Mon, 6 Aug 2018 08:21:01 +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=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3269829040 for ; Mon, 6 Aug 2018 08:21:01 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 43FE86E1ED; Mon, 6 Aug 2018 08:20:27 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0127.outbound.protection.outlook.com [104.47.0.127]) by gabe.freedesktop.org (Postfix) with ESMTPS id D8B656E16E for ; Fri, 3 Aug 2018 10:11:46 +0000 (UTC) Received: from orc.pedanet (85.226.244.23) by DB6PR0201MB2456.eurprd02.prod.outlook.com (2603:10a6:4:35::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.995.21; Fri, 3 Aug 2018 10:11:42 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v6 2/3] dt-bindings: display: atmel: optional video-interface of endpoints Date: Fri, 3 Aug 2018 12:11:23 +0200 Message-Id: <20180803101124.4622-3-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180803101124.4622-1-peda@axentia.se> References: <20180803101124.4622-1-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [85.226.244.23] X-ClientProxiedBy: AM6PR0202CA0003.eurprd02.prod.outlook.com (2603:10a6:209:15::16) To DB6PR0201MB2456.eurprd02.prod.outlook.com (2603:10a6:4:35::8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 976120e4-2108-4209-91ba-08d5f929830d X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(7021125)(8989117)(5600074)(711020)(4534165)(7022125)(4603075)(4627221)(201702281549075)(8990107)(7048125)(7024125)(7027125)(7028125)(7023125)(2017052603328)(7153060)(7193020); SRVR:DB6PR0201MB2456; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0201MB2456; 3:H8SaOlmqxId5mYWlBYKLP55BSl5rkLZJGOfi95oakmhQSY3lwwbhMJFntX+gfrYhwssVwjLiuQEBkFQMCbojtxm516ouW9Pq7nRg8UK6GQWMEKu3Adk1c41bj9wDeoAsU/lB6SDZzZInv9P8CK6Gck2PDYK9eseU41awqd+OJuTKvl1jFeqaxHH9LWioenFvHe5wf/0tKEUPincCuhqfcZdo4pQp0p/ov5JZ49PupcD2fWCHnBHlqYNOoO+wJbu4; 25:+rpqo3tRboE/R7Z5ozvKxBB+228CyqJA67mQLP39Xz7u+824gidh1pyUN76dUuz3WmgPRj5LqMqKgCzFfdIQ5Nu88d1ZWCtFu5ebGRa1PanqgxP41ekS3lR/RGzRB1QWv/QatG1tmueTtZrE6gTwG0m+v6LFpsm3KXZr4oEIGdjBuIbvr/HqDQReR3qE2sZXwKfzdHt49T6h48RoaLPvJ30DTlg8YjBzQyejq1JDZvyY0irAbDpwTRpV0eSUX28w8RCUUF1ClhDdcsKB4LuTbHuvkpNoBAA1HCANQeDR2c2GZFQ28JHfTSTbKVqgk3g09btTOGONw47XZmEVfq/neA==; 31:AM5nlC+iJM7lCO1MeDsoADd0bLyZ/xafS514JKyajGL23y0mNSzGL+/FOaDsTSr1TJVR+IqUV08a8N5jNrDsvBXUNGMBAij/Bf1dN8N9u44qxMD73JvUg9OIp8znhSRNXZRphnNynntOWpgv9MutxcNwby3StlyA43ZW+RoNct5xfgRlYESxayPc3nKWPXJO9a4+DvzEMchkq6HaBNzO5npPxakKdBDEvIEJ5+m7HaA= X-MS-TrafficTypeDiagnostic: DB6PR0201MB2456: 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)(10201501046)(3231311)(944501410)(52105095)(3002001)(93006095)(93001095)(149027)(150027)(6041310)(20161123560045)(20161123558120)(20161123562045)(2016111802025)(20161123564045)(6043046)(6072148)(201708071742011)(7699016); SRVR:DB6PR0201MB2456; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0201MB2456; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0201MB2456; 4:21RefTENq+edUjjlEkK9r5xLF6KaskllNIKBQTFuu2AbNC14raHvnXs6b+ZwRNmfnkUH/VKWCNupb8YY4xPvk9eDm6pUdSwbO3VPI11O4mSjKHC/nFJF98mCTUxbnbxu4uar9eNwtHWL4it5Ut2fYdCW6yCZ8a9hKxsogsNEUpaa9L7vI+QaoI4l0jzEbUroKX0AfE913jFpDOhVC3991GRH4m8rvCHavVhdyYOtzpsROfKUIfTLWs5uNPuBSDp8AUL4dTmWjlZNlxhgOiRJDg== X-Forefront-PRVS: 0753EA505A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(366004)(346002)(39840400004)(396003)(376002)(136003)(189003)(199004)(386003)(25786009)(3846002)(476003)(956004)(2616005)(2906002)(16526019)(74482002)(36756003)(7416002)(1076002)(486006)(446003)(86362001)(26005)(105586002)(186003)(11346002)(97736004)(305945005)(106356001)(6116002)(6506007)(5660300001)(66066001)(8676002)(2361001)(6666003)(81156014)(6512007)(68736007)(47776003)(7736002)(81166006)(54906003)(478600001)(2351001)(8936002)(53936002)(48376002)(16586007)(76176011)(52116002)(51416003)(6916009)(50466002)(6486002)(50226002)(4326008)(316002)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:DB6PR0201MB2456; 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; DB6PR0201MB2456; 23:BYet07jSF/ylCHM58E2/bs2M5c6EmKFv+zy1VIi?= Amw7PGn1/eo4rfZIhukuLEDr8rK9b4B9fZb9rLnlxa1/NfrCE+wcPdFtxCp0sukM4mZwGqIf4Gs3RskB0rO1E3//n0Stkt1DCdCQdXLM6GkrlzODE2M8j+fZaxsDEgzdnBAMFkDh5G4BbcyiWNW4LdxLHZ74JVtUpPVFyxCoUdMzT3BThvXkn20Y00Nl2HkqnT2RuC7ivZmWmmIzvHCQ9PHAT5Xe/SvDaMRMF/CHlOtaYTb/lYiddN8m6EjRS5Q8cYpRspXP5IcqDu9LTNoR1G5NBogFBNVx4GiZn5y+V5ddNSdsxwqjg7VL2VsG54ArdShR3HgkPKD4vsEz8Ul2op4+PpZpE3DAtK9r/CRapXulrm45H91cUfjFBRUNXRnzdPynwx+WijqGKFyVhDxkF/cNY0Es5FSr8sP83bIUY9/ZislXVJbKSV2fW/fJpI0AEIz4xogEpzAJ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2Py+STN7JiVA0IZvgtv SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Aug 2018 10:11:42.2035 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 976120e4-2108-4209-91ba-08d5f929830d X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0201MB2456 X-Mailman-Approved-At: Mon, 06 Aug 2018 08:20:19 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Alexandre Belloni , David Airlie , Jyri Sarha , Nicolas Ferre , dri-devel@lists.freedesktop.org, Russell King - ARM Linux , Boris Brezillon , Rob Herring , Jacopo Mondi , Laurent Pinchart , Sakari Ailus , Peter Rosin , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/Documentation/devicetree/bindings/display/atmel/hlcdc-dc.txt b/Documentation/devicetree/bindings/display/atmel/hlcdc-dc.txt index 82f2acb3d374..10e8707d1443 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,25 @@ 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 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + hlcdc_panel_output: endpoint@0 { + reg = <0>; + bus-type = <0>; + bus-width = <16>; + }; + }; + }; + };