Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp200227imm; Fri, 3 Aug 2018 01:55:44 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc12imcpGaS/cRMfQmoS52ziz11AgbOo5pRAPfv8sMySVQUbxdLE7etlOusNP5K0+r1bJm9 X-Received: by 2002:a17:902:9a47:: with SMTP id x7-v6mr2705032plv.37.1533286544495; Fri, 03 Aug 2018 01:55:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533286544; cv=none; d=google.com; s=arc-20160816; b=lyaWCWjbmEH5dHyPosP0HpiCEvGmj41l3aJBQ8+O5mlzNreKmAkZ8LphUJp3A2kVvY q6DgxS+tjWnHp30cilmWp958PARUcmeVstuxO7lv6nATId9BoMxT7GZtUhk6bqWOUiOr Pg8OZXFlc2/77YQ/LM+iN5nv+mxWdd1ycaxoea2jWfAxZFRqA9YrgBmxvTgn+p20kui2 7NogmcVA2GVBBlkphUqBjffLrTNUse6t3+jQnLTbMddZlBwqhsNoKQxEbD1d+7xCOq2b 9Qn8O8pYUn1x4OqJbPbRBo0dqugyGVLkXr8d9Qude2prl4+i65abGAFkLg+kWmDodvKZ TQMQ== 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:organization:message-id:date:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=VRIlHQ5A+dumWKE8J1Ux1AV4leAPBL3BjWQaxFtmRak=; b=WQFoONU4FQW7t4D9+Oa24VNnUh18fvBQXKbjpvqc7ZMoErjFuj0ZLSmjBtu92sM6V+ BGhp1CvUxtZZE/PkiWwIftteH0Vb9s2u7UiLOT2JtLBDVQ2nEI7yzsjoV5eCU9r35Hqc bqj2mOzod6SJdV2TPCJN9hLhR3k+3LCZDTuwDn/+QflMMVMIvs/HZYNDYGKSenYd2tC4 Szscc4zxSJ3KFAUNGliO9E1rE5XNV3N3L/AG8MhPzXo0CBuHaENV26UotzyeXViue6wq dYr1xHO6Ak1jdoxWuT0szthSTSI21OrYP+7OcIIMqJTa3JVk4RfsFiHgu2TJ6oj6K322 Yw0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b="IumrAL/s"; 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 k7-v6si4592559pfb.309.2018.08.03.01.55.29; Fri, 03 Aug 2018 01:55:44 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b="IumrAL/s"; 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 S1732034AbeHCKtz (ORCPT + 99 others); Fri, 3 Aug 2018 06:49:55 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:41856 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727866AbeHCKtz (ORCPT ); Fri, 3 Aug 2018 06:49:55 -0400 Received: from avalon.localnet (dfj612ybrt5fhg77mgycy-3.rev.dnainternet.fi [IPv6:2001:14ba:21f5:5b00:2e86:4862:ef6a:2804]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 58ACA112; Fri, 3 Aug 2018 10:54:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1533286474; bh=2v10gNDERp1KH9zbX89NMR08xJXBkXNaTYS3bU3jGqQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IumrAL/smnaAVto2r1TKeq35sVXcSfPhJQikzIWn/6XdsP6eEQFdK3uQJq1VHOXwQ 6pL5YkeYQ7HuvGBn1Q/q/UggBj4eHj3HpXkv0nULNu8BG0pJheX/72KnrxUBG3rnQg iPej69QL0vUhT9Vf4oKeUVZjoilNPa0eEnBVmLgc= From: Laurent Pinchart To: Peter Rosin Cc: jacopo mondi , linux-kernel@vger.kernel.org, Boris Brezillon , David Airlie , Rob Herring , Mark Rutland , Nicolas Ferre , Alexandre Belloni , 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 , Sakari Ailus Subject: Re: [RESEND PATCH v5 2/3] dt-bindings: display: atmel: optional video-interface of endpoints Date: Fri, 03 Aug 2018 11:55:14 +0300 Message-ID: <3057649.ixkh6hxoBL@avalon> Organization: Ideas on Board Oy In-Reply-To: <6fe3e84e-bd9d-0894-df8b-1b40c0f9477d@axentia.se> References: <20180803072308.14962-1-peda@axentia.se> <20180803081128.GA4528@w540> <6fe3e84e-bd9d-0894-df8b-1b40c0f9477d@axentia.se> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Peter, (CC'ing Sakari Ailus) On Friday, 3 August 2018 11:40:02 EEST Peter Rosin wrote: > On 2018-08-03 10:11, jacopo mondi wrote: > > On Fri, Aug 03, 2018 at 09:23:07AM +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. > >> > >> 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>. > > > > Is there any value in specifying this, if it has a fixed value to > > "autodetect"? I understand it's optional, so if nobody else objects, > > feels free to keep it there. > > That's just how media/video-interfaces.txt works. > > bus-type 0 means that other properties describe the bus type. In this > case bus-width is specified, so that means a parallel bus. But bus-width > has no meaning (or may not have) if bus-type is non-zero. But checking > that bus-type for zero in the code seemed like overkill to me since the > driver already knows that it is a parallel bus... > > TL;DR I'd like to keep it. Sakari told me recently that he was planning to introduce explicit bus types for parallel buses (both external sync and BT.656). Sakari, do you want to comment on this ? > >> + - bus-width: recognized values are <12>, <16>, <18> and <24>, and > >> + override any output mode selection heuristic, forcing "rgb444", > >> + "rgb565", "rgb666" and "rgb888" respectively. [snip] -- Regards, Laurent Pinchart