From patchwork Fri Aug 10 13:03:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 10562673 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 61A7613B4 for ; Fri, 10 Aug 2018 13:04:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4F2072B27D for ; Fri, 10 Aug 2018 13:04:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 433AC2B3C5; Fri, 10 Aug 2018 13:04:52 +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 BF8462B27D for ; Fri, 10 Aug 2018 13:04:51 +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=AOH/wp8+sYShk/V0oypixcql5kNKioZ/hfc29mfgelM=; b=uHfPc7oeEgePzA ifWVSzDGEuTrfPOYHw6pDt4/NErRSkPjXejRArFgWE7QMychB2CRcgn8kBfenLg004sAUjc5C3UZp 5WrjfhY8HEj2Pg996UArso0oG/vFqzV/KdpCLB/XLIaO3/qglc1BtXjrctOIq5BLRxuZl9bryc2dD 8UllHEUMB1dtxzATq6RIw2HfYW4LjMN0I6eaUi/mAFrN64K4QrQo6zvSm1AfIHR1fK+60jbPHnam2 88ZHpp1YZmvH3CncpnvX85tQ5n+O+S73QtdOZ+YvGrqRMMTA7OKzlRvCL5cc0uk/RNegoeQPNCIJW Dhl2RnoUXFcjiYXAXSYQ==; 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 1fo75z-0001df-FR; Fri, 10 Aug 2018 13:04:47 +0000 Received: from mail-eopbgr00116.outbound.protection.outlook.com ([40.107.0.116] helo=EUR02-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fo75h-0001D3-S8 for linux-arm-kernel@lists.infradead.org; Fri, 10 Aug 2018 13:04:33 +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=6ZCxZiPOq01DgtqeNoBYvdYLNpkWsLWQ+UV51mXhsgw=; b=pobS+05pInyk9L0WmQE/6lD7BApuFPhqZeNTz6r+ngRlt/OmxfLBVLCpwLA7uCaQxxd8bcs6JRX+4Q7QewxDgK5PKvAFNiApEZFYmrrmTVHS1k0GJM4V5gNuKz4yfhZUsDSnhrm3dOj38eP87CWuqCPDi3zNje8hW9Qy0Me2YXE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Received: from orc.pedanet (85.226.244.23) by VI1PR0201MB2464.eurprd02.prod.outlook.com (2603:10a6:800:55::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1038.21; Fri, 10 Aug 2018 13:04:19 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v8 2/4] dt-bindings: display: atmel: optional video-interface of endpoints Date: Fri, 10 Aug 2018 15:03:57 +0200 Message-Id: <20180810130359.9882-3-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180810130359.9882-1-peda@axentia.se> References: <20180810130359.9882-1-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [85.226.244.23] X-ClientProxiedBy: VI1PR07CA0241.eurprd07.prod.outlook.com (2603:10a6:802:58::44) To VI1PR0201MB2464.eurprd02.prod.outlook.com (2603:10a6:800:55::7) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6b7cc891-e4e8-408e-895b-08d5fec1c941 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:VI1PR0201MB2464; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0201MB2464; 3:6m15ST6OpNox+LEb4ILBXc4YE8fb0mL1iCN0vwfPKdrxu64ghJ03YVn/4qJtpAu5HtakDtLDVrF++rWYHZxei+dxLSJaG+W8auVVpm26OZ7zEVLJvsuZrjwgy8HYTWiS1SmZM1PKkGNi6g8uxsYwwVoXVTyNM+KoxaIulR0aahfep49zx6+yiBxP6M8rexdxDbroAEVeaN1ycrEZDJ78pxXfPBF3Z1czad63QmkVQ2mkViiSeBRpvQnxm77i9oAo; 25:6PEnp+jDS+sV3j8dXcq0B53U1EvAaBJRy3QZrYCo+HryK6zKFHS9h6TbOlTSdPNgOWtMPbNwuIP30IwR7vdkV0QcvZPWMFKac8yDAMxt9PbwiYbBGgutldogTtWoD1tSssQLU55hbxigCcoKPISoVJAfbZEt2v5WhUEYY46Tw9NjsnUaDG4jNL17P0fRyAgbw1ArB8MRL6XCiSoTiXTCsvSRE/Pse7qnoW9bZOtqdwTXEJb1IftoHrAT5Rrw6rDbeQmQmU/a1XsERKivLnz2Cci/b7zI0GwzytMxmjcz1VdqedW4UPpnvEnqTIq3Ja8pE5ZdbNnHYx/dNnFCVh+WRg==; 31:2Ank5urEubIVNDaqEig7QtG/CTINRK298PYSTo8mq+uwKPOF6DQSsJMp1mdMaAzg75MDm0O0G32Y0qQm1bhNBahK+vpaVHjVLhYRDdb3qjAo15Wh1vdR/VQMr1CqAdiTM+oZG7PD3LXb8IxFyfv6NqEP45xU/e513D1qBPUZbPV47Mm7zMZ+mUMyhIn4Niuqqe1+QZeSQ/A3X3bdPS+AIxMlJPFbRFhYCPqVW8Vrul0= X-MS-TrafficTypeDiagnostic: VI1PR0201MB2464: 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)(93006095)(93001095)(3231311)(944501410)(52105095)(10201501046)(3002001)(149027)(150027)(6041310)(2016111802025)(20161123560045)(20161123558120)(20161123562045)(20161123564045)(6043046)(6072148)(201708071742011)(7699016); SRVR:VI1PR0201MB2464; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0201MB2464; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0201MB2464; 4:WuqNUpfrHMg5UvdV4/p8Gp/+f6TfqzIUBhwNV9UcA53/kFOhOzLolVcudj93F4CtNdUTVg7/HhMpLnDTyPpTqkuZHFtuwOxF7WaA7baGAf4XJLl1CziRleyBlWHZG9ab64HQtfIjuweeXVcF5y1wXSqQqONE8EM4erKyo1VD8E6V52d5T44iNhtKllF4jGpMF3Gy9uajyOXHyFUHw9Qx+r/OMRmnzdJK/ljz+9DTF20CC6CD1lh8tYbtej76gCMYDyR5SJnRgsTMpBNFLL0r0g== X-Forefront-PRVS: 07607ED19A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(366004)(39830400003)(136003)(376002)(396003)(346002)(189003)(199004)(66066001)(3846002)(16526019)(50466002)(74482002)(50226002)(36756003)(305945005)(47776003)(8936002)(186003)(4326008)(86362001)(26005)(54906003)(48376002)(1076002)(6116002)(68736007)(6486002)(7736002)(76176011)(16586007)(25786009)(7416002)(6666003)(105586002)(81166006)(81156014)(316002)(8676002)(478600001)(6512007)(476003)(53936002)(956004)(2616005)(2361001)(2351001)(6506007)(52116002)(386003)(51416003)(5660300001)(106356001)(6916009)(11346002)(2906002)(486006)(446003)(97736004)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0201MB2464; 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; VI1PR0201MB2464; 23:dGT7XqxOcuN6YwNIq8n8ivlLfYaMLC6Kw/8KhuT?= d42IC9s+6ZSeL12m9Xw70GQmslAP7GdmdfYWavnazzaS2xIlGdYlt7TWK0ULbCJ9LG0sNJVXJTlg2KmeswCU5E6kwd9UYD+ecCsdjFScZpJMNyee3RXDny1TOVoTmen4XZXXg2v0c/ZExYvp1YhBjjcfFpWUTxPWRJlN/L2tDJY0bB9Pw27CTVs4gYRQ6XXwzXFq698/3C3dVl7Zbf78gkgcDu6ShVgnn4of0s4R/0NOkbtNuobGNl7ZmY9ChDIJq9El1ZOQ7nXAwJJrp7KvAC8rXjusluWPCw9ZbYY0gJYpcmb9CFMWvIAPZIP1y9EZ8e4gc7sB5aipYP2WMdimeOrBETbJUkP1zwQaKHMazfF6PON3xNpGyw7Sfad0cCQFtM1AJbFgK1IgTXpQm0K+wOK5eDm1LcHXaZv7JdvbVfHH15VDiQRqm5NWSq4AtfnuR7jn7x5jIC6EPH3yUs04e1FBnZNB9zjfrENCwp45ciqH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Org: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Aug 2018 13:04:19.3326 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6b7cc891-e4e8-408e-895b-08d5fec1c941 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0201MB2464 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180810_060430_244163_898EFE6A X-CRM114-Status: GOOD ( 12.33 ) 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 | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/Documentation/devicetree/bindings/display/atmel/hlcdc-dc.txt b/Documentation/devicetree/bindings/display/atmel/hlcdc-dc.txt index 82f2acb3d374..d29e1e425518 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,24 @@ 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-width = <16>; + }; + }; + }; + };