Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4650563imu; Tue, 29 Jan 2019 05:20:44 -0800 (PST) X-Google-Smtp-Source: ALg8bN4CgVBlUEJSgLY2bDV+D1lcZuxe64hwqt/Mfh4L8FLlEkFORXdguUov4r5gvLgb0ysyQ6ES X-Received: by 2002:a17:902:3383:: with SMTP id b3mr25359619plc.170.1548768044760; Tue, 29 Jan 2019 05:20:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548768044; cv=none; d=google.com; s=arc-20160816; b=ghVYcVZFOY8L1aK/6+ounnO2Y/5FQPD+5d8KRAB5UJFGCVIjoLiprzxve9qAm58rJH dij+UC6LZ5pbuAvGO8qs4zOhNtgFII7D3BHwF5wS3MI4reSVAdAghiT1SLQZRPoFMLfO cnRcHbYdbfoQ5tQ1yu4QObM9DQisLyMcxNr7C7+8ehD2iWH7slEw6DVcrrHPNd8YLfJ1 sG3GM4dbmy4NiBsREi+s3CnKmLFptA1odn41YC862UkGRzxqodPr7Wa5qq3gEM27xPQd KDAH4Otl7uQPAVL9t7Tnr7j2EHuPZ+NYT87YLrSXQCj5jjL0YWVP+hNee8NJaLvLvJiI 6Xiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=BjkBoplHkerOYGI81qxvduNIqUxxuMlQcvcJP0bU6as=; b=Mx4nbIlEcwYCuPOKmQodJ4/n9SNzunUPDSiQqcs1nf/5XAXMYyBowMa2MsG0Uk8fgz hjYZWnmMoUTbzsOnWQwgLMku9LobwP9TVifH1VCsWAfCGLtNql8S2vNwVveiM9aTEsfz 7c0wuldx2sbdj2ugPSZl5D64S6pp48F/M8AZRUICX03QN6K+HAq0M+ndlt845Z5LzOgE hUDCx1uQ3cHxhZwZlSNQ84pmcf7czBwbb3Ca+1n7Axz6vMbLFjPvgv/MRKW+B87xKNgE 1VSvqUY1FHnQ6ySw9XXHunjPLBTms+Dr0X2KAv0sIyY3jbKM+pTFN4nDJpoEc0UeTUVB /c+Q== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d4si36268591pla.58.2019.01.29.05.20.29; Tue, 29 Jan 2019 05:20:44 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727077AbfA2NUY (ORCPT + 99 others); Tue, 29 Jan 2019 08:20:24 -0500 Received: from mga02.intel.com ([134.134.136.20]:15138 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725355AbfA2NUX (ORCPT ); Tue, 29 Jan 2019 08:20:23 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Jan 2019 05:20:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,537,1539673200"; d="scan'208";a="120377237" Received: from paasikivi.fi.intel.com ([10.237.72.42]) by fmsmga008.fm.intel.com with ESMTP; 29 Jan 2019 05:20:18 -0800 Received: by paasikivi.fi.intel.com (Postfix, from userid 1000) id 9F217205C8; Tue, 29 Jan 2019 15:20:15 +0200 (EET) Date: Tue, 29 Jan 2019 15:20:15 +0200 From: Sakari Ailus To: Hans Verkuil Cc: Ken Sloat , linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, yong.deng@magewell.com, mchehab@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@bootlin.com, wens@csie.org, kieran.bingham@ideasonboard.com, laurent.pinchart@ideasonboard.com, jean-michel.hautbois@vodalys.com, Nate Drude , devicetree@vger.kernel.org Subject: Re: devicetree: media: Documentation of Bt.656 Bus DT bindings Message-ID: <20190129132015.tvtzycrzr46kotbt@paasikivi.fi.intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ken, Hans, On Mon, Jan 28, 2019 at 02:11:54PM +0100, Hans Verkuil wrote: > +Sakari Thanks for cc'ing me! > > On 1/24/19 3:53 AM, Ken Sloat wrote: > > There are a number of v4l2 subdevices in the kernel that support a > > Bt.656 bus also known as "embedded sync." Previously in older versions > > of the kernel (and in the current 4.14 LTS kernel), the standard way > > to enable this in device tree on a parallel bus was to simply omit all > > hysync and vsync flags. > > > > During some other kernel development I was doing, it was brought to my > > attention that there is now a standard defined binding in > > "video-interfaces.txt" called "bus-type" that should be used in order > > to enable Bt.656 mode. While omitting the flags still appears to work > > because of other assumptions made in v4l2-fwnode driver, this method > > is now outdated and improper. > > > > However, I have noticed that several dt binding docs have not been > > updated to reflect this change and still reference the old method: > > > > Documentation/devicetree/bindings/media/sun6i-csi.txt > > /* If hsync-active/vsync-active are missing, > > embedded BT.656 sync is used */ > > > > Documentation/devicetree/bindings/media/i2c/tvp5150.txt > > "If none of hsync-active, vsync-active and field-even-active is specified, > > the endpoint is assumed to use embedded BT.656 synchronization." > > > > Documentation/devicetree/bindings/media/i2c/adv7604.txt > > "If none of hsync-active, vsync-active and pclk-sample is specified the > > endpoint will use embedded BT.656 synchronization." > > > > and amazingly even > > Documentation/devicetree/bindings/media/video-interfaces.txt in one of > > the code snippets > > /* If hsync-active/vsync-active are missing, > > embedded BT.656 sync is used */ Yeah, these are the old bindings indeed. > > > > In order to avoid future confusion in the matter and ensure that the > > proper bindings are used, I am proposing submitting patches to update > > these docs to at minimum remove these statements and maybe even adding > > additional comments specifying the optional property and value for > > Bt.656 where missing. I wanted to open a discussion here first before > > doing this though. Thoughts? I agree. If a device supports different busses on the same port, then the bus-type property is needed. This is often the case for Bt.656 and parallel (Bt.601?) interfaces. This should be documented so that new devices would use the bus type. The existing bindings still need to be supported in drivers though. I cc'd the devicetree list as well. > > > > Thanks, > > Ken Sloat > > > > I certainly agree that this should be updated to make it all consistent. -- Kind regards, Sakari Ailus sakari.ailus@linux.intel.com