Received: by 10.192.165.148 with SMTP id m20csp3695706imm; Mon, 23 Apr 2018 10:43:09 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+8m/x67Eu259cBueic7ZREVLOAW3CA7545QriYv0F1dX8h5KJu8YmXcNTtmLwrM8jUbqmn X-Received: by 2002:a17:902:b402:: with SMTP id x2-v6mr21291121plr.167.1524505389341; Mon, 23 Apr 2018 10:43:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524505389; cv=none; d=google.com; s=arc-20160816; b=ScybhBLa6D9XX3Sv59pm5Aji+VKZCyOUSzC6D5E8fSf0JIP+266aBw/2FViVSJFjpA RnQ4ftUOKk8VQ7t8RFvK/lU80nqg5HhNGkrW1q424HFN3/vnxLFupGaE3rY+Kv1xKi3T xgEuLTIjYiNgigWyIcZbKRpsy6r1pKrKJ9Qu7xcUv7EViaHDy/6xiOnK898D4mQSEG+o rwKcfWcg6qI1cMweHtSTiOC08aIFzYkK8WCTB8B2pfDjIXoRVjkeS63GeUEEMG3uhRPn wNWYANC3Kp50QdWP3CZtTBEiUbCSTpDm8EhLqSs4swVjeYMPVk+oaj88Zas1Sh38XADD MK/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=/DaRQu9A3rAYpgAJoWAhAUW+SeansBiQ0axsj73hKTk=; b=AMDX2cl/METXoOVi/7PepRgxMLAd9SdbtQ9SgqcmS92eOPdaFW3l5BSkWGB6JOhDw+ dO6J2sJ1/RKXRbT5xchkiXuOh2z1kQU5Jmscy5hDzv4ASi6DScu0QYBJKKZocuufc47b +Sr8VqQ1hIp1oYrIXiG3alTVNy3f1q8b9y4jEIyoBfJheKqUYJJpxQs7uLLRlafZMFyd QdO2/iMly6M5AxLak0OCDQ+xvcfX8zCsf+p1TOvbhdVfkvy4BpA/XFdRVfyfNjt6ia+s NV7vkat0hXA5jxXKylLfSzgRcCi9UzSBANGjtGHemZUhsJ8pcHaX7MakVtnzrqDvppBt IP+A== ARC-Authentication-Results: i=1; mx.google.com; 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 w20-v6si12304810plp.7.2018.04.23.10.42.55; Mon, 23 Apr 2018 10:43:09 -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; 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 S932279AbeDWRlT (ORCPT + 99 others); Mon, 23 Apr 2018 13:41:19 -0400 Received: from mail.bootlin.com ([62.4.15.54]:47632 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932261AbeDWRlJ (ORCPT ); Mon, 23 Apr 2018 13:41:09 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 9975620723; Mon, 23 Apr 2018 19:41:07 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (unknown [195.53.49.241]) by mail.bootlin.com (Postfix) with ESMTPSA id CCCBF2036F; Mon, 23 Apr 2018 19:41:06 +0200 (CEST) Date: Mon, 23 Apr 2018 19:41:06 +0200 From: Boris Brezillon To: Peter Rosin Cc: linux-kernel@vger.kernel.org, David Airlie , Rob Herring , Mark Rutland , Nicolas Ferre , Alexandre Belloni , Boris Brezillon , Russell King , Jyri Sarha , Tomi Valkeinen , Laurent Pinchart , Jacopo Mondi , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v4 2/8] dt-bindings: display: atmel: optional video-interface of endpoints Message-ID: <20180423194106.3b178211@bbrezillon> In-Reply-To: <20180423072301.11962-3-peda@axentia.se> References: <20180423072301.11962-1-peda@axentia.se> <20180423072301.11962-3-peda@axentia.se> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 23 Apr 2018 09:22:55 +0200 Peter Rosin wrote: > 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. > > Signed-off-by: Peter Rosin Acked-by: Boris Brezillon > --- > .../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>; > + }; > + }; > + }; > + };